| | |
| | | if( count - [Number](count/1000) * 1000 = 0 or count = totalcount ){ |
| | | info( "Now is dealing with the " + count.AsQUILL() + "ActualPISPIP " + "( " + count.AsQUILL() + "/" + totalcount.AsQUILL() + " ) " + (count/totalcount*100).Round( 1 ).AsQUILL() + "%" ); |
| | | } |
| | | product := select( this,MappingProduct,product,product.ID() = actual.ProductID() and product.KeyProduct() = nuclear,true); |
| | | product := select( globalOTDTable,Global_MappingProduct_MP,product,product.ID() = actual.ProductID() and product.KeyProduct() = nuclear,true); |
| | | if( not isnull( product)){ |
| | | if( not isnull(businessTypes)){ |
| | | |
| | |
| | | } |
| | | if( createPurchaseSupplyMaterial ) { |
| | | toCreateBomList := selectuniquevalues( bomList, Elements, item, |
| | | item.ComponentType() = "P", item.OrganCode() + item.ComponentCode()); |
| | | item.ComponentType() = "P" and keyProductList.Find( item.ComponentCode())>=0, item.OrganCode() + item.ComponentCode()); |
| | | traverse( toCreateBomList, Elements, key ) { |
| | | boms := selectset( bomList, Elements, item, item.ComponentType() = "P" and item.OrganCode() + item.ComponentCode() = key ); |
| | | bom := boms.First(); |
| | |
| | | // yypsybs Aug-15-2023 (created) |
| | | |
| | | defaultOld := UnitOfMeasure_MP::FindDefault( this ); |
| | | defaultNew := select( this, MappingUnitOfMeasure, item, true, item.IsDefault() ); |
| | | defaultNew := select( globalotdtable, Global_MappingUnitOfMeasure_MP, item, true, item.IsDefault() ); |
| | | |
| | | if( not isnull( defaultOld ) and not isnull( defaultNew ) |
| | | and defaultOld.Name() <> defaultNew.Name() ) { |