1
0
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:
Hillel Coren 2018-03-19 11:12:37 +02:00
parent e56bdcf44d
commit 6ac1982aef

View File

@ -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);
}
}