| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod FromSupplyPlanning ( |
| | | GlobalOTDTable otdTable, |
| | | MacroPlan macroPlan, |
| | | MacroPlan mappingRoot, |
| | | String mrpCalverNo |
| | |
| | | item.MRPCalverNo() = mrpCalverNo ); |
| | | if( isnull( oldRecords ) or oldRecords.Size() = 0 ) { |
| | | pispips := ProductInStockingPointInPeriod::GetByMRPCalverNo( macroPlan, mrpCalverNo ); |
| | | traverse( pispips, Elements, item ) { |
| | | PRData::FromSupplyPlanning( macroPlan, mappingRoot, item ); |
| | | traverse( pispips, Elements, item, item.NewSupplyQuantity() > 0 ) { |
| | | PRData::FromSupplyPlanning( otdTable, macroPlan, mappingRoot, item ); |
| | | } |
| | | } |
| | | *] |