Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

757
 
758
 
758
 
currencies.php
_> 11 <?php
  22 /*
<> 3 -  $Id: currencies.php 757 2006-08-23 12:22:54Z hpdl $
   3+  $Id: currencies.php 758 2006-08-23 12:30:07Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
6161       return number_format(osc_round($number * $currency_value, $this->currencies[$currency_code]['decimal_places']), $this->currencies[$currency_code]['decimal_places'], '.', '');
  6262     }
  6363 
<> 64 -    function formatRawWithTaxRate($price, $tax_rate, $quantity = 1, $currency_code = '', $currency_value = '') {
   64+    function addTaxRateToPrice($price, $tax_rate, $quantity = 1) {
6565       global $osC_Tax;
  6666 
  6767       $price = osc_round($price, $this->currencies[DEFAULT_CURRENCY]['decimal_places']);
     
 !
7070         $price += osc_round($price * ($tax_rate / 100), $this->currencies[DEFAULT_CURRENCY]['decimal_places']);
  7171       }
  7272 
<> 73 -      return $this->formatRaw($price * $quantity, $currency_code, $currency_value);
   73+      return osc_round($price * $quantity, $this->currencies[DEFAULT_CURRENCY]['decimal_places']);
<_ 7474     }
  7575 
  7676     function displayPrice($price, $tax_class_id, $quantity = 1, $currency_code = null, $currency_value = null) {