From c91a16f6cad675993249b156bc59e3f71a998435 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 6 Oct 2017 16:45:02 +0300 Subject: [PATCH] Add client to tax report --- app/Ninja/Reports/TaxRateReport.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Ninja/Reports/TaxRateReport.php b/app/Ninja/Reports/TaxRateReport.php index c964a7f4dcd6..7fad4c6e1c31 100644 --- a/app/Ninja/Reports/TaxRateReport.php +++ b/app/Ninja/Reports/TaxRateReport.php @@ -8,6 +8,7 @@ use Auth; class TaxRateReport extends AbstractReport { public $columns = [ + 'client', 'invoice', 'tax_name', 'tax_rate', @@ -67,7 +68,8 @@ class TaxRateReport extends AbstractReport foreach ($taxTotals as $currencyId => $taxes) { foreach ($taxes as $tax) { $this->data[] = [ - $invoice->present()->link, + $this->isExport ? $client->getDisplayName() : $client->present()->link, + $this->isExport ? $invoice->invoice_number : $invoice->present()->link, $tax['name'], $tax['rate'] . '%', $account->formatMoney($tax['amount'], $client),