|
|
|
|
@ -877,7 +877,7 @@ class OrdersController extends CommonController
|
|
|
|
|
$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()))) {
|
|
|
|
|
if ($_item->paid_at && $request->price && $_item->total != $request->price && date("Ym", strtotime($_item->service_date)) < date("Ym", strtotime("-3 month", time()))) {
|
|
|
|
|
$errors[] = "子订单{$_item->service_date}价格已锁定";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|