From 3d66f91917d7b1dbd1c6de29ccd0696ad1526713 Mon Sep 17 00:00:00 2001
From: lihongji <3117313295@qq.com>
Date: 星期二, 19 十一月 2024 16:31:59 +0800
Subject: [PATCH] BUG修复

---
 _Main/BL/Type_NewOfflinePlanCell/StaticMethod_UpdateQuantity.qbl |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_UpdateQuantity.qbl b/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_UpdateQuantity.qbl
index 7e82739..9dde79f 100644
--- a/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_UpdateQuantity.qbl
+++ b/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_UpdateQuantity.qbl
@@ -6,5 +6,20 @@
   String attrName
 )
 {
-  TextBody: 'nopc.Quantity( value );'
+  TextBody:
+  [*
+    if ( value < 0 ) {
+      error( "鏁伴噺涓嶈兘涓鸿礋" );
+    }
+    
+    nopc.Quantity( value );
+    
+    // 鏁伴噺涓�0锛屼慨鏀筄rder
+    if ( value = 0 ) {
+      nopc.Order( "" );
+      nopc.OrderNr( 0 );
+    }
+    
+    // 濡傛灉鏁伴噺涓嶄负0锛屼慨鏀筄rder
+  *]
 }

--
Gitblit v1.9.3