From 76c7b6120bb5a3076a31f3c3eb7e068f290f68d3 Mon Sep 17 00:00:00 2001 From: limj <limj@taizhitech.com> Date: 星期一, 25 九月 2023 20:47:39 +0800 Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/TIANMA_JITUAN into dev_lmj --- _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