fixes for invoice transformer

This commit is contained in:
David Bomba 2019-05-22 20:33:18 +10:00
parent 7f451eeab2
commit 608f580760

View File

@ -154,8 +154,8 @@ class InvoiceTransformer extends EntityTransformer
'partial_due_date' => $invoice->partial_due_date ?: '', 'partial_due_date' => $invoice->partial_due_date ?: '',
'custom_value1' => (float) $invoice->custom_value1, 'custom_value1' => (float) $invoice->custom_value1,
'custom_value2' => (float) $invoice->custom_value2, 'custom_value2' => (float) $invoice->custom_value2,
'custom_taxes1' => (bool) $invoice->custom_taxes1, 'custom_value3' => (bool) $invoice->custom_value3,
'custom_taxes2' => (bool) $invoice->custom_taxes2, 'custom_value4' => (bool) $invoice->custom_value4,
'has_tasks' => (bool) $invoice->has_tasks, 'has_tasks' => (bool) $invoice->has_tasks,
'has_expenses' => (bool) $invoice->has_expenses, 'has_expenses' => (bool) $invoice->has_expenses,
'custom_text_value1' => $invoice->custom_text_value1 ?: '', 'custom_text_value1' => $invoice->custom_text_value1 ?: '',