From 5e5f64f57af3862ebf7c9241dc848f97572f96b2 Mon Sep 17 00:00:00 2001 From: lazhen <17772815105@139.com> Date: 星期五, 01 十一月 2024 12:39:21 +0800 Subject: [PATCH] 机加管线报表库存计算bug --- _Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl b/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl index 40fb9c9..392964d 100644 --- a/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl +++ b/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl @@ -40,10 +40,12 @@ products.Add( pisp.Product_MP() ); row := table.GetRow( pisp.ProductID() ); inventoryqty := sum( pisp, ProductInStockingPointInPeriod, pispip, pispip.Start() = startinventorydate and pispip.Period_MP().TimeUnit() = Translations::MP_GlobalParameters_Day() and pispip.ActualInventoryLevelEnd() <> 0, pispip.ActualInventoryLevelEnd() ); - if( iscc ){ - row.CCInventoryQty( inventoryqty ); - }else{ - row.DLInventoryQty( inventoryqty ); + if( isccassemnly ){ + row.CCInventoryQty( row.CCInventoryQty() + inventoryqty ); + } + if( isdlassemnly ){ + row.DLInventoryQty( row.DLInventoryQty() + inventoryqty ); + } traverse( pispips, Elements, pispip){//, pispip.Start().Month() = 1 and pispip.Start().Day() = 2 //澶� @@ -70,7 +72,7 @@ // if( weekcolumn.EndDate() = pispip.Start().Date() or pispip.Period_MP() = endperiod ){ // row.SetCellInventoryValue( weekcolumn, iscc, [Real]inventoryqty ); // } - } + // } } } } -- Gitblit v1.9.3