| | |
| | | }else{ |
| | | beforecolumn := column.PreviousColumn(); |
| | | beforeinventory := selectobject( showrow, Cell, c, c.Column() = beforecolumn ); |
| | | ccinventoryqty := beforeinventory.CCInventoryQty() + maxinventory.CCProductionQty() - maxinventory.CCToDLDepartureQty() + maxinventory.DLToCCArrivalQty() - maxinventory.CCAssemblyPlanQty(); |
| | | dlinventoryqty := beforeinventory.DLInventoryQty() + maxinventory.DLProductionQty() - maxinventory.DLToCCDepartureQty() + maxinventory.DLToCCDepartureQty() - maxinventory.DLAssemblyPlanQty(); |
| | | beCCinventoryqty := 0.0; |
| | | beDLinventoryqty := 0.0; |
| | | if( not isnull( beforeinventory ) ){ |
| | | beCCinventoryqty := beforeinventory.CCInventoryQty(); |
| | | beDLinventoryqty := beforeinventory.DLInventoryQty(); |
| | | } |
| | | ccinventoryqty := beCCinventoryqty + maxinventory.CCProductionQty() - maxinventory.CCToDLDepartureQty() + maxinventory.DLToCCArrivalQty() - maxinventory.CCAssemblyPlanQty(); |
| | | dlinventoryqty := beDLinventoryqty + maxinventory.DLProductionQty() - maxinventory.DLToCCDepartureQty() + maxinventory.DLToCCDepartureQty() - maxinventory.DLAssemblyPlanQty(); |
| | | } |
| | | sumcell := selectobject( column, Cell, c, c.Row() = sumrow ); |
| | | if( isnull( sumcell ) ){ |