Commit 623837821555f2f0d37b3c7f96b2b6d2e1989f16

Authored by Eric Fernandez
1 parent e53a1547fa
Exists in master

fix, cargar sucursal al editar pedido

Showing 1 changed file with 1 additions and 11 deletions   Show diff stats
src/js/controller.js
... ... @@ -285,6 +285,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
285 285 } else {
286 286 $scope.idLista = -1;
287 287 }
  288 + $scope.puntoVenta = rellenar(notaPedido.sucursal, 4);
288 289 $scope.comprobante = rellenar(notaPedido.numeroNotaPedido, 8);
289 290 $scope.notaPedido = notaPedido;
290 291 $scope.notaPedido.moneda = notaPedido.cotizacion.moneda;
... ... @@ -444,17 +445,6 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
444 445 );
445 446 };
446 447  
447   - $scope.mostrarFichaCliente = function() {
448   - $uibModal.open(
449   - {
450   - ariaLabelledBy: 'Datos del Cliente',
451   - templateUrl: 'foca-crear-nota-pedido-ficha-cliente.html',
452   - controller: 'focaCrearNotaPedidoFichaClienteController',
453   - size: 'lg'
454   - }
455   - );
456   - };
457   -
458 448 $scope.getTotal = function() {
459 449 var total = 0;
460 450 var arrayTempArticulos = $scope.articulosTabla;