| | |
| | | ccunit := DLEngineLogisticsCostReport::GetDefaultCCUnit(); |
| | | dlunit := DLEngineLogisticsCostReport::GetDefaultDLUnit(); |
| | | //dlline := DLEngineLogisticsCostReport::GetStockingPointDLLine(); |
| | | ccrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | dlrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | //ccrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | //dlrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | |
| | | startofplanning := owner.StartOfPlanning().Date(); |
| | | //startofyear := startofplanning.StartOfYear(); |
| | |
| | | //外租库仓储费用:仓储数量/包装容量*仓储单价,在Actual inventories里取到长春外租库/大连外租库该发动机的仓储量,根据发动机号找到对应的Generation 和横纵制,在发动机成本参数表里找到对应的仓储单价和包装容量,用公式计算,月度进行汇总 |
| | | //长春外租库入库/出库费用,大连发动机的长春外租库的New supply |
| | | traverse( owner, StockingPoint_MP, stockingpoint, stockingpoint.ID().EndsWith( '外租库' ) ){ |
| | | unit := stockingpoint.Unit(); |
| | | parentunits := unit.GetAllParent(); |
| | | // unit := stockingpoint.Unit(); |
| | | // parentunits := unit.GetAllParent(); |
| | | //是否属于长春外租库 |
| | | isccrent := stockingpoint.ID().StartsWith( '长春' ) or stockingpoint.ID().StartsWith( 'CC' ); |
| | | //是否属于大连发动机的长春外租库 |