Commit a01bebad6ffd95895de3824c6dfcee5d40a9ccc9
1 parent
a2f13b7da0
Exists in
master
and in
1 other branch
espacios
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -33,7 +33,7 @@ angular.module('focaModalDetalleCisternas') |
33 | 33 | promesaRemito = focaModalDetalleCisternasService.obtenerRemitoById(idRemito); |
34 | 34 | } |
35 | 35 | Promise.all([promesaVehiculo, promesaCisternas, promesaRemito]).then(function(res) { |
36 | - if(!validarCargas(res[1].data, res[2].data)){ | |
36 | + if (!validarCargas(res[1].data, res[2].data)) { | |
37 | 37 | focaModalService.alert('Los artículos del remito exceden ' + |
38 | 38 | 'la cantidad disponible del vehiculo'); |
39 | 39 | $uibModalInstance.close(); |
... | ... | @@ -355,7 +355,7 @@ angular.module('focaModalDetalleCisternas') |
355 | 355 | }); |
356 | 356 | return result; |
357 | 357 | } |
358 | - function ordenarCisternas(a, b){ | |
358 | + function ordenarCisternas(a, b) { | |
359 | 359 | //DEJA LAS CISTERNAS CON CARGA PRIMERO PARA VALIDAR LAS CARGAS CORRECTAMENTE |
360 | 360 | if (a.cisternaCarga && !b.cisternaCarga) { |
361 | 361 | return -1; |