1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

API change for mobile app

This commit is contained in:
Hillel Coren 2018-09-13 12:48:24 +03:00
parent ffe9ef574a
commit 947ed11c3a

View File

@ -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,