Commit f66ff6ee5e33cfd2bb00167f7c9cee1470dd9679
1 parent
7dffb0c68a
Exists in
master
Visualizar los productos
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -637,7 +637,7 @@ angular.module('focaCrearRemito') .controller('remitoController', |
637 | 637 | return; |
638 | 638 | } |
639 | 639 | |
640 | - if ($scope.remito.articulosRemito !== 0) { | |
640 | + if ($scope.remito.articulosRemito.length !== 0) { | |
641 | 641 | focaModalService.confirm('Se perderan los productos ingresados').then(function(data) { |
642 | 642 | if (data && varlidarRemitoFacturado()) { |
643 | 643 | abrirModal(); |