From fb6175169ec3f76e0362ffb66c142a761d97d7ed Mon Sep 17 00:00:00 2001 From: yanweiyuan3 <yanweiyuan3@gmail.com> Date: 星期一, 25 九月 2023 17:07:05 +0800 Subject: [PATCH] Fix Operation Cost & Customer Order Fresh --- _Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl b/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl index 3713cc9..1e71d79 100644 --- a/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl +++ b/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl @@ -41,7 +41,10 @@ if( count - [Number](count/1000) * 1000 = 0 or count = totalcount ){ info( "Now is dealing with the " + count.AsQUILL() + "OperationCost " + "( " + count.AsQUILL() + "/" + totalcount.AsQUILL() + " ) " + (count/totalcount*100).Round( 1 ).AsQUILL() + "%" ); } - id := item.OrganCode() + "_" + item.ProductID() + "_" + item.ProcessSection() + "_" + item.Line(); + id := item.OrganCode() + "_" + item.ProductID() + "_" + item.ProcessSection(); + if( guard( item.Line(), "" ).Length() > 0 ) { + id := id + "_" + item.Line(); + } operation := Operation::FindOperationTypeIndex( id ); account := Account_MP::FindByName( this, "Operation cost" ); isfromdb := false; -- Gitblit v1.9.3