wip
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user