mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 11:14:31 -04: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) {
|
if ($invoice->is_amount_discount) {
|
||||||
$lineTotal -= $discount;
|
$lineTotal -= $discount;
|
||||||
} else {
|
} else {
|
||||||
$lineTotal -= $lineTotal * $discount / 100;
|
$lineTotal -= round($lineTotal * $discount / 100, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user