weizong song 5 years ago
parent a4712d374f
commit 172e15c95c

@ -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");

Loading…
Cancel
Save