Commit 13985959f6d112c94bcb6270ae66ce59391ca7df
1 parent
22c46eab7c
Exists in
master
Cambio de propiedad que se usaba como bandera para editar un producto.
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -532,7 +532,6 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
532 | 532 | IMP_DESP: 0, |
533 | 533 | PCD: 0, |
534 | 534 | RTO: '', |
535 | - esDespacho: false | |
536 | 535 | }; |
537 | 536 | |
538 | 537 | $scope.factura.articulosFactura.push(articulo); |
... | ... | @@ -604,7 +603,6 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
604 | 603 | IMP_DESP: 0, |
605 | 604 | PCD: 0, |
606 | 605 | RTO: '', |
607 | - esDespacho: true | |
608 | 606 | }; |
609 | 607 | |
610 | 608 | crearFacturaService.setearDespachoOcupado({ |
... | ... | @@ -661,10 +659,10 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
661 | 659 | resolve(); |
662 | 660 | } |
663 | 661 | }) |
664 | - .catch(reject);; | |
662 | + .catch(reject); | |
665 | 663 | } |
666 | 664 | |
667 | - openPrompt() | |
665 | + openPrompt(); | |
668 | 666 | }); |
669 | 667 | } |
670 | 668 | |
... | ... | @@ -784,7 +782,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
784 | 782 | } |
785 | 783 | |
786 | 784 | $scope.cambioEdit = function (articulo, propiedad) { |
787 | - if (propiedad === 'cantidad' && !articulo.esDespacho) { | |
785 | + if (propiedad === 'cantidad' && articulo.SUR !== 0) { | |
788 | 786 | articulo.editCantidad = true; |
789 | 787 | } |
790 | 788 | }; |