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']); + } } } }