From b1a0a49947bc7c9806f4d3b6277375ef543dbccf Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期四, 14 十一月 2024 18:19:14 +0800
Subject: [PATCH] 物流报表部分费用支持跨月

---
 _Main/BL/Type_CCEngineLogisticsCostReport/Method_Generate.qbl |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/_Main/BL/Type_CCEngineLogisticsCostReport/Method_Generate.qbl b/_Main/BL/Type_CCEngineLogisticsCostReport/Method_Generate.qbl
index d7c5a6a..12bebf3 100644
--- a/_Main/BL/Type_CCEngineLogisticsCostReport/Method_Generate.qbl
+++ b/_Main/BL/Type_CCEngineLogisticsCostReport/Method_Generate.qbl
@@ -38,6 +38,8 @@
           //鏄剧ず鏈堝崟鍏冩牸
           showcell   := showrow.Cell( relnew, RentInCost := cell.RentInCost(), RentOutOfCost := cell.RentOutOfCost(), WerkToRentTransCost := cell.WerkToRentTransCost(), RentStorCost := cell.RentStorCost(), CoefficientValue := cell.CoefficientValue(), AllCost := cell.EstimateTotalCost() * [Real]cell.CoefficientValue() );
           column.Cell( relinsert, showcell );
+          showcell.EstimateTotalCost( showcell.CalcEstimateTotalCost() );
+          showcell.AllCost( showcell.EstimateTotalCost() * [Real]showcell.CoefficientValue() );
           //鏄剧ず骞村崟鍏冩牸
           yearcell.RentInCost( cell.RentInCost() + yearcell.RentInCost() );
           yearcell.RentOutOfCost( cell.RentOutOfCost() + yearcell.RentOutOfCost() );
@@ -74,5 +76,11 @@
       cell.IsRentStorCostUpdate( exists( cell.Column(), Cell, acell, acell.IsRentStorCostUpdate() ) );
       cell.IsWerkToRentTransCostUpdate( exists( cell.Column(), Cell, acell, acell.IsWerkToRentTransCostUpdate() ) );
     }
+    rows := selectsortedset( this, Row, row, row.Name() );
+    i    := 0;
+    traverse( rows, Elements, e ){
+      e.RowNr( i );
+      i := i + 1;
+    }
   *]
 }

--
Gitblit v1.9.3