Fix late fee calculation
This commit is contained in:
parent
a520cd2533
commit
31f881a816
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue