This commit is contained in:
2024-11-23 13:19:03 +05:00
parent e49dbfe450
commit df0856adbe

View File

@@ -53,7 +53,7 @@ class MakePaymentNovaVisaMaster extends Action
$resource = $models->first();
$hasBeenPaid = false;
$resource->items->each(function ($item) use ($hasBeenPaid) {
$resource->paymentItems->each(function ($item) use ($hasBeenPaid) {
if (boolval($item->paid) && now()->format('m Y') == $item->created_at->format('m Y')) {
$hasBeenPaid = true;
}