mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:24:42 -04:00
Fix late fee calculation
This commit is contained in:
parent
b6df4ed650
commit
f838bfcc1e
@ -1290,8 +1290,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…
x
Reference in New Issue
Block a user