Improve tax report #1351

This commit is contained in:
Hillel Coren 2017-02-15 11:46:24 +02:00
parent 556a90c8ef
commit 5d2fa718fc

View File

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