From 85fb8fdf8bdef29cbe8a1f64bc27e049454e7142 Mon Sep 17 00:00:00 2001
From: yunchai <yunying.chai@capgemini.com>
Date: 星期一, 25 九月 2023 22:15:28 +0800
Subject: [PATCH] 合并DEV并且更新了冲减到订单

---
 _Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/_Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl b/_Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl
index b8b0705..c71e147 100644
--- a/_Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl
+++ b/_Main/BL/Type_MacroPlan/Method_InitialUnitAndStockingPoint.qbl
@@ -11,7 +11,7 @@
     currencyid := "CNY";
     startdate := Date::Date( 1900, 1, 1 );
     enddate := Date::Date( 9999, 12, 31 );
-    capacitytype := "Infinite";
+    capacitytype := "Transport quantity";
     
     if( isnull( Unit::FindById( this, "绌鸿繍" ) ) ){
       this.Unit( relnew, 
@@ -106,5 +106,11 @@
       ProductLevel_MP::Create( "2", isproductcatagory, this, isfromdb );
       ProductLevel_MP::Create( "3", isproductcatagory, this, isfromdb );
       }
+    
+    existsalestlevel := SalesLevel_MP::FindSalesLevelTypeIndex( "2")
+    if( isnull( existsalestlevel ) ){
+        SalesLevel_MP::Create( "1",this,isfromdb);
+        SalesLevel_MP::Create( "2",this,isfromdb);
+      }
   *]
 }

--
Gitblit v1.9.3