View difference between Paste ID: 81QTcSDz and ZFu7smp9
SHOW: | | - or go back to the newest paste.
1
function formatCurrencyc(price, currencyFormat, currencySign, currencyBlank)
2
{
3
	blank = '';
4
	price = parseFloat(price.toFixed(6));
5-
	price = price * .020;
5+
	//change here
6-
	price = ps_round(price, priceDisplayPrecision);
6+
        price = price * .020;
7
	//
8
        price = ps_round(price, priceDisplayPrecision);
9
	if (currencyBlank > 0)
10
		blank = ' ';
11
	if (currencyFormat == 1)
12
		return currencySign + blank + formatNumber(price, priceDisplayPrecision, ',', '.');
13
	if (currencyFormat == 2)
14
		return (formatNumber(price, priceDisplayPrecision, ' ', ',') + blank + currencySign);
15
	if (currencyFormat == 3)
16
		return (currencySign + blank + formatNumber(price, priceDisplayPrecision, '.', ','));
17
	if (currencyFormat == 4)
18
		return (formatNumber(price, priceDisplayPrecision, ',', '.') + blank + currencySign);	
19
	return price;
20-
it should return the correct xxxx,xx price but doesn't...
20+
21
22
it should return the correct xxxx,xx price increased by 2% but doesn't...while without the added part it's ok