Commit 2b0225669d742bab1943877c884491049d3a61cd
1 parent
01da053c81
Exists in
master
eliminar articulo
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -446,6 +446,11 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 446 | 446 | |
| 447 | 447 | $scope.quitarDespacho = function (articulo, index) { |
| 448 | 448 | |
| 449 | + if (articulo.SUR == 0) { | |
| 450 | + articulo.desactivado = true; | |
| 451 | + return; | |
| 452 | + } | |
| 453 | + | |
| 449 | 454 | crearFacturaService |
| 450 | 455 | .setearDespachoDesocupado({ |
| 451 | 456 | surtidor: $scope.factura.despachos[index].SUR, |