1
0
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:
David Bomba 2019-09-25 16:55:09 +10:00
parent 0687817ae8
commit 2df455c21d

View File

@ -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]);
});