Commit e36049f3355bd246a692cb58dc25f9ca58353d5b
1 parent
bfc34ac167
Exists in
master
Validar remito facturado
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -639,11 +639,11 @@ angular.module('focaCrearRemito') .controller('remitoController', |
| 639 | 639 | |
| 640 | 640 | if ($scope.remito.articulosRemito !== 0) { |
| 641 | 641 | focaModalService.confirm('Se perderan los productos ingresados').then(function(data) { |
| 642 | - if (data) { | |
| 642 | + if (data && varlidarRemitoFacturado()) { | |
| 643 | 643 | abrirModal(); |
| 644 | 644 | } |
| 645 | 645 | }); |
| 646 | - } else if (varlidarRemitoFacturado()) { | |
| 646 | + } else { | |
| 647 | 647 | abrirModal(); |
| 648 | 648 | } |
| 649 | 649 |