weizong song 2 months ago
parent ff4d9745fc
commit 07ade32edc

@ -884,14 +884,14 @@ class OrdersController extends CommonController
$errors = [];
if ($price_changed_last_month_paid_items->count()) {
//$errors[] = "有" . $price_changed_last_month_paid_items->count() . "天往月扣款的子订单已锁定价格,不可修改";
$errors[] = "有" . $price_changed_last_month_paid_items->count() . "天往月扣款的子订单已锁定价格,不可修改";
}
$manager = $this->guard()->user();
// if (!$manager->no_lock_ability) { //2023年8月份有开通一个功能让具有权限的人可以修改往月的已扣款订单后发现有问题现在改为只可以对当月或上月已扣款订单进行修改
foreach ($order_items as $_item) {
if ($_item->paid_at && $request->price && $_item->total != $request->price && date("Ym", strtotime($_item->service_date)) < date("Ym", strtotime("-1 month", time()))) {
//$errors[] = "子订单{$_item->service_date}价格已锁定";
$errors[] = "子订单{$_item->service_date}价格已锁定";
}
}
// }

Loading…
Cancel
Save