Widget: Number input field should always have english decimal separator

This commit is contained in:
Raphael Michel
2018-01-07 19:35:19 +01:00
parent 697e56962a
commit 58111465bc

View File

@@ -203,9 +203,9 @@ Vue.component('pricebox', {
computed: { computed: {
display_price: function () { display_price: function () {
if (this.$root.display_net_prices) { if (this.$root.display_net_prices) {
return floatformat(this.price.net, 2); return roundTo(parseFloat(this.price.net), 2).toFixed(2);
} else { } else {
return floatformat(this.price.gross, 2); return roundTo(parseFloat(this.price.gross), 2).toFixed(2);
} }
}, },
priceline: function () { priceline: function () {