From be9f3270a50b9f5318beff37bd4d70fa5632657a Mon Sep 17 00:00:00 2001
From: yypsybs <yypsybs@foxmail.com>
Date: 星期五, 08 九月 2023 17:31:05 +0800
Subject: [PATCH] 4.11.物料属性标签设定&物料计划策略

---
 _Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_DeleteIfExistByMatCode#526.qbl |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git "a/_Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_deleteIfExistByMatCode\043136.qbl" "b/_Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_DeleteIfExistByMatCode\043526.qbl"
similarity index 73%
rename from "_Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_deleteIfExistByMatCode\043136.qbl"
rename to "_Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_DeleteIfExistByMatCode\043526.qbl"
index 7d22871..7d84d24 100644
--- "a/_Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_deleteIfExistByMatCode\043136.qbl"
+++ "b/_Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_DeleteIfExistByMatCode\043526.qbl"
@@ -1,14 +1,14 @@
 Quintiq file version 2.0
 #parent: #root
-StaticMethod deleteIfExistByMatCode (
+StaticMethod DeleteIfExistByMatCode (
   GlobalOTDTable parent,
-  Strings matCodes
+  Strings matCode
 )
 {
   TextBody:
   [*
     // yypsybs Jul-2-2023 (created)
-    toDels := selectset( parent, MatAttrSettingAndPlanStrategy, item, true, matCodes.Find( item.MatCode() ) <> -1 );
+    toDels := selectset( parent, MatAttrSettingAndPlanStrategy, item, true, matCode.Find( item.MatCode() ) >= 0 );
     if( toDels.Size() > 0 ) {
       traverse( toDels, Elements, toDel ) {
         toDel.Delete();

--
Gitblit v1.9.3