From 2713c338a98325cad21ebec2085802a5e49a98ef Mon Sep 17 00:00:00 2001
From: hongji.li <hongji.a.li@capgemini.com>
Date: 星期日, 05 十一月 2023 17:47:41 +0800
Subject: [PATCH] Pegging&年度产销优化
---
_Main/BL/Type_PeggingResult/StaticMethod_GenerateNewSupply.qbl | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/_Main/BL/Type_PeggingResult/StaticMethod_GenerateNewSupply.qbl b/_Main/BL/Type_PeggingResult/StaticMethod_GenerateNewSupply.qbl
index 24adf59..269e335 100644
--- a/_Main/BL/Type_PeggingResult/StaticMethod_GenerateNewSupply.qbl
+++ b/_Main/BL/Type_PeggingResult/StaticMethod_GenerateNewSupply.qbl
@@ -11,7 +11,7 @@
{
TextBody:
[*
- info( "渚涘簲绫诲瀷锛圢ewSupply锛�", " 渚涘簲閲忥細", ns.Quantity(), " 婊¤冻锛�", fulfillmentQuantity );
+ //info( "渚涘簲绫诲瀷锛圢ewSupply锛�", " 渚涘簲閲忥細", ns.Quantity(), " 婊¤冻锛�", fulfillmentQuantity );
pisp := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP();
@@ -30,8 +30,8 @@
ontype ( ns.PeriodTask_MP() ) {
PeriodTaskOperation as pto : {
childPeggingResult.SupplyType( "浜х嚎渚涘簲" );
- info( "鎿嶄綔鍛ㄦ湡浠诲姟 ", "渚涘簲鏃堕棿锛�", ns.Start().Format( "Y-M2-D2" ), " 鍛ㄦ湡浠诲姟KEY锛�", pto.Key(), " ",
- ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().Name() );
+ // info( "鎿嶄綔鍛ㄦ湡浠诲姟 ", "渚涘簲鏃堕棿锛�", ns.Start().Format( "Y-M2-D2" ), " 鍛ㄦ湡浠诲姟KEY锛�", pto.Key(), " ",
+ // ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().Name() );
traverse ( pto, DependentDemand, dd, dd.Quantity() > 0 ) {
traverse ( dd, Fulfillment, f ) {
fulfillmentQuantity := ( dd.Quantity() / ns.Quantity() ) * fulfillmentQuantity;
@@ -40,7 +40,7 @@
actualFulfillmentQuantity := f.Quantity();
smp1 := f.Supply_MP();
numberOfPlies++;
- info( "--------------------------------------------------------------" );
+ // info( "--------------------------------------------------------------" );
PeggingResult::GeneratePeggingResult( peggingProductInSalesDemandBase, numberOfPlies, smp1, actualFulfillmentQuantity, orderFulfillmentQuantity, childPeggingResult );
numberOfPlies--;
}
@@ -52,15 +52,15 @@
targetDependentDemand := select( ptll, DependentDemand, dd,
dd.ProcessInput().ProductInStockingPoint_MP().ProductID() = ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID() and
dd.Quantity() = ns.Quantity() );
- info( "杞﹂亾鍛ㄦ湡浠诲姟 ", "渚涘簲鏃堕棿锛�", ns.Start().Format( "Y-M2-D2" ), " 鍛ㄦ湡浠诲姟KEY锛�", ptll.Key(), " ",
- ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().Name() );
+ // info( "杞﹂亾鍛ㄦ湡浠诲姟 ", "渚涘簲鏃堕棿锛�", ns.Start().Format( "Y-M2-D2" ), " 鍛ㄦ湡浠诲姟KEY锛�", ptll.Key(), " ",
+ // ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().Name() );
traverse ( targetDependentDemand, Fulfillment, f ) {
totalSupply := sum( targetDependentDemand, Fulfillment, tempF, tempF.Quantity() );
orderFulfillmentQuantity := ( f.Quantity() / totalSupply ) * fulfillmentQuantity;
actualFulfillmentQuantity := f.Quantity();
smp1 := f.Supply_MP();
numberOfPlies++;
- info( "--------------------------------------------------------------" );
+ // info( "--------------------------------------------------------------" );
PeggingResult::GeneratePeggingResult( peggingProductInSalesDemandBase, numberOfPlies, smp1, actualFulfillmentQuantity, orderFulfillmentQuantity, childPeggingResult );
numberOfPlies--;
}
--
Gitblit v1.9.3