From 947ed11c3a3a17415b6653f3a34d4a52658d36b5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 13 Sep 2018 12:48:24 +0300 Subject: [PATCH] API change for mobile app --- app/Ninja/Transformers/InvoiceTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Transformers/InvoiceTransformer.php b/app/Ninja/Transformers/InvoiceTransformer.php index 4d10995bb2..b695311d29 100644 --- a/app/Ninja/Transformers/InvoiceTransformer.php +++ b/app/Ninja/Transformers/InvoiceTransformer.php @@ -91,7 +91,7 @@ class InvoiceTransformer extends EntityTransformer 'amount' => (float) $invoice->amount, 'balance' => (float) $invoice->balance, 'client_id' => (int) ($this->client ? $this->client->public_id : $invoice->client->public_id), - 'invoice_status_id' => (int) $invoice->invoice_status_id, + 'invoice_status_id' => (int) ($invoice->invoice_status_id ?: 1), 'updated_at' => $this->getTimestamp($invoice->updated_at), 'archived_at' => $this->getTimestamp($invoice->deleted_at), 'invoice_number' => $invoice->is_recurring ? '' : $invoice->invoice_number,