1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #5776 from turbo124/v5-develop

Add auto bill enabled to transformer
This commit is contained in:
David Bomba 2021-05-21 22:09:13 +10:00 committed by GitHub
commit b2d087c648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -92,6 +92,7 @@ class Invoice extends BaseModel
'assigned_user_id',
'exchange_rate',
'subscription_id',
'auto_bill_enabled',
];
protected $casts = [

View File

@ -154,7 +154,7 @@ class InvoiceTransformer extends EntityTransformer
'reminder_last_sent' => $invoice->reminder_last_sent ?: '',
'paid_to_date' => (float) $invoice->paid_to_date,
'subscription_id' => $this->encodePrimaryKey($invoice->subscription_id),
'auto_bill_enabled' => (bool) $invoice->auto_bill_enabled,
];
}
}