|
|
|
|
@ -653,6 +653,7 @@ class OrdersController extends CommonController
|
|
|
|
|
}
|
|
|
|
|
$customer = $order_items->first()->customer;
|
|
|
|
|
$price_changed_paid_items = $order_items->filter(function ($item) use ($request) {
|
|
|
|
|
dump($request->has("price"), $item->paid_at,$request->price,$item->total);
|
|
|
|
|
return $request->has("price") && $item->paid_at && $request->price != $item->total;
|
|
|
|
|
});
|
|
|
|
|
$total_increased = $price_changed_paid_items->count() * $request->price - $price_changed_paid_items->sum("total");
|
|
|
|
|
|