diff --git a/src/js/controller.js b/src/js/controller.js index 7a63ce4..a3d29e9 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -3,14 +3,16 @@ angular.module('focaCrearNotaPedido') ['$scope', '$uibModal', 'crearNotaPedidoService', 'focaModalService', function($scope, $uibModal, crearNotaPedidoService, focaModalService) { $scope.botonera = [ - {texto: 'moneda', accion: function() {$scope.abrirModalMoneda();}}, + {texto: 'Vendedor', accion: function() {$scope.seleccionarVendedor();}}, + {texto: 'Cliente', accion: function() {$scope.seleccionarCliente();}}, + {texto: 'Moneda', accion: function() {$scope.abrirModalMoneda();}}, { - texto: 'precios y condiciones', + texto: 'Precios y condiciones', accion: function() {$scope.abrirModalListaPrecio();}}, - {texto: 'flete', accion: function() {$scope.abrirModalFlete();}}, - {texto: 'bomba', accion: function() {}}, - {texto: 'detalle', accion: function() {}}, - {texto: 'totales', accion: function() {}} + {texto: 'Flete', accion: function() {$scope.abrirModalFlete();}}, + {texto: 'Bomba', accion: function() {}}, + {texto: 'Detalle', accion: function() {}}, + {texto: 'Totales', accion: function() {}} ]; $scope.show = false; $scope.cargando = true; @@ -21,7 +23,8 @@ angular.module('focaCrearNotaPedido') $scope.notaPedido = { vendedor: {}, cliente: {}, - domicilio: { dom: ''} + domicilio: {dom: ''}, + moneda: {detalle: ''} }; $scope.articulosTabla = []; var idLista; @@ -196,7 +199,6 @@ angular.module('focaCrearNotaPedido') ); modalInstance.result.then( function(cliente) { - $scope.limpiarPantalla(); $scope.notaPedido.cliente.nombre = cliente.nom; $scope.notaPedido.cliente.id = cliente.cod; crearNotaPedidoService.getDomiciliosByIdCliente(cliente.cod).then( @@ -294,7 +296,11 @@ angular.module('focaCrearNotaPedido') ); modalInstance.result.then( function(moneda) { - console.log('moneda', moneda); + $scope.notaPedido.moneda = { + id: moneda.ID, + detalle: moneda.DETALLE, + simbolo: moneda.SIMBOLO + }; }, function() { } diff --git a/src/views/nota-pedido.html b/src/views/nota-pedido.html index faca52d..8c08500 100644 --- a/src/views/nota-pedido.html +++ b/src/views/nota-pedido.html @@ -1,208 +1,182 @@ -
-
-
-
-
-
-
-
- - - - +
+ +
+
+
+
+
+
+ Vendedor: + +
+
+ Moneda: + +
+
+ Flete: +
-
-
-
-
- - - - +
+
+ Cliente: + +
+
+ Precios y condiciones: + +
+
+ Bomba: +
-
-
-
- +
+
+ +
-
- -
-
-
-
-
- - - - - - - - - - + + + + + + + + + + + + + + +
SectorCódigoDescripciónPrecio UnitarioCantidadSubTotal - + +
+ +
+ Cantidad Items: + +

Total:

{{getTotal() | currency:'$'}}

+
+
+
+
-
-
- -
-
-