mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-02-07 08:01:12 -05:00
Set calculation precision to currency + tax decimals (#759)
This commit is contained in:
@@ -43,6 +43,6 @@ function load_config()
|
||||
date_default_timezone_set('America/New_York');
|
||||
}
|
||||
|
||||
bcscale((1 + $CI->config->item('quantity_decimals')) * $CI->config->item('tax_decimals'));
|
||||
bcscale($CI->config->item('currency_decimals') + $CI->config->item('tax_decimals'));
|
||||
}
|
||||
?>
|
||||
@@ -644,7 +644,6 @@ class Sale_lib
|
||||
public function get_item_tax($quantity, $price, $discount_percentage, $tax_percentage)
|
||||
{
|
||||
$price = $this->get_item_total($quantity, $price, $discount_percentage, TRUE);
|
||||
|
||||
if($this->CI->config->config['tax_included'])
|
||||
{
|
||||
$tax_fraction = bcadd(100, $tax_percentage);
|
||||
|
||||
Reference in New Issue
Block a user