Fix has tax behaviour.

This commit is contained in:
HenriT
2021-05-26 16:34:40 +03:00
parent 0f9f9d84a5
commit c110a0746b
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export default {
watch: { watch: {
team() { team() {
this.updateStyleEl(this.team.custom_css); this.updateStyleEl(this.team.custom_css);
} },
}, },
created() { created() {
this.initStyleEl(); this.initStyleEl();

View File

@ -42,7 +42,7 @@ export default {
}); });
const client = rootGetters['invoices/invoice'].client; const client = rootGetters['invoices/invoice'].client;
if (client && client.has_tax) { if ((client && client.has_tax) || !client) {
const taxes = getters.taxes.length > 0 const taxes = getters.taxes.length > 0
? getters.taxes ? getters.taxes
: rootGetters['taxes/allWithLabels']; : rootGetters['taxes/allWithLabels'];