| | |
| | | traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() ){ |
| | | productids.Add( pisp.ProductID() ); |
| | | //获取工厂行 |
| | | factoryrow := table.GetRow( ifexpr( iscc, ccunit, dlunit ), pisp.ProductID() ); |
| | | factoryrow := table.GetRow( ifexpr( iscc, ccunit, dlunit ), pisp.Product_MP() ); |
| | | //获取合计行 |
| | | allrow := table.GetRow( allunit, pisp.ProductID() ); |
| | | allrow := table.GetRow( allunit, pisp.Product_MP() ); |
| | | |
| | | pispips := selectsortedset( pisp, ProductInStockingPointInPeriod, pispip, pispip.Start() < startofnextyear |
| | | and pispip.Period_MP().TimeUnit() = Translations::MP_GlobalParameters_Day(), pispip.Start() ); |
| | |
| | | traverse( table, InventorySummaryColumn, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() < startofplanning.Date() ){ |
| | | traverse( productidset, Elements, productid ){ |
| | | productids.Add( productid ); |
| | | column.GenerateCell( selections, ccsps, dlsps, table, column.StartDate(), column.EndaDate(), productid, allunit, ccunit, dlunit ); |
| | | product := selectobject( owner, Product_MP, product, product.ID() = productid ); |
| | | column.GenerateCell( selections, ccsps, dlsps, table, column.StartDate(), column.EndaDate(), product, allunit, ccunit, dlunit ); |
| | | } |
| | | } |
| | | |