◆ OrderItemModel()
org.turro.erp.purchase.OrderItemModel.OrderItemModel |
( |
List |
data, |
|
|
Grid |
grid |
|
) |
| |
◆ createGroupFoot()
Object org.turro.erp.purchase.OrderItemModel.createGroupFoot |
( |
Object[] |
groupdata, |
|
|
int |
index, |
|
|
int |
col |
|
) |
| |
|
protected |
Reimplemented from org.turro.jpa.model.GroupModelManager.
Definition at line 43 of file OrderItemModel.java.
44 OrderItemSummary summary =
new OrderItemSummary();
45 summary.items = groupdata.length;
46 summary.orders = groupdata;
47 for(Object o : groupdata) {
48 if(o instanceof OrderItem) {
49 OrderItem oi = (OrderItem) o;
50 summary.cost += oi.getAmount();
51 summary.quatity += oi.getUnits() * oi.getDedication();
◆ createGroupHead()
Object org.turro.erp.purchase.OrderItemModel.createGroupHead |
( |
Object[] |
groupdata, |
|
|
int |
index, |
|
|
int |
col |
|
) |
| |
|
protected |
The documentation for this class was generated from the following file: