forked from nathalie/pedi2
No habilitar sync producto si cantidad es 0
This commit is contained in:
parent
e31c375867
commit
c1af6909c4
|
@ -79,7 +79,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hayCambios() {
|
hayCambios() {
|
||||||
return this.cantidad != this.cantidadEnChismosa() || this.notas != this.notasEnChismosa();
|
if (this.cantidad != this.cantidadEnChismosa()) return true;
|
||||||
|
|
||||||
|
return this.cantidad > 0 && this.notas != this.notasEnChismosa();
|
||||||
},
|
},
|
||||||
puedeBorrar() {
|
puedeBorrar() {
|
||||||
return this.cantidadEnChismosa() > 0;
|
return this.cantidadEnChismosa() > 0;
|
||||||
|
|
Loading…
Reference in New Issue