| | |
| | | // renhao Aug-14-2023 (created) |
| | | listtodeal := construct( Global_MappingActualProductInStockingPointInPeriods, constcontent ); |
| | | if ( businessTypes.Size() > 0 ) { |
| | | businessTypeName := businessTypes.Element( 0 ); |
| | | targetGlobal_ProductCategory := select( globalOTDTable, Global_ProductCategory, tempGPC, tempGPC.BusinessTypeName() = businessTypeName ); |
| | | listtodeal := selectset( targetGlobal_ProductCategory, Global_MappingProduct_MP.Global_MAPISPIPCategory.Global_MappingActualProductInStockingPointInPeriod, |
| | | targetGlobal_ProductCategory := selectset( globalOTDTable, Global_ProductCategory, tempGPC, |
| | | exists( businessTypes, Elements, tempBTN, tempBTN = tempGPC.BusinessTypeName() ) ); |
| | | listtodeal := selectset( targetGlobal_ProductCategory, |
| | | Elements.Global_MappingProduct_MP.Global_MAPISPIPCategory.Global_MappingActualProductInStockingPointInPeriod, |
| | | tempGMPIL, |
| | | ( tempGMPIL.ActualInventoryLevelEnd() > 0 ) and |
| | | ( organcodelist.Find( tempGMPIL.StockingPointID().SubString( 0, 3 ) ) >= 0 ) ); |