Mark as sent when we get to the payment screen
This commit is contained in:
parent
b92f16bfe5
commit
29a7225d64
1 changed files with 4 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue