Set minimum precision for low number of tax / price decimals (#766)

This commit is contained in:
jekkos
2016-09-01 18:15:55 +02:00
parent c88de60a9f
commit ce2c83b3f9

View File

@@ -43,6 +43,6 @@ function load_config()
date_default_timezone_set('America/New_York');
}
bcscale($CI->config->item('currency_decimals') + $CI->config->item('tax_decimals'));
bcscale(max(2, $CI->config->item('currency_decimals') + $CI->config->item('tax_decimals')));
}
?>