1
0
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:
David Bomba 2021-05-21 22:08:56 +10:00
parent b9ada2794b
commit bf812ad19e
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,
];
}
}