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: {
team() {
this.updateStyleEl(this.team.custom_css);
}
},
},
created() {
this.initStyleEl();

View File

@ -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'];