  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: currencies.php 757 2006-08-23 12:22:54Z hpdl $ |
| |
| 3 | + | $Id: currencies.php 758 2006-08-23 12:30:07Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
61 | 61 | | return number_format(osc_round($number * $currency_value, $this->currencies[$currency_code]['decimal_places']), $this->currencies[$currency_code]['decimal_places'], '.', ''); |
| |
62 | 62 | | } |
| |
63 | 63 | | |
  |
64 | | - | function formatRawWithTaxRate($price, $tax_rate, $quantity = 1, $currency_code = '', $currency_value = '') { |
| |
| 64 | + | function addTaxRateToPrice($price, $tax_rate, $quantity = 1) { |
|
65 | 65 | | global $osC_Tax; |
| |
66 | 66 | | |
| |
67 | 67 | | $price = osc_round($price, $this->currencies[DEFAULT_CURRENCY]['decimal_places']); |
| |
|
|
 |
… |
|
70 | 70 | | $price += osc_round($price * ($tax_rate / 100), $this->currencies[DEFAULT_CURRENCY]['decimal_places']); |
| |
71 | 71 | | } |
| |
72 | 72 | | |
  |
73 | | - | return $this->formatRaw($price * $quantity, $currency_code, $currency_value); |
| |
| 73 | + | return osc_round($price * $quantity, $this->currencies[DEFAULT_CURRENCY]['decimal_places']); |
  |
74 | 74 | | } |
| |
75 | 75 | | |
| |
76 | 76 | | function displayPrice($price, $tax_class_id, $quantity = 1, $currency_code = null, $currency_value = null) { |