forked from CGM_Public/pretix_original
Conditionally show decimal places for tax rates
This commit is contained in:
@@ -232,12 +232,12 @@ Vue.component('pricebox', {
|
||||
taxline: function () {
|
||||
if (this.$root.display_net_prices) {
|
||||
return django.interpolate(strings.tax_plus, {
|
||||
'rate': floatformat(this.price.rate, 2),
|
||||
'rate': autofloatformat(this.price.rate, 2),
|
||||
'taxname': this.price.name
|
||||
}, true);
|
||||
} else {
|
||||
return django.interpolate(strings.tax_incl, {
|
||||
'rate': floatformat(this.price.rate, 2),
|
||||
'rate': autofloatformat(this.price.rate, 2),
|
||||
'taxname': this.price.name
|
||||
}, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user