This commit is contained in:
Gerard 2019-02-14 12:06:14 +01:00
parent 16f92ce646
commit 1144a197a5
2 changed files with 5 additions and 4 deletions

View File

@ -60,8 +60,10 @@ module.exports = Self => {
await model.Sale.update({id: params.editLines[i].id}, {discount: params.editLines[i].discount}); await model.Sale.update({id: params.editLines[i].id}, {discount: params.editLines[i].discount});
} }
query = ` if (usesMana) {
query = `
call vn.manaSpellersRequery(?)`; call vn.manaSpellersRequery(?)`;
await Self.rawSql(query, [ticket[0].client().salesPersonFk]); await Self.rawSql(query, [ticket[0].client().salesPersonFk]);
}
}; };
}; };

View File

@ -51,9 +51,8 @@ class Controller {
}).catch(e => { }).catch(e => {
this.vnApp.showError(e.data.error.message); this.vnApp.showError(e.data.error.message);
}); });
} else { } else
this.vnApp.showError(this.$translate.instant('There is no changes to save')); this.vnApp.showError(this.$translate.instant('There is no changes to save'));
}
} }
clear() { clear() {