|
@@ -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,
|