From 28be27837d43040bd34b01f83d4e3ce2a0aceb9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s?= Date: Mon, 10 Dec 2018 14:32:44 -0300 Subject: [PATCH] mejor muestra de datos --- src/js/controller.js | 2 ++ src/views/foca-modal-factura.html | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index ab37097..1c415dd 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -207,6 +207,8 @@ angular.module('focaModalFactura') } saldo += factura.IPA; factura.saldo = saldo; + factura.saldo_show = Math.abs(saldo); + factura.IPA_SHOW = Math.abs(factura.IPA); }); return facturas; diff --git a/src/views/foca-modal-factura.html b/src/views/foca-modal-factura.html index 59870de..d91c677 100644 --- a/src/views/foca-modal-factura.html +++ b/src/views/foca-modal-factura.html @@ -25,13 +25,17 @@ - {{factura.numeroFactura}} {{factura.FEP | date : 'dd/MM/yyyy' : 'GMT'}} + {{factura.numeroFactura}} {{factura.FECHA_COMPROBANTE | date : 'dd/MM/yyyy' : 'GMT'}} {{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy' : 'GMT'}} - +{{(factura.IPA / parametrosFactura.cotizacion) | number:2}} + {{ (factura.IPA_SHOW / parametrosFactura.cotizacion) | number:2 }} + - + + - +{{factura.saldo | number:2}} + {{ factura.saldo_show | number:2 }} + - + +