Commit 91668b083a02cdd1b5475111b872c886c28c1b60

Authored by Eric Fernandez
1 parent 1cbea19a71
Exists in master

validacion

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
src/js/controller.js
... ... @@ -28,8 +28,7 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl',
28 28 transportista: {},
29 29 tarifario: {
30 30 costo: null
31   - },
32   - datosExtra: {}
  31 + }
33 32 };
34 33 }
35 34 nuevaHojaRuta();
... ... @@ -79,6 +78,10 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl',
79 78 focaModalService.alert('Ingrese Tarifario');
80 79 return;
81 80 }
  81 + if(!$scope.hojaRuta.datosExtra) {
  82 + focaModalService.alert('Ingrese Datos extra');
  83 + return;
  84 + }
82 85 var date = new Date();
83 86 var save = {
84 87 hojaRuta: {