Commit 858dae86ff715f76bf11960ada72db6c282713b2
1 parent
469538939b
Exists in
master
Code styling.
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
gulpfile.js
src/js/controller.js
| ... | ... | @@ -508,7 +508,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 508 | 508 | if(key === 13) { |
| 509 | 509 | if($scope.articuloACargar.cantidad === undefined || |
| 510 | 510 | $scope.articuloACargar.cantidad === 0 || |
| 511 | - $scope.articuloACargar.cantidad === null ){ | |
| 511 | + $scope.articuloACargar.cantidad === null ) { | |
| 512 | 512 | focaModalService.alert('El valor debe ser al menos 1'); |
| 513 | 513 | return; |
| 514 | 514 | } |
| ... | ... | @@ -525,7 +525,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 525 | 525 | $scope.editarArticulo = function(key, articulo) { |
| 526 | 526 | if(key === 13) { |
| 527 | 527 | if(articulo.cantidad === null || articulo.cantidad === 0 || |
| 528 | - articulo.cantidad === undefined){ | |
| 528 | + articulo.cantidad === undefined) { | |
| 529 | 529 | focaModalService.alert('El valor debe ser al menos 1'); |
| 530 | 530 | return; |
| 531 | 531 | } |
| ... | ... | @@ -604,7 +604,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 604 | 604 | |
| 605 | 605 | function removeCabecera(label) { |
| 606 | 606 | var propiedad = $filter('filter')($scope.cabecera, {label: label}, true); |
| 607 | - if(propiedad.length === 1){ | |
| 607 | + if(propiedad.length === 1) { | |
| 608 | 608 | $scope.cabecera.splice($scope.cabecera.indexOf(propiedad[0]), 1); |
| 609 | 609 | } |
| 610 | 610 | } |