mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-26 01:53:16 -04:00
Change to bc-style operations for totals calculation in receivings
This commit is contained in:
@@ -366,7 +366,7 @@ class Receiving_lib
|
||||
$total = 0;
|
||||
foreach($this->get_cart() as $item)
|
||||
{
|
||||
$total += $this->get_item_total($item['quantity'], $item['price'], $item['discount']);
|
||||
$total = bcadd($total, $this->get_item_total($item['quantity'], $item['price'], $item['discount']), PRECISION);
|
||||
}
|
||||
|
||||
return $total;
|
||||
|
||||
Reference in New Issue
Block a user