commit e919c1a4d711b599890ff4d028cd23d3cf6c24eb parent e18d5e86ef5f4b2f4bbf0aa166860ef0b6f6002b Author: Felicitus <felicitus@felicitus.org> Date: Sat, 28 Nov 2015 16:40:08 +0100 Fixed average price renderer, related to #500 Diffstat:
M | src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsGrid.js | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsGrid.js @@ -298,10 +298,9 @@ Ext.define('PartKeepr.PartsGrid', { ]; }, - averagePriceRenderer: function () + averagePriceRenderer: function (val) { - "use strict"; - return 0; + return PartKeepr.getApplication().formatCurrency(val); }, /** * Renders the storage location