Commit f6d3aa5f24d8d61fc9d8970b2ae9efc4de90f98c

Authored by Eric Fernandez
Exists in master and in 1 other branch develop

Merge branch 'develop' into 'master'

Develop

See merge request !91
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) {