#744 fix edit sale bug, boton MAS descuento
This commit is contained in:
parent
86f6253ed7
commit
6b03ead37d
|
@ -23,13 +23,10 @@ class Controller {
|
|||
this.imagesPath = '//verdnatura.es/vn-image-data/catalog';
|
||||
}
|
||||
|
||||
$postLink() {
|
||||
this.loadVAT();
|
||||
}
|
||||
|
||||
set sales(value) {
|
||||
this._sales = value;
|
||||
this.loadSubTotal();
|
||||
this.loadVAT();
|
||||
}
|
||||
|
||||
get sales() {
|
||||
|
@ -48,7 +45,7 @@ class Controller {
|
|||
|
||||
loadVAT() {
|
||||
this.VAT = 0.0;
|
||||
if (!this.$stateParams.id) return;
|
||||
if (!this.$stateParams.id || !this.sales) return;
|
||||
this.$http.get(`/ticket/api/Tickets/${this.$stateParams.id}/getVAT`).then(res => {
|
||||
this.VAT = res.data || 0.0;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue