fix bug ticket.sale
gitea/salix/dev This commit looks good Details

This commit is contained in:
Bernat 2019-08-13 14:03:02 +02:00
parent d9c63e3bc0
commit 4032bde243
1 changed files with 6 additions and 7 deletions

View File

@ -20,6 +20,11 @@ class Controller {
this._sales = [];
this.imagesPath = '//verdnatura.es/vn-image-data/catalog';
}
isTicketEditable() {
this.$http.get(`/api/Tickets/${this.$state.params.id}/isEditable`).then(res => {
this.isEditable = res.data;
});
}
get ticket() {
return this._ticket;
@ -27,7 +32,7 @@ class Controller {
set ticket(value) {
this._ticket = value;
this.isEditable();
this.isTicketEditable();
}
get sales() {
@ -94,12 +99,6 @@ class Controller {
callback.call(this);
}
isEditable() {
this.$http.get(`/api/Tickets/${this.$state.params.id}/isEditable`).then(res => {
this.isEditable = res.data;
});
}
get isChecked() {
if (this.sales) {
for (let instance of this.sales)