| | |
| | | |
| | | // DL外租库入库费用:发动机入库量 / 包装容量(向上取整)* 料架入库单价 |
| | | inventoryQuantity := sum( macroPlan, SalesDemand.astype( Forecast ), tempF, |
| | | tempF.Product_MP().Generation() = dlerr.Generation() and |
| | | tempF.Product_MP().MQBMLB() = dlerr.MLB_MQB() and |
| | | tempF.StockingPointID() = "大连外租库" and |
| | | ( tempF.StartDate() - 2 ).Year() = dlerc.StartDate().Year() and |
| | | ( tempF.StartDate() - 2 ).Month() = dlerc.StartDate().Month(), |
| | | tempF.Product_MP().Generation() = dlerr.Generation() and |
| | | tempF.Product_MP().MQBMLB() = dlerr.MLB_MQB() and |
| | | tempF.StockingPointID() = "大连外租库" and |
| | | tempF.StartDate() >= ( dlerc.StartDate() - 2 ) and |
| | | tempF.StartDate() <= ( lastDayOfThisMonth - 2 ), |
| | | tempF.FulfilledQuantity() ); |
| | | // info( "时间:", dlerc.StartDate().Format( "Y-M2-D2" ), " 入库数量:", inventoryQuantity, " 包装容量:", guard( lce.PackagingCapacity(), 0 ), |
| | | // " 装载容量:", guard( lct1.LoadingCapacity(), 0 ) ); // 测试输出 |