Change to bc-style operations for totals calculation in receivings

This commit is contained in:
jekkos-t520
2015-02-17 12:20:53 +01:00
parent 9b61e0ad67
commit 6710112f3d

View File

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