weizong song 3 months ago
parent d886951ac9
commit 6720d27157

@ -874,7 +874,7 @@ class OrdersController extends CommonController
}); });
$price_changed_last_month_paid_items = $price_changed_paid_items->filter(function ($item) { $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")) || 1;
}); });
$total_increased = $price_changed_paid_items->count() * $request->price - $price_changed_paid_items->sum("total"); $total_increased = $price_changed_paid_items->count() * $request->price - $price_changed_paid_items->sum("total");

Loading…
Cancel
Save