No habilitar sync producto si cantidad es 0

This commit is contained in:
Rodrigo 2024-10-08 20:33:20 -03:00
parent e31c375867
commit c1af6909c4
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@
}
},
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() {
return this.cantidadEnChismosa() > 0;