Fix for invoice transformer

This commit is contained in:
Hillel Coren 2019-02-28 09:27:33 +02:00
parent cf24e11f14
commit 87bbe4ceea

View File

@ -168,7 +168,7 @@ class InvoiceTransformer extends EntityTransformer
'is_quote' => (bool) $invoice->isType(INVOICE_TYPE_QUOTE), // Temp to support mobile app 'is_quote' => (bool) $invoice->isType(INVOICE_TYPE_QUOTE), // Temp to support mobile app
'is_public' => (bool) $invoice->is_public, 'is_public' => (bool) $invoice->is_public,
'filename' => $invoice->getFileName(), 'filename' => $invoice->getFileName(),
'invoice_design_id' => $invoice->invoice_design_id, 'invoice_design_id' => (int) $invoice->invoice_design_id,
]); ]);
} }
} }