Browse Source

fleat: order update

igb 4 weeks ago
parent
commit
95d5ae0bab
1 changed files with 10 additions and 0 deletions
  1. 10 0
      order_save.php

+ 10 - 0
order_save.php

@@ -58,6 +58,9 @@ if (empty($items)) {
 
 // 处理保存
 if ($isedit) {
+
+    //价格判断,不能低于指导价
+
     // 更新订单基本信息
     $sql = "UPDATE orders SET 
             order_code = '$order_code', 
@@ -110,6 +113,13 @@ if ($isedit) {
 
     $message = "订单更新成功!";
 } else {
+
+    //价格判断,不能低于指导价
+    foreach ($items as $item) {
+
+
+    }
+
     // 创建新订单
     $sql = "INSERT INTO orders (
             order_code, customer_id, contact_id, employee_id,