mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Merge line item discount rounding fix
This commit is contained in:
parent
e56bdcf44d
commit
6ac1982aef
@ -549,7 +549,7 @@ class InvoiceRepository extends BaseRepository
|
||||
if ($invoice->is_amount_discount) {
|
||||
$lineTotal -= $discount;
|
||||
} else {
|
||||
$lineTotal -= $lineTotal * $discount / 100;
|
||||
$lineTotal -= round($lineTotal * $discount / 100, 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user