Commit d46286255e1129457c3884b79d6af99341a507f2

Authored by Jose Pinto
1 parent 5a5b6f973c
Exists in master

fix bug id domicilio

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
src/js/controller.js
... ... @@ -804,6 +804,11 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
804 804 function setearNotaPedido(notaPedido) {
805 805 //añado cabeceras
806 806 $scope.notaPedido = notaPedido;
  807 + if (!$scope.notaPedido.domicilio) {
  808 + $scope.notaPedido.domicilio = {
  809 + id: $scope.notaPedido.idDomicilio
  810 + };
  811 + }
807 812 $scope.$broadcast('removeCabecera', 'Bomba:');
808 813 $scope.$broadcast('removeCabecera', 'Kilometros:');
809 814