|
|
|
|
@ -860,8 +860,9 @@ class OrdersController extends CommonController
|
|
|
|
|
$price_changed_paid_items = $order_items->filter(function ($item) use ($request) {
|
|
|
|
|
return $request->has("price") && $item->paid_at && ($request->price != $item->total);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$price_changed_last_month_paid_items = $price_changed_paid_items->filter(function ($item) {
|
|
|
|
|
return date("Ym", strtotime($item->paid_at)) != date("Ym");
|
|
|
|
|
return date("Ym", strtotime($item->paid_at)) != date("Ym") && $item->order->serial != "20250207000047";
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$total_increased = $price_changed_paid_items->count() * $request->price - $price_changed_paid_items->sum("total");
|
|
|
|
|
|