From 49815448df4448a7d45cba23bfb76244182f7079 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 24 Jan 2018 20:21:30 +0200 Subject: [PATCH] Working on reports --- app/Ninja/Reports/InvoiceReport.php | 2 +- app/Ninja/Reports/QuoteReport.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Ninja/Reports/InvoiceReport.php b/app/Ninja/Reports/InvoiceReport.php index 3ac9e212a2d0..319717f40b52 100644 --- a/app/Ninja/Reports/InvoiceReport.php +++ b/app/Ninja/Reports/InvoiceReport.php @@ -95,7 +95,7 @@ class InvoiceReport extends AbstractReport ]; if (TaxRate::scope()->count()) { - $row[] = $invoice->getTaxTotal(); + $row[] = $isFirst ? $account->formatMoney($invoice->getTaxTotal(), $client) : ''; } if ($account->custom_invoice_text_label1) { diff --git a/app/Ninja/Reports/QuoteReport.php b/app/Ninja/Reports/QuoteReport.php index 28f1399feb39..600d3c69ff81 100644 --- a/app/Ninja/Reports/QuoteReport.php +++ b/app/Ninja/Reports/QuoteReport.php @@ -82,7 +82,7 @@ class QuoteReport extends AbstractReport ]; if (TaxRate::scope()->count()) { - $row[] = $invoice->getTaxTotal(); + $row[] = $account->formatMoney($invoice->getTaxTotal(), $client); } if ($account->custom_invoice_text_label1) {