From c110a0746b91e78538306b9ab56b448b5d9ffd35 Mon Sep 17 00:00:00 2001 From: HenriT Date: Wed, 26 May 2021 16:34:40 +0300 Subject: [PATCH] Fix has tax behaviour. --- src/components/invoices/CustomizationsModal.vue | 2 +- src/store/invoice-rows.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/invoices/CustomizationsModal.vue b/src/components/invoices/CustomizationsModal.vue index bcf788a..bd3ec3b 100644 --- a/src/components/invoices/CustomizationsModal.vue +++ b/src/components/invoices/CustomizationsModal.vue @@ -52,7 +52,7 @@ export default { watch: { team() { this.updateStyleEl(this.team.custom_css); - } + }, }, created() { this.initStyleEl(); diff --git a/src/store/invoice-rows.js b/src/store/invoice-rows.js index b0f404c..95353d2 100644 --- a/src/store/invoice-rows.js +++ b/src/store/invoice-rows.js @@ -42,7 +42,7 @@ export default { }); const client = rootGetters['invoices/invoice'].client; - if (client && client.has_tax) { + if ((client && client.has_tax) || !client) { const taxes = getters.taxes.length > 0 ? getters.taxes : rootGetters['taxes/allWithLabels'];