mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Fix late fee calculation
This commit is contained in:
parent
a520cd2533
commit
31f881a816
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user