From 23e251ff1d124de2fb13fe195a8b4575bc0676a1 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期五, 09 八月 2024 16:52:39 +0800
Subject: [PATCH] 财务销量报表二维表生成

---
 _Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/_Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl b/_Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl
index 7b09478..727038c 100644
--- a/_Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl
+++ b/_Main/BL/Type_EnginePipelineSource/StaticMethod_Initialize.qbl
@@ -45,20 +45,20 @@
           daycolumn           := table.GetColumnByUnit( Translations::MP_GlobalParameters_Day(), pispip.Start().Date() );
           //鍛�
           weekcolumn          := table.GetColumnByUnit( Translations::MP_GlobalParameters_Week(), weekstart );
-          supplyquantity      := [Real]ceil( pispip.NewSupplyQuantity() );//鍚戜笂鍙栨暣
-          inventoryquantity   := [Real]ceil( pispip.PlannedInventoryLevelEnd() );//鍚戜笂鍙栨暣
+          supplyquantity      := [Number]pispip.NewSupplyQuantity();//鍥涜垗浜斿叆
+          inventoryquantity   := [Number]pispip.PlannedInventoryLevelEnd();//鍥涜垗浜斿叆
           //浜ч噺鏄姞鎬�
           if( iscc or isdl ){
-            row.SetCellProductionValue( daycolumn, iscc, supplyquantity );
-            row.SetCellProductionValue( weekcolumn, iscc, supplyquantity );
+            row.SetCellProductionValue( daycolumn, iscc, [Real]supplyquantity );
+            row.SetCellProductionValue( weekcolumn, iscc, [Real]supplyquantity );
           }
           //搴撳瓨闇�瑕佸彇鏈�鍚庝竴澶�
-          row.SetCellInventoryValue( daycolumn, pispip.PlannedInventoryLevelEnd() );
+          row.SetCellInventoryValue( daycolumn, [Real]inventoryquantity );
     
           if( pispip.Start() = weekstart + Duration::Days( 6 ) or pispip.Period_MP() = endperiod ){
             weekstart         := ( weekstart + Duration::Days( 7 ) ).Date();
             
-            row.SetCellInventoryValue( weekcolumn, inventoryquantity );
+            row.SetCellInventoryValue( weekcolumn, [Real]inventoryquantity );
           } 
         }
       }

--
Gitblit v1.9.3