diff --git a/apps/myaccount/views/transactions-list.html b/apps/myaccount/views/transactions-list.html index 4697f0616..6125c5447 100644 --- a/apps/myaccount/views/transactions-list.html +++ b/apps/myaccount/views/transactions-list.html @@ -14,7 +14,7 @@ {{/if}}
{{ this.friendlyCreated }}
-
{{ ../../i18n.currencyUsed }}{{ this.amount }}
+
{{ ../../i18n.currencyUsed }}{{#if this.isARefund}}-{{/if}}{{ this.amount }}
{{else}} diff --git a/js/lib/monster.util.js b/js/lib/monster.util.js index 764267400..973cf03ea 100644 --- a/js/lib/monster.util.js +++ b/js/lib/monster.util.js @@ -368,12 +368,18 @@ define(function(require){ transaction.amount = parseFloat(transaction.amount).toFixed(2); if(transaction.hasOwnProperty('code')) { - if(transaction.code === 9999 || transaction.code % 1000 < 500) { + if(transaction.code % 1000 < 500) { transaction.friendlyName = app.i18n.active().transactions.codes[transaction.code]; } else { transaction.isARefund = true; - transaction.friendlyName = app.i18n.active().transactions.codes[transaction.code - 500] + ' ' + app.i18n.active().transactions.refundText; + + if(transaction.code === 9999) { + transaction.friendlyName = app.i18n.active().transactions.codes[transaction.code]; + } + else { + transaction.friendlyName = app.i18n.active().transactions.codes[transaction.code - 500] + ' ' + app.i18n.active().transactions.refundText; + } } }