price on item page is now with two decimals

This commit is contained in:
Senad Uka
2015-06-13 03:28:16 +02:00
parent 771a71b42f
commit c27e08a682
5 changed files with 12 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ var ItemWithDetails = Backbone.Model.extend({
var price = parseFloat(this.get('list_price')).toFixed(2)
var pricePerUnit = (price / unitsInPack).toFixed(2);
var descriptionSuffix = this.get('unit').description_suffix;
return (+pricePerUnit).toString() + " KM " + descriptionSuffix;
return Globals.FormatCurrency(pricePerUnit);
}
},
defaults : {