| | |
| | | targetStockingPoint_MP := stockingPoints.Element( stockingPointIndex.GetValueAsNumber() ); |
| | | } |
| | | // targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.Notes() = tdd.ProductID() ); |
| | | // targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = tdd.ProductID() ); |
| | | // targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = tdd.ProductID() ); |
| | | // targetStockingPoint_MP := select( macroPlan, StockingPoint_MP, tempSPMP, tempSPMP.ID() = tdd.StockingPointID() ); |
| | | // info( tdd.SalesSegmentName() ); |
| | | // info( tdd.SalesSegmentName() ); |
| | | if ( not isnull( targetProduct_MP ) and not isnull( targetStockingPoint_MP ) ) { |
| | | forcest := Forecast::Create( targetProduct_MP, |
| | | targetStockingPoint_MP, |
| | |
| | | } |
| | | |
| | | traverse( lines,Elements.DispatchShiftSchedulingProduct.DispatchShiftSchedulingDetail,detail ){ |
| | | detail.ShiftVolume( detail.ShiftVolume() ); |
| | | if( detail.DispatchShiftSchedulingProduct().DispatchShiftSchedulingLine().LineName().ToUpper().LikeUserLocale( "PL" )){ |
| | | detail.ShiftVolume( detail.ShiftVolume() * 4 ); |
| | | } |
| | | } |
| | | |
| | | info( "Success" ); |