mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #5776 from turbo124/v5-develop
Add auto bill enabled to transformer
This commit is contained in:
commit
b2d087c648
@ -92,6 +92,7 @@ class Invoice extends BaseModel
|
|||||||
'assigned_user_id',
|
'assigned_user_id',
|
||||||
'exchange_rate',
|
'exchange_rate',
|
||||||
'subscription_id',
|
'subscription_id',
|
||||||
|
'auto_bill_enabled',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
|
@ -154,7 +154,7 @@ class InvoiceTransformer extends EntityTransformer
|
|||||||
'reminder_last_sent' => $invoice->reminder_last_sent ?: '',
|
'reminder_last_sent' => $invoice->reminder_last_sent ?: '',
|
||||||
'paid_to_date' => (float) $invoice->paid_to_date,
|
'paid_to_date' => (float) $invoice->paid_to_date,
|
||||||
'subscription_id' => $this->encodePrimaryKey($invoice->subscription_id),
|
'subscription_id' => $this->encodePrimaryKey($invoice->subscription_id),
|
||||||
|
'auto_bill_enabled' => (bool) $invoice->auto_bill_enabled,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user