From b02a3586a97064c94087c0e3ca2eac36cd9d9b42 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期一, 21 十月 2024 17:36:04 +0800
Subject: [PATCH] 库存汇总报表导出格式修改

---
 _Main/BL/Type_InventorySummarySource/StaticMethod_Initialize.qbl |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/_Main/BL/Type_InventorySummarySource/StaticMethod_Initialize.qbl b/_Main/BL/Type_InventorySummarySource/StaticMethod_Initialize.qbl
index 015ec8b..acab2f9 100644
--- a/_Main/BL/Type_InventorySummarySource/StaticMethod_Initialize.qbl
+++ b/_Main/BL/Type_InventorySummarySource/StaticMethod_Initialize.qbl
@@ -37,9 +37,9 @@
         traverse( stockingpoint, ProductInStockingPoint_MP, pisp,  pisp.Product_MP().IsLeaf() ){
           productids.Add( pisp.ProductID() );
           //鑾峰彇宸ュ巶琛�
-          factoryrow          := table.GetRow( ifexpr( iscc, ccunit, dlunit ), pisp.ProductID() );
+          factoryrow          := table.GetRow( ifexpr( iscc, ccunit, dlunit ), pisp.Product_MP() );
           //鑾峰彇鍚堣琛�
-          allrow              := table.GetRow( allunit, pisp.ProductID() );
+          allrow              := table.GetRow( allunit, pisp.Product_MP() );
           
           pispips             := selectsortedset( pisp, ProductInStockingPointInPeriod, pispip, pispip.Start() < startofnextyear 
                                                   and pispip.Period_MP().TimeUnit() = Translations::MP_GlobalParameters_Day(), pispip.Start() );
@@ -80,7 +80,8 @@
     traverse( table, InventorySummaryColumn, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() < startofplanning.Date() ){
       traverse( productidset, Elements, productid ){
         productids.Add( productid );
-        column.GenerateCell( selections, ccsps, dlsps, table, column.StartDate(), column.EndaDate(), productid, allunit, ccunit, dlunit );
+        product               := selectobject( owner, Product_MP, product, product.ID() = productid );
+        column.GenerateCell( selections, ccsps, dlsps, table, column.StartDate(), column.EndaDate(), product, allunit, ccunit, dlunit );
       }
     }
       

--
Gitblit v1.9.3