| | |
| | | info( "Now is dealing with the " + count.AsQUILL() + "ActualPISPIP " + "( " + count.AsQUILL() + "/" + totalcount.AsQUILL() + " ) " + (count/totalcount*100).Round( 1 ).AsQUILL() + "%" ); |
| | | } |
| | | //product := select( globalOTDTable,Global_MappingProduct_MP,product,product.ID() = actual.ProductID() and product.KeyProduct() = nuclear,true); |
| | | if( /*not isnull( product*/ guard( actual.Global_MAPISPIPCategory().KeyProduct() = nuclear, false ) ){ |
| | | //if( guard( actual.Global_MAPISPIPCategory().KeyProduct() = nuclear, false ) ){ |
| | | if( not nuclear or (nuclear and actual.Global_MAPISPIPCategory().Critical() = nuclear) ){ |
| | | if( not isnull(businessTypes)){ |
| | | |
| | | for( i :=0 ;i < businessTypes.Size();i++ ){ |
| | | |
| | | //businessType := businessTypes.Element( i ); |
| | | if( /*product.BusinessType() = businessType and not product.IsCommon()*/ not actual.Global_MAPISPIPCategory().IsCommon() ){ |
| | | ActualProductInStockingPointInPeriod::CreateOrUpdate( this, |
| | |
| | | actual.ActualInventoryLevelEnd(), |
| | | actual.ManufacturedDate()); |
| | | } |
| | | } |
| | | |
| | | |
| | | }else{ |
| | | ActualProductInStockingPointInPeriod::CreateOrUpdate( this, |