mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Mark as sent when we get to the payment screen
This commit is contained in:
parent
b92f16bfe5
commit
29a7225d64
@ -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…
x
Reference in New Issue
Block a user