Commit 7a02867b043991d51b39a23dc83cb002b8ffc57f
Exists in
master
Merge branch 'master' into 'develop'
Master See merge request !62
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -802,6 +802,11 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
802 | 802 | function setearNotaPedido(notaPedido) { |
803 | 803 | //añado cabeceras |
804 | 804 | $scope.notaPedido = notaPedido; |
805 | + if (!$scope.notaPedido.domicilio) { | |
806 | + $scope.notaPedido.domicilio = { | |
807 | + id: $scope.notaPedido.idDomicilio | |
808 | + }; | |
809 | + } | |
805 | 810 | $scope.$broadcast('removeCabecera', 'Bomba:'); |
806 | 811 | $scope.$broadcast('removeCabecera', 'Kilometros:'); |
807 | 812 |