projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exchange rate bug when searching a non existing customer
[fa-stable.git]
/
taxes
/
tax_calc.inc
diff --git
a/taxes/tax_calc.inc
b/taxes/tax_calc.inc
index 7107cdca7a75c8f6732e533231faeda6c84cc92e..db98540842b321e134efa61fca56db60725c3a7c 100644
(file)
--- a/
taxes/tax_calc.inc
+++ b/
taxes/tax_calc.inc
@@
-50,7
+50,7
@@
function get_tax_free_price_for_item($stock_id, $price, $tax_group, $tax_include
$tax_multiplier += $taxitem["rate"];
}
$tax_multiplier += $taxitem["rate"];
}
- return round($price / (1 + ($tax_multiplier / 100)), user_price_dec());
+ return round($price / (1 + ($tax_multiplier / 100)),
2*
user_price_dec());
}
//
// Full price (incl. VAT) for item $stock_id with line price $price,
}
//
// Full price (incl. VAT) for item $stock_id with line price $price,
@@
-86,7
+86,7
@@
function get_full_price_for_item($stock_id, $price, $tax_group, $tax_included, $
$tax_multiplier += $taxitem["rate"];
}
$tax_multiplier += $taxitem["rate"];
}
- return round($price * (1 + ($tax_multiplier / 100)), user_price_dec());
+ return round($price * (1 + ($tax_multiplier / 100)),
2*
user_price_dec());
}
//---------------------------------------------------------------------------------
}
//---------------------------------------------------------------------------------