From 378955a39437125d274173c1ebcfd91dba15fc18 Mon Sep 17 00:00:00 2001
From: renhao <renhui.hao@capgemini.com>
Date: 星期二, 19 九月 2023 13:59:53 +0800
Subject: [PATCH] 需求和外部库存日期限制过滤取消 创建采购供应
---
_Main/BL/Type_MacroPlan/Method_MappingOperationBOMDataSupplyPurchase.qbl | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/_Main/BL/Type_MacroPlan/Method_MappingOperationBOMDataSupplyPurchase.qbl b/_Main/BL/Type_MacroPlan/Method_MappingOperationBOMDataSupplyPurchase.qbl
index 6a24698..71d3cbd 100644
--- a/_Main/BL/Type_MacroPlan/Method_MappingOperationBOMDataSupplyPurchase.qbl
+++ b/_Main/BL/Type_MacroPlan/Method_MappingOperationBOMDataSupplyPurchase.qbl
@@ -8,14 +8,7 @@
{
TextBody:
[*
- routingId := "PR_"+orgCode + "_" + productId;
- unitId := "渚涘簲鍟�";
- routingStepName := "Purchase";
- operationId := orgCode + "_PR_" + productId;
- routing := Routing::CreateOrUpdate( this, routingId );
- toDeleteSteps := selectset( routing, RoutingStep, routingStep, true );
- RoutingStep::Delete( toDeleteSteps );
- routingStep := RoutingStep::Create( routing, routingStepName, "", true );
+
product := Product_MP::FindById( this, productId );
if( isnull( product ) ) {
info( "product : " + productId + " not found" );
@@ -27,6 +20,14 @@
}
if( not isnull( product) and not isnull( stockingPoint)){
+ routingId := "PR_"+orgCode + "_" + productId;
+ unitId := "渚涘簲鍟�";
+ routingStepName := "Purchase";
+ operationId := orgCode + "_PR_" + productId;
+ routing := Routing::CreateOrUpdate( this, routingId );
+ toDeleteSteps := selectset( routing, RoutingStep, routingStep, true );
+ RoutingStep::Delete( toDeleteSteps );
+ routingStep := RoutingStep::Create( routing, routingStepName, "", true );
unit := Unit::FindById( this, unitId );
if( isnull( unit ) ) {
unit := this.Unit( relnew,
--
Gitblit v1.9.3