From f9c8e9e3438d19dc7a3ee087b631dbe593663112 Mon Sep 17 00:00:00 2001 From: lazhen <17772815105@139.com> Date: 星期三, 09 十月 2024 11:34:43 +0800 Subject: [PATCH] 机加管线报表的数据bug --- _Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/_Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl b/_Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl index 871cb05..dbb23a4 100644 --- a/_Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl +++ b/_Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl @@ -30,7 +30,6 @@ traverse( stockingpoint, ProductInStockingPoint_MP, pisp, pisp.Product_MP().IsLeaf() and not pisp.IsSystem() and exists( pisp.Product_MP().GetAllParent(), Elements, e, e.ID() = productparent ) and exists( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and pispip.Period_MP().TimeUnit() = Translations::MP_GlobalParameters_Day() and ( pispip.NewSupplyQuantity() <> 0 or pispip.PlannedInventoryLevelEnd() <> 0 ) ) ){ - weekstart := owner.StartOfPlanning().Date(); pispips := selectsortedset( pisp, ProductInStockingPointInPeriod, pispip, not pispip.Period_MP().IsHistorical() and pispip.Period_MP().TimeUnit() = Translations::MP_GlobalParameters_Day(), pispip.Start() ); row := table.GetRow( pisp.ProductID() ); @@ -50,8 +49,7 @@ //搴撳瓨闇�瑕佸彇鏈�鍚庝竴澶� row.SetCellInventoryValue( daycolumn, [Real]inventoryquantity ); - if( pispip.Start() = weekstart + Duration::Days( 6 ) or pispip.Period_MP() = endperiod ){ - weekstart := ( weekstart + Duration::Days( 7 ) ).Date(); + if( pispip.Start().Date() = weekcolumn.EndDate() or pispip.Period_MP() = endperiod ){ row.SetCellInventoryValue( weekcolumn, [Real]inventoryquantity ); } -- Gitblit v1.9.3