mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
update invoice status
This commit is contained in:
parent
0687817ae8
commit
2df455c21d
@ -375,7 +375,8 @@ class StripePaymentDriver extends BasePaymentDriver
|
||||
//mark all invitations with transaction reference
|
||||
$invoices->each(function ($invoice) use($payment) {
|
||||
|
||||
$invoice->update(['status_id' => Payment::STATUS_COMPLETED]);
|
||||
$invoice->status_id = Payment::STATUS_COMPLETED;
|
||||
$invoice->save();
|
||||
$invoice->invitations()->update(['transaction_reference' => $payment->transaction_reference]);
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user