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();
|
$data = $invoice->toArray();
|
||||||
$fee = $amount;
|
$fee = $amount;
|
||||||
|
|
||||||
if ($invoice->amount > 0) {
|
if ($invoice->balance > 0) {
|
||||||
$fee += round($invoice->amount * $percent / 100, 2);
|
$fee += round($invoice->balance * $percent / 100, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
$item = [];
|
$item = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user