mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-21 15:54:36 -04:00
Fix discounted price rounding issues in reports
This commit is contained in:
1 parent
4edc44a816
commit
7a4cf1e2bd
3 files changed
+19
-4
No files matched your search
@@ -1270,6 +1270,10 @@ class Sale_lib
|
||||
{
|
||||
$discount = bcmul($total, bcdiv($discount, 100));
|
||||
}
|
||||
else
|
||||
{
|
||||
$discount = bcmul($quantity, $discount);
|
||||
}
|
||||
|
||||
return round($discount, totals_decimals(), PHP_ROUND_HALF_UP);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user