From 5fa4a6a06c62fd41731ff6cc1f1f6e031bd7436f Mon Sep 17 00:00:00 2001
From: yypsybs <yypsybs@foxmail.com>
Date: 星期三, 18 十月 2023 09:50:10 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev

---
 _Main/BL/Type_CapacityAllocationResults/StaticMethod_CreateDate1.qbl |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/_Main/BL/Type_CapacityAllocationResults/StaticMethod_CreateDate1.qbl b/_Main/BL/Type_CapacityAllocationResults/StaticMethod_CreateDate1.qbl
index 2b6d0a6..867dabd 100644
--- a/_Main/BL/Type_CapacityAllocationResults/StaticMethod_CreateDate1.qbl
+++ b/_Main/BL/Type_CapacityAllocationResults/StaticMethod_CreateDate1.qbl
@@ -2,7 +2,7 @@
 #parent: #root
 StaticMethod CreateDate1 (
   MacroPlan macroPlan,
-  GlobalOTDTable globalOTDTable,
+  GlobalOTDSOP globalOTDSOP,
   DependentDemand dependentDemand,
   NewSupply newSupply,
   Supply_MP firstNewSupply,
@@ -18,25 +18,25 @@
     
     if ( capacityAllocationResultsRuleConfiguration.PanelMaterialCode() = productID ) {
       info( "鎵惧埌浜嗭紒锛侊紒" );
-      globalOTDTable.CapacityAllocationResults( relnew,
-                                                PanelBase             := panelPISP.StockingPointID(),
-                                                PanelMaterialCode     := panelPISP.ProductID(),
-                                                NumberOfPanels        := fulfillmentQuantity,
-                                                PanelMeasurementUnit  := panelPISP.UnitOfMeasure_MP().Name(),
-                                                ModuleMaterialCode    := firstNewSupply.ProductInStockingPointInPeriodPlanning().ProductInStockingPoint_MP().ProductID(),
-                                                NumberOfModules       := firstNewSupply.Quantity(),
-                                                ModuleMeasurementUnit := firstNewSupply.ProductInStockingPointInPeriodPlanning().ProductInStockingPoint_MP().UnitOfMeasureName(),
-                                                ModuleBase            := firstNewSupply.ProductInStockingPointInPeriodPlanning().ProductInStockingPoint_MP().StockingPointID(),
-                                                RequirementDate       := dependentDemand.Start().Date(),
-                                                // 瀵煎嚭澶栭儴渚涘簲瀛楁
-                                                Date                  := dependentDemand.Start().Date(),
-                                                Description           := "",
-                                                ID                    := OS::GenerateGUIDAsString(),
-                                                ProductID             := panelPISP.ProductID(),
-                                                StockingPointID       := panelPISP.StockingPointID(),
-                                                UserQuantity          := fulfillmentQuantity,
-                                                ManufacturedDate      := Date::MinDate()
-                                               );
+      globalOTDSOP.CapacityAllocationResults( relnew,
+                                              PanelBase             := panelPISP.StockingPointID(),
+                                              PanelMaterialCode     := panelPISP.ProductID(),
+                                              NumberOfPanels        := fulfillmentQuantity,
+                                              PanelMeasurementUnit  := panelPISP.UnitOfMeasure_MP().Name(),
+                                              ModuleMaterialCode    := firstNewSupply.ProductInStockingPointInPeriodPlanning().ProductInStockingPoint_MP().ProductID(),
+                                              NumberOfModules       := firstNewSupply.Quantity(),
+                                              ModuleMeasurementUnit := firstNewSupply.ProductInStockingPointInPeriodPlanning().ProductInStockingPoint_MP().UnitOfMeasureName(),
+                                              ModuleBase            := firstNewSupply.ProductInStockingPointInPeriodPlanning().ProductInStockingPoint_MP().StockingPointID(),
+                                              RequirementDate       := dependentDemand.Start().Date(),
+                                              // 瀵煎嚭澶栭儴渚涘簲瀛楁
+                                              Date                  := dependentDemand.Start().Date(),
+                                              Description           := "",
+                                              ID                    := OS::GenerateGUIDAsString(),
+                                              ProductID             := panelPISP.ProductID(),
+                                              StockingPointID       := panelPISP.StockingPointID(),
+                                              UserQuantity          := fulfillmentQuantity,
+                                              ManufacturedDate      := Date::MinDate()
+                                             );
     }
   *]
 }

--
Gitblit v1.9.3