Fix discount rounding #1305
This commit is contained in:
parent
38591271fb
commit
97bbc55c23
1 changed files with 2 additions and 2 deletions
|
|
@ -467,8 +467,8 @@ class InvoiceRepository extends BaseRepository
|
|||
if ($invoice->is_amount_discount) {
|
||||
$total -= $invoice->discount;
|
||||
} else {
|
||||
$total *= (100 - $invoice->discount) / 100;
|
||||
$total = round($total, 2);
|
||||
$discount = round($total * ($invoice->discount/100), 2);
|
||||
$total -= $discount;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue