mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-28 16:31:07 -04:00
Fix has tax behaviour.
This commit is contained in:
@ -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();
|
||||||
|
|||||||
@ -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'];
|
||||||
|
|||||||
Reference in New Issue
Block a user