| | |
| | | products.Add( pisp.Product_MP() ); |
| | | row := table.GetRow( pisp.ProductID() ); |
| | | inventoryqty := sum( pisp, ProductInStockingPointInPeriod, pispip, pispip.Start() = startinventorydate and pispip.Period_MP().TimeUnit() = Translations::MP_GlobalParameters_Day() and pispip.ActualInventoryLevelEnd() <> 0, pispip.ActualInventoryLevelEnd() ); |
| | | if( iscc ){ |
| | | row.CCInventoryQty( inventoryqty ); |
| | | }else{ |
| | | row.DLInventoryQty( inventoryqty ); |
| | | if( isccassemnly ){ |
| | | row.CCInventoryQty( row.CCInventoryQty() + inventoryqty ); |
| | | } |
| | | if( isdlassemnly ){ |
| | | row.DLInventoryQty( row.DLInventoryQty() + inventoryqty ); |
| | | } |
| | | traverse( pispips, Elements, pispip){//, pispip.Start().Month() = 1 and pispip.Start().Day() = 2 |
| | | |
| | | //天 |
| | |
| | | // if( weekcolumn.EndDate() = pispip.Start().Date() or pispip.Period_MP() = endperiod ){ |
| | | // row.SetCellInventoryValue( weekcolumn, iscc, [Real]inventoryqty ); |
| | | // } |
| | | } |
| | | // } |
| | | } |
| | | } |
| | | } |