1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Hide recurring invoice number in transformer

This commit is contained in:
Hillel Coren 2017-06-13 21:58:01 +03:00
parent cf3815240d
commit 7d0204033b

View File

@ -91,7 +91,7 @@ class InvoiceTransformer extends EntityTransformer
'invoice_status_id' => (int) $invoice->invoice_status_id,
'updated_at' => $this->getTimestamp($invoice->updated_at),
'archived_at' => $this->getTimestamp($invoice->deleted_at),
'invoice_number' => $invoice->invoice_number,
'invoice_number' => $invoice->is_recurring ? '' : $invoice->invoice_number,
'discount' => (float) $invoice->discount,
'po_number' => $invoice->po_number,
'invoice_date' => $invoice->invoice_date,