Commit 2cb4e129c9048c8e623ec58d74cdda0543a779b7

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

Merge branch 'master' into 'develop'

Master(mpuebla)

See merge request !27
... ... @@ -4,6 +4,7 @@
4 4 "description": "",
5 5 "main": "index.js",
6 6 "scripts": {
  7 + "frefresh": "gulp uglify && cp tmp/foca-crear-factura.js ../wrapper-facturador/node_modules/foca-crear-factura/dist/foca-crear-factura.min.js",
7 8 "refresh": "gulp uglify && cp tmp/foca-crear-factura.js ../wrapper-demo/node_modules/foca-crear-factura/dist/foca-crear-factura.min.js",
8 9 "test": "echo \"Error: no test specified\" && exit 1",
9 10 "compile": "gulp uglify",
src/js/controller.js
... ... @@ -253,7 +253,12 @@ angular.module('focaCrearFactura').controller('facturaController', [
253 253 controller: 'focaModalEstadoCuentaController',
254 254 size: 'lg',
255 255 resolve: {
256   - parametros: function () { return { idCliente: cliente.cod }; },
  256 + parametros: function () {
  257 + return {
  258 + idCliente: cliente.cod,
  259 + nombreCliente: cliente.nom
  260 + };
  261 + },
257 262 }
258 263 }
259 264 );
src/js/controllerEstadoCuenta.js
... ... @@ -11,6 +11,8 @@ angular.module('focaCrearFactura')
11 11 facturasVencidas: 0.0
12 12 };
13 13  
  14 + $scope.cliente = parametros;
  15 +
14 16 init();
15 17  
16 18 function init() {
src/views/modal-estado-cuenta.html
... ... @@ -13,15 +13,17 @@
13 13 <p class="m-0">Autorizado</p>
14 14 <p class="h5 m-0" ng-bind="estadoCuenta.autorizado | currency"></p>
15 15 </div>
16   - </div>
17   - <div class="row border-top mb-2">
18   - <div class="col text-center">
19   - <p class="m-0">Extracciones</p>
20   - <p class="h5 m-0" ng-bind="estadoCuenta.extracciones | currency"></p>
21   - </div>
22 16 </div> -->
23 17 <div class="row mb-2">
24 18 <div class="col text-center">
  19 + <p class="m-0">Cliente</p>
  20 + <label class="h5" ng-bind="cliente.idCliente"></label>
  21 + <label class="h5">&nbsp;- &nbsp;</label>
  22 + <label class="h5" ng-bind="cliente.nombreCliente"></label>
  23 + </div>
  24 + </div>
  25 + <div class="row border-top mb-2">
  26 + <div class="col text-center">
25 27 <p class="m-0">Saldo</p>
26 28 <p class="h5 m-0" ng-bind="estadoCuenta.saldo | currency"></p>
27 29 </div>