diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 43f63cefc6..6febb5876f 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -92,6 +92,7 @@ class Invoice extends BaseModel 'assigned_user_id', 'exchange_rate', 'subscription_id', + 'auto_bill_enabled', ]; protected $casts = [ diff --git a/app/Transformers/InvoiceTransformer.php b/app/Transformers/InvoiceTransformer.php index 21487a63c0..83266c1f6b 100644 --- a/app/Transformers/InvoiceTransformer.php +++ b/app/Transformers/InvoiceTransformer.php @@ -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, ]; } }