Widget: fix hiding taxline when rate is 0 (Z#23243324)

This commit is contained in:
Richard Schreiber
2026-08-18 16:08:58 +02:00
parent f9ea9de078
commit e2b3e1363f
2 changed files with 2 additions and 2 deletions
@@ -345,7 +345,7 @@ Vue.component('pricebox', {
+ ' :min="display_price_nonlocalized" :value="suggested_price_nonlocalized" :name="field_name"'
+ ' step="any" v-bind:aria-labelledby="aria_labelledby" v-bind:aria-describedby="price_desc_id">'
+ '</div>'
+ '<small class="pretix-widget-pricebox-tax" :id="price_desc_id" v-if="price.rate != \'0.00\' && price.gross != \'0.00\'">'
+ '<small class="pretix-widget-pricebox-tax" :id="price_desc_id" v-if="price.rate != \'0\' && price.gross != \'0.00\'">'
+ '{{ taxline }}'
+ '</small>'
+ '</div>'),
@@ -86,7 +86,7 @@ const taxline = computed(() => {
}
})
const showTaxline = computed(() => props.price.rate !== '0.00' && props.price.gross !== '0.00')
const showTaxline = computed(() => props.price.rate !== '0' && props.price.gross !== '0.00')
</script>
<template lang="pug">
.pretix-widget-pricebox