| | |
| | | StaticMethod FromSupplyPlanning ( |
| | | GlobalOTDTable otdTable, |
| | | MacroPlan macroPlan, |
| | | MacroPlan mappingRoot, |
| | | String mrpCalverNo |
| | | String mrpCalverNo, |
| | | String userId |
| | | ) |
| | | { |
| | | Description: |
| | | [* |
| | | SupplyPlanning转PRData |
| | | todo 修改mappingRoot为MPSync |
| | | *] |
| | | Description: 'SupplyPlanning转PRData' |
| | | TextBody: |
| | | [* |
| | | // yypsybs Sep-12-2023 (created) |
| | |
| | | if( isnull( oldRecords ) or oldRecords.Size() = 0 ) { |
| | | pispips := ProductInStockingPointInPeriod::GetByMRPCalverNo( macroPlan, mrpCalverNo ); |
| | | traverse( pispips, Elements, item, item.NewSupplyQuantity() > 0 ) { |
| | | PRData::FromSupplyPlanning( otdTable, macroPlan, mappingRoot, item ); |
| | | PRData::FromSupplyPlanning( otdTable, macroPlan, item, userId ); |
| | | } |
| | | } |
| | | *] |