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_CCEngineLogisticsCostReport0/Method_Generate.qbl |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/_Main/BL/Type_CCEngineLogisticsCostReport0/Method_Generate.qbl b/_Main/BL/Type_CCEngineLogisticsCostReport0/Method_Generate.qbl
index b7889a3..c3797aa 100644
--- a/_Main/BL/Type_CCEngineLogisticsCostReport0/Method_Generate.qbl
+++ b/_Main/BL/Type_CCEngineLogisticsCostReport0/Method_Generate.qbl
@@ -48,6 +48,8 @@
                                       , 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.CCRentInCost( cell.CCRentInCost() + yearcell.CCRentInCost() );
           yearcell.CCRentOutOfCost( cell.CCRentOutOfCost() + yearcell.CCRentOutOfCost() );
@@ -105,6 +107,12 @@
       cell.IsEstimateTotalCostUpdate( exists( cell.Column(), Cell, acell, acell.IsEstimateTotalCostUpdate() ) );
       cell.IsWerkToDLRentTransCostUpdate( exists( cell.Column(), Cell, acell, acell.IsWerkToDLRentTransCostUpdate() ) );
     }
+    rows := selectsortedset( this, Row, row, row.Name() );
+    i    := 0;
+    traverse( rows, Elements, e ){
+      e.RowNr( i );
+      i := i + 1;
+    }
     info( '-------------------------g------------end---------------------------------' );
   *]
 }

--
Gitblit v1.9.3