diff --git a/src/CoreShop/Bundle/OrderBundle/Resources/public/pimcore/js/order/detail/blocks/detail.js b/src/CoreShop/Bundle/OrderBundle/Resources/public/pimcore/js/order/detail/blocks/detail.js index d4dfb49641..be6213ecee 100644 --- a/src/CoreShop/Bundle/OrderBundle/Resources/public/pimcore/js/order/detail/blocks/detail.js +++ b/src/CoreShop/Bundle/OrderBundle/Resources/public/pimcore/js/order/detail/blocks/detail.js @@ -268,7 +268,17 @@ coreshop.order.order.detail.blocks.detail = Class.create(coreshop.order.order.de dataIndex: 'value', width: 150, align: 'right', - renderer: function (value) { + renderer: function (value, metaData, record) { + var data = record.data; + if (data.hasOwnProperty('precision') && data.hasOwnProperty('factor')) { + return '<span style="font-weight:bold">' + coreshop.util.format.currency_precision( + this.sale.baseCurrency.isoCode, + value, + pimcore.globalmanager.get('coreshop.currency.decimal_precision'), + pimcore.globalmanager.get('coreshop.currency.decimal_factor'), + ) + '</span>'; + } + return '<span style="font-weight:bold">' + coreshop.util.format.currency(this.sale.baseCurrency.isoCode, value) + '</span>'; }.bind(this) }, @@ -278,7 +288,18 @@ coreshop.order.order.detail.blocks.detail = Class.create(coreshop.order.order.de width: 150, align: 'right', hidden: this.sale.currency.id === this.sale.baseCurrency.id, - renderer: function (value) { + renderer: function (value, metaData, record) { + var data = record.data; + + if (data.hasOwnProperty('precision') && data.hasOwnProperty('factor')) { + return '<span style="font-weight:bold">' + coreshop.util.format.currency_precision( + this.sale.currency.isoCode, + value, + pimcore.globalmanager.get('coreshop.currency.decimal_precision'), + pimcore.globalmanager.get('coreshop.currency.decimal_factor'), + ) + '</span>'; + } + return '<span style="font-weight:bold">' + coreshop.util.format.currency(this.sale.currency.isoCode, value) + '</span>'; }.bind(this) }