weizong song 3 months ago
parent f9e8276ba1
commit 27ee0b7419

@ -874,7 +874,7 @@ class OrdersController extends CommonController
});
$price_changed_last_month_paid_items = $price_changed_paid_items->filter(function ($item) {
return (date("Ym", strtotime($item->paid_at)) != date("Ym")) && 0;
return date("Ym", strtotime($item->paid_at)) != date("Ym");
});
$total_increased = $price_changed_paid_items->count() * $request->price - $price_changed_paid_items->sum("total");

Loading…
Cancel
Save