Add auto bill enabled to transformer
This commit is contained in:
parent
b9ada2794b
commit
bf812ad19e
2 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue