Mark as sent when we get to the payment screen

This commit is contained in:
David Bomba 2021-10-22 20:55:40 +11:00
parent b92f16bfe5
commit 29a7225d64

View File

@ -70,7 +70,10 @@ class InstantPayment
$invoices = Invoice::whereIn('id', $this->transformKeys($payable_invoices->pluck('invoice_id')->toArray()))->withTrashed()->get();
$invoices->each(function($invoice){
$invoice->service()->removeUnpaidGatewayFees()->save();
$invoice->service()
->marksent()
->removeUnpaidGatewayFees()
->save();
});
/* pop non payable invoice from the $payable_invoices array */