From 93b4b535d06d9dd71039827e759bfc211c3ff4ef Mon Sep 17 00:00:00 2001
From: yypsybs <yypsybs@foxmail.com>
Date: 星期二, 19 九月 2023 14:13:45 +0800
Subject: [PATCH] PR
---
_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning#662.qbl | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git "a/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning\043662.qbl" "b/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning\043662.qbl"
index a8478db..f2d08bd 100644
--- "a/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning\043662.qbl"
+++ "b/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning\043662.qbl"
@@ -1,6 +1,7 @@
Quintiq file version 2.0
#parent: #root
StaticMethod FromSupplyPlanning (
+ GlobalOTDTable otdTable,
MacroPlan macroPlan,
MacroPlan mappingRoot,
ProductInStockingPointInPeriod pispip
@@ -17,6 +18,7 @@
stockingPoint := pisp.StockingPoint_MP();
period := pispip.Period_MP();
mappingProduct := MappingProduct::GetByProductId( mappingRoot, product.ID() );
+ matAttrSetting := MatAttrSettingAndPlanStrategy::GetExistByMatCode( otdTable, product.ID() );
// 鎺ュ彛/涓棿琛ㄦ殏鏃�
mappingProviderCapacity := "鏆傛棤";
erpData := "鏆傛棤";
@@ -37,6 +39,12 @@
result.PRSuggestionDate( ifexpr( (result.ProduceRequiredDate() - Duration::Days( 7 )).Date() >= Date::Today(),
Date::Today(), (result.ProduceRequiredDate() - Duration::Days( 7 )).Date() ) );
+ // 鏍规嵁 鐗╂枡灞炴�ф爣绛捐瀹�&鐗╂枡璁″垝绛栫暐
+ result.IsPannelMaterial();
+ result.IsGenericMaterial( matAttrSetting.FlagGeneric() );
+ result.IsLongLeadItem( matAttrSetting.FlagLongTerm() );
+ result.MaterialMRPType( ifexpr( matAttrSetting.PlanningStrategyCustom() <> "", matAttrSetting.PlanningStrategyCustom(), matAttrSetting.PlanningStrategyAuto() ) );
+
// 鏍规嵁product涓棿琛�
result.BusinessType( mappingProduct.BusinessType() );
result.OrganCode( mappingProduct.OrgCode() );
@@ -45,6 +53,7 @@
// 鏍规嵁渚涘簲鍟嗚兘鍔涗腑闂磋〃
result.ProviderCode( mappingProviderCapacity );
result.ProductName( mappingProviderCapacity );
+ result.LeadTime( 0.0 );
// 鏍规嵁erp鎺ュ彛 鍥哄畾鍊�
result.RequisitionType( "PURCHASE" );
@@ -68,7 +77,7 @@
// 鍙戦�佷俊鎭�
result.SendStatus( "" );
result.SendBy( "" );
- result.SendTIme( DateTime::MinDateTime() );
+ result.SendTime( DateTime::MinDateTime() );
return result;
*]
--
Gitblit v1.9.3