mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-19 14:01:38 -04:00
Merge pull request #1431 from RuleDomain/sales-tax-correction
Display tax decimals or currency decimals for tax amounts.
This commit is contained in:
@@ -64,7 +64,16 @@ function to_currency_no_money($number)
|
||||
|
||||
function to_currency_tax($number)
|
||||
{
|
||||
return to_decimals($number, 'tax_decimals', \NumberFormatter::CURRENCY);
|
||||
$config = get_instance()->config;
|
||||
|
||||
if($config->item('customer_sales_tax_support') == '1')
|
||||
{
|
||||
return to_decimals($number, 'currency_decimals', \NumberFormatter::CURRENCY);
|
||||
}
|
||||
else
|
||||
{
|
||||
return to_decimals($number, 'tax_decimals', \NumberFormatter::CURRENCY);
|
||||
}
|
||||
}
|
||||
|
||||
function to_tax_decimals($number)
|
||||
|
||||
Reference in New Issue
Block a user