| | |
| | | product_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = masaps.MatCode() ); |
| | | if ( not isnull( product_MP ) ) { |
| | | traverse ( product_MP, ProductInStockingPoint_MP, pispmp ) { |
| | | targetInventorySpecification := select( product_MP, InventorySpecification, tempIS, tempIS.ProductID() = product_MP.ID() and |
| | | tempIS.StockingPointID() = pispmp.StockingPointID() and |
| | | tempIS.Start() = macroPlan.StartOfPlanning().Date() ); |
| | | if ( not isnull( targetInventorySpecification ) ) { |
| | | targetInventorySpecification.Delete(); |
| | | } |
| | | InventorySpecification::Create( product_MP, |
| | | pispmp.StockingPoint_MP(), |
| | | macroPlan.StartOfPlanning().Date(), |