price on item page is now with two decimals
This commit is contained in:
@@ -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 : {
|
||||
|
||||
Reference in New Issue
Block a user