1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Fix late fee calculation

This commit is contained in:
Hillel Coren 2018-04-28 22:14:39 +03:00
parent a520cd2533
commit 31f881a816

View File

@ -1285,8 +1285,8 @@ class InvoiceRepository extends BaseRepository
$data = $invoice->toArray();
$fee = $amount;
if ($invoice->amount > 0) {
$fee += round($invoice->amount * $percent / 100, 2);
if ($invoice->balance > 0) {
$fee += round($invoice->balance * $percent / 100, 2);
}
$item = [];