diff --git a/client/ticket/src/sale/index.js b/client/ticket/src/sale/index.js index 1c95188fd..35dc6aeb5 100644 --- a/client/ticket/src/sale/index.js +++ b/client/ticket/src/sale/index.js @@ -64,10 +64,12 @@ class Controller { } getVAT() { - this.$http.get(`/ticket/api/Tickets/${this.ticket.id}/getVAT`).then(res => { - this.VAT = res.data || 0; - this.total = this.subTotal + this.VAT; - }); + if (this.ticket || this.ticket.id) { + this.$http.get(`/ticket/api/Tickets/${this.ticket.id}/getVAT`).then(res => { + this.VAT = res.data || 0; + this.total = this.subTotal + this.VAT; + }); + } } get isEditable() {