From 043e4ce7296346750db17c2c092d586237d48d23 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 8 Apr 2016 21:25:06 +1000 Subject: [PATCH] Minor fix to invoice item transformer --- app/Ninja/Transformers/InvoiceItemTransformer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Ninja/Transformers/InvoiceItemTransformer.php b/app/Ninja/Transformers/InvoiceItemTransformer.php index ab95b9cfd3..895d8e8d2f 100644 --- a/app/Ninja/Transformers/InvoiceItemTransformer.php +++ b/app/Ninja/Transformers/InvoiceItemTransformer.php @@ -19,9 +19,9 @@ class InvoiceItemTransformer extends EntityTransformer 'notes' => $item->notes, 'cost' => (float) $item->cost, 'qty' => (float) $item->qty, - 'tax_name1' => $item->tax_name1, + 'tax_name1' => $item->tax_name1 ? $item->tax_name1 : '', 'tax_rate1' => (float) $item->tax_rate1, - 'tax_name2' => $item->tax_name2, + 'tax_name2' => $item->tax_name2 ? $item->tax_name1 : '', 'tax_rate2' => (float) $item->tax_rate2, ]; }