Commit daf0dde40df38f014210e3c84293cf030524030a
1 parent
a3a12f87ed
Exists in
master
and in
1 other branch
espacios 03
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/controllerCisterna.js
... | ... | @@ -94,10 +94,10 @@ angular.module('focaAbmVehiculo') |
94 | 94 | res.data.forEach(function(cisterna) { |
95 | 95 | //SI EL CODIGO YA EXISTE |
96 | 96 | if(cisterna.codigo === $scope.cisterna.codigo && |
97 | - cisterna.id !== $scope.cisterna.id){ | |
97 | + cisterna.id !== $scope.cisterna.id) { | |
98 | 98 | reject('Código de cisterna existente'); |
99 | 99 | } |
100 | - if(cisterna.id !== $scope.cisterna.id){ | |
100 | + if(cisterna.id !== $scope.cisterna.id) { | |
101 | 101 | totalCargado += cisterna.capacidad; |
102 | 102 | } |
103 | 103 | }); |