Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed arithmetic list sample

  • Loading branch information...
commit e8be2e6cb62aabc9349e63500ff5cc81211ccef2 1 parent b9f4a48
@radutopala radutopala authored
View
4 apps/frontend/modules/grids/config/arithmeticList.xml
@@ -11,7 +11,7 @@
<i:column filter="[type:string,dataIndex:order.name]" label="Product" name="name"/>
<i:column filter="[type:numeric,dataIndex:order.price]" label="Unit Price" name="price"/>
<i:column filter="[type:numeric,dataIndex:order.quantity]" label="Quantity" name="quantity"/>
- <i:column filter="[type:numeric]" label="Sum" name="sum"/>
+ <i:column filter="[type:numeric]" label="Total" name="total"/>
</i:fields>
<i:rowactions>
<i:action iconCls="icon-edit" name="edit" url="/product/edit"/>
@@ -20,5 +20,5 @@
<i:actions>
<i:action iconCls="icon-plus" name="Add new product" popup="false" url="/product/edit"/>
</i:actions>
- <i:description><![CDATA[This example displays a grid with simple arithmetic Sum column, which multiplies the Unit Price with Quantity.<br><a href="/studio#widget#frontend/grids/arithmeticList" target="_blank">Open in Studio</a>]]></i:description>
+ <i:description><![CDATA[This example displays a grid with simple arithmetic multiply method on Total column, which multiplies the Unit Price with Quantity.<br><a href="/studio#widget#frontend/grids/arithmeticList" target="_blank">Open in Studio</a>]]></i:description>
</i:view>
View
2  lib/model/product.php
@@ -23,7 +23,7 @@ public function getHtmlImage()
return '';
}
- public function getSum()
+ public function getTotal()
{
return $this->getPrice() * $this->getQuantity();
}
Please sign in to comment.
Something went wrong with that request. Please try again.