weizong song 3 years ago
parent 7c8c475652
commit 7838699b83

@ -866,13 +866,13 @@ class OrdersController extends CommonController
}
$manager = $this->guard()->user();
if (!$manager->no_lock_ability) {
foreach ($order_items as $_item) {
if (date("Ym", strtotime($_item->service_date)) < date("Ym", strtotime("-1 month", time()))) {
$errors[] = "子订单{$_item->id}已锁定";
}
// if (!$manager->no_lock_ability) { //2023年8月份有开通一个功能让具有权限的人可以修改往月的已扣款订单后发现有问题现在改为只可以对当月已扣款订单进行修改
foreach ($order_items as $_item) {
if ($_item->paid_at && date("Ym", strtotime($_item->service_date)) < date("Ym", strtotime("-1 month", time()))) {
$errors[] = "子订单{$_item->service_date}已锁定";
}
}
// }
if ($total_increased > $customer->balance) {
$errors[] = "价格补差{$total_increased}超过了客户余额{$customer->balance},请先充值";

Loading…
Cancel
Save