mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-13 03:18:04 -04:00
Set minimum precision for low number of tax / price decimals (#766)
This commit is contained in:
@@ -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')));
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user