Commit 47a44c02530d57d960e949ff8727fbcd11281eb2
1 parent
58131ab8b2
Exists in
master
Borrado comentario, corregida validacion
Showing
1 changed file
with
1 additions
and
13 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -1139,7 +1139,7 @@ angular.module('focaCrearRemito').controller('remitoController', |
1139 | 1139 | |
1140 | 1140 | if (remito.idPrecioCondicion > 0) { |
1141 | 1141 | $scope.idLista = remito.precioCondicion.idListaPrecio; |
1142 | - } else { | |
1142 | + } else if (remito.idPrecioCondicion) { | |
1143 | 1143 | $scope.idLista = -1; |
1144 | 1144 | } |
1145 | 1145 | $scope.puntoVenta = rellenar(remito.sucursal, 4); |
... | ... | @@ -1177,18 +1177,6 @@ angular.module('focaCrearRemito').controller('remitoController', |
1177 | 1177 | } |
1178 | 1178 | } |
1179 | 1179 | |
1180 | - // TODO: Descomentar cuando se use | |
1181 | - // function deleteCliente() { | |
1182 | - // $scope.remito.domicilioStamp = ''; | |
1183 | - // $scope.remito.remitoPuntoDescarga = []; | |
1184 | - // $scope.remito.domicilio = { dom: '' }; | |
1185 | - // $scope.remito.cliente = {}; | |
1186 | - // $scope.$broadcast('removeCabecera', 'Cliente:'); | |
1187 | - // $scope.$broadcast('removeCabecera', 'Domicilio:'); | |
1188 | - // $scope.$broadcast('removeCabecera', 'Puntos de descarga:'); | |
1189 | - // $filter('filter')($scope.botonera, { label: 'Cliente' })[0].checked = false; | |
1190 | - // } | |
1191 | - | |
1192 | 1180 | function getCabeceraPuntoDescarga(puntosDescarga) { |
1193 | 1181 | var puntosStamp = ''; |
1194 | 1182 | puntosDescarga.forEach(function (punto, idx, arr) { |