From 5d16fa127ab2005b56ddb9c8d8c2ff1ff0f5826d Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期二, 22 十月 2024 17:47:43 +0800
Subject: [PATCH] 发动机物流成本报表导入报错处理

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

diff --git a/_Main/BL/Type_CCEngineLogisticsCostReport/Method_Generate.qbl b/_Main/BL/Type_CCEngineLogisticsCostReport/Method_Generate.qbl
index 0d48222..d2e883a 100644
--- a/_Main/BL/Type_CCEngineLogisticsCostReport/Method_Generate.qbl
+++ b/_Main/BL/Type_CCEngineLogisticsCostReport/Method_Generate.qbl
@@ -36,7 +36,7 @@
             sumcell  := sumrow.Initialize( column );
           }
           //鏄剧ず鏈堝崟鍏冩牸
-          showcell   := showrow.Cell( relnew, RentInCost := cell.RentInCost(), RentOutOfCost := cell.RentOutOfCost(), WerkToRentTransCost := cell.WerkToRentTransCost(), RentStorCost := cell.RentStorCost(), CoefficientValue := cell.CoefficientValue() );
+          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 );
           //鏄剧ず骞村崟鍏冩牸
           yearcell.RentInCost( cell.RentInCost() + yearcell.RentInCost() );
@@ -54,6 +54,13 @@
           sumcell.WerkToRentTransCost( cell.WerkToRentTransCost() + sumcell.WerkToRentTransCost() );
           sumcell.RentStorCost( cell.RentStorCost() + sumcell.RentStorCost() );
         }
+        yearcell.AllCost( yearcell.EstimateTotalCost() * [Real]yearcell.CoefficientValue() );
+      }
+    }
+    traverse( sumrow, Cell, cell ){
+      cell.AllCost( cell.EstimateTotalCost() * [Real]cell.CoefficientValue() );
+      if( exists( cell.Column(), Cell, acell, acell.IsUpdate() ) ){
+        cell.IsUpdate( true );
       }
     }
   *]

--
Gitblit v1.9.3