Commit 3bffa6c1b520d1110ca89a61a1c1bb8a318052e8

Authored by Jose Pinto
1 parent 5205cd07f4
Exists in master and in 1 other branch develop

si es nuevo, no valida carga cisternas

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/js/controller.js
... ... @@ -156,7 +156,7 @@ angular.module('focaAbmVehiculo')
156 156 };
157 157 $scope.guardar = function() {
158 158 //Valida si existe numero de unidad
159   - if(!validaTotalCargas()) {
  159 + if(!validaTotalCargas() && !$scope.nuevo) {
160 160 focaModalService.alert('La suma de las capacidades de las cisternas' +
161 161 ' debe ser igual a la capacidad total del vehículo');
162 162 return;