Fix item cost rounding

This commit is contained in:
Hillel Coren 2018-11-08 12:18:08 +02:00
parent f9cdc6be93
commit ba1344e6bc

View file

@ -1042,7 +1042,7 @@ ko.bindingHandlers.productTypeahead = {
templates: {
suggestion: function(item) { return '<div title="' + _.escape(item.notes) + '" style="border-bottom: solid 1px #CCC">'
+ _.escape(item.product_key) + "<br/>"
+ roundToTwo(item.cost, true) + ' • '
+ roundSignificant(item.cost, true) + ' • '
+ _.escape(item.notes.substring(0, 100)) + '</div>' }
},
source: searchData(allBindings.items, allBindings.key, false, 'notes'),