weizong song 2 years ago
parent 406d1ce5ac
commit 582e790744

@ -861,8 +861,7 @@ class OrdersController extends CommonController
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 false;
//return date("Ym", strtotime($item->paid_at)) != date("Ym");
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