Commit af52e2f527fc030eef06fb0ceeb679626b6a52f2
Exists in
master
Merge branch 'master' into 'develop'
Master See merge request !16
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -70,16 +70,16 @@ angular.module('focaAbmPreciosCondiciones') |
70 | 70 | $scope.mostrarPlazos = $routeParams.id > 0; |
71 | 71 | $scope.now = new Date(); |
72 | 72 | $scope.listaPrecioLabel = ''; |
73 | + $scope.precioCondicion = { | |
74 | + id: 0, | |
75 | + codigo: '', | |
76 | + nombre: '', | |
77 | + descripcion: '', | |
78 | + idListaPrecio: 0, | |
79 | + vigencia: new Date() | |
80 | + }; | |
73 | 81 | focaAbmPreciosCondicionesService.obtenerPrecioCondicion($routeParams.id) |
74 | 82 | .then(function(datos) { |
75 | - $scope.precioCondicion = { | |
76 | - id: 0, | |
77 | - codigo: '', | |
78 | - nombre: '', | |
79 | - descripcion: '', | |
80 | - idListaPrecio: 0, | |
81 | - vigencia: new Date() | |
82 | - }; | |
83 | 83 | if (datos.data.id) { |
84 | 84 | $scope.precioCondicion = datos.data; |
85 | 85 | $scope.listaPrecioLabel = datos.data.listaPrecio.ID.trim() + |