shish 3 лет назад
Родитель
Сommit
eb44745f7f
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      app-ghs/controllers/OrderClearController.php

+ 5 - 0
app-ghs/controllers/OrderClearController.php

@@ -37,6 +37,11 @@ class OrderClearController extends BaseController
         $custom = CustomClass::getById($customId, true);
         CustomClass::valid($custom, $this->shopId);
 
+        $info = OrderClearClass::getByCondition(['customId' => $customId, 'status' => 1], true);
+        if (!empty($info)) {
+            util::fail('已有待结账单,请取消或提醒客户付款');
+        }
+
         $where = ['customId' => $customId, 'status' => PurchaseClearClass::STATUS_AWAIT_PAY];
 
         $searchTime = $post['searchTime'] ?? '';