From 5d2fa718fcc6f1b4fc6499faf9be07eb27d2db6f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 15 Feb 2017 11:46:24 +0200 Subject: [PATCH] Improve tax report #1351 --- app/Ninja/Reports/TaxRateReport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Ninja/Reports/TaxRateReport.php b/app/Ninja/Reports/TaxRateReport.php index 90e1dd8309e0..4930393412d6 100644 --- a/app/Ninja/Reports/TaxRateReport.php +++ b/app/Ninja/Reports/TaxRateReport.php @@ -72,10 +72,10 @@ class TaxRateReport extends AbstractReport $account->formatMoney($tax['amount'], $client), $account->formatMoney($tax['paid'], $client), ]; - } - $this->addToTotals($client->currency_id, 'amount', $invoice->amount); - $this->addToTotals($client->currency_id, 'paid', $invoice->getAmountPaid()); + $this->addToTotals($client->currency_id, 'amount', $tax['amount']); + $this->addToTotals($client->currency_id, 'paid', $tax['paid']); + } } } }