From 56c9b08101fa00ffd780d3ed45d6c0b6a5944fa2 Mon Sep 17 00:00:00 2001 From: Bernat Exposito Domenech Date: Mon, 8 Jun 2020 07:52:23 +0200 Subject: [PATCH] fix show.descriptor --- modules/client/front/balance/index/index.html | 21 +++++++------------ modules/client/front/balance/index/index.js | 7 +++++++ modules/ticket/front/sale-checked/index.html | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/modules/client/front/balance/index/index.html b/modules/client/front/balance/index/index.html index 7fe9c593b..7144c8b29 100644 --- a/modules/client/front/balance/index/index.html +++ b/modules/client/front/balance/index/index.html @@ -72,20 +72,13 @@ -
- - {{'BILL' | translate: {ref: balance.ref} }} - - - {{::balance.ref}} - -
+ + {{balance.isInvoice ? 'BILL' : balance.ref | translate: {ref: balance.ref} }} +
{{::balance.bankFk}} {{::balance.debit | currency: 'EUR':2}} diff --git a/modules/client/front/balance/index/index.js b/modules/client/front/balance/index/index.js index 4030539ac..582456d85 100644 --- a/modules/client/front/balance/index/index.js +++ b/modules/client/front/balance/index/index.js @@ -72,6 +72,13 @@ class Controller extends Section { } }); } + + showInvoiceOutDescriptor(event, balance) { + if (!balance.isInvoice) return; + if (event.defaultPrevented) return; + + this.$.invoiceOutDescriptor.show(event.target, balance.id); + } } Controller.$inject = ['$element', '$scope']; diff --git a/modules/ticket/front/sale-checked/index.html b/modules/ticket/front/sale-checked/index.html index 78ed6dfdc..fd36aab59 100644 --- a/modules/ticket/front/sale-checked/index.html +++ b/modules/ticket/front/sale-checked/index.html @@ -29,7 +29,7 @@ {{::sale.itemFk | zeroFill:6}}