mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Add auto bill enabled to transformer
This commit is contained in:
parent
b9ada2794b
commit
bf812ad19e
@ -92,6 +92,7 @@ class Invoice extends BaseModel
|
||||
'assigned_user_id',
|
||||
'exchange_rate',
|
||||
'subscription_id',
|
||||
'auto_bill_enabled',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
|
@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user