From 6b59bdd01c07c02e3f44b6163d065cc9877c4594 Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 4 Oct 2021 10:19:53 +0200 Subject: [PATCH] fix(descriptorMenu): show PDF regeneration option --- modules/ticket/front/descriptor-menu/index.js | 20 +++++++++++-------- modules/ticket/front/descriptor/index.js | 4 ---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/ticket/front/descriptor-menu/index.js b/modules/ticket/front/descriptor-menu/index.js index 01709cf339..96475b7b94 100644 --- a/modules/ticket/front/descriptor-menu/index.js +++ b/modules/ticket/front/descriptor-menu/index.js @@ -36,6 +36,18 @@ class Controller extends Section { }); } + get isInvoiced() { + return this.ticket.refFk !== null; + } + + get isTicketModule() { + return this.$state.getCurrentPath()[1].state.name === 'ticket'; + } + + get hasInvoicing() { + return this.aclService.hasAny(['invoicing']); + } + loadData() { const filter = { include: [{ @@ -82,14 +94,6 @@ class Controller extends Section { }); } - get isInvoiced() { - return this.ticket.refFk !== null; - } - - get isTicketModule() { - return this.$state.getCurrentPath()[1].state.name === 'ticket'; - } - isTicketEditable() { if (!this.ticket) return; diff --git a/modules/ticket/front/descriptor/index.js b/modules/ticket/front/descriptor/index.js index 172e2767e6..28d5eb953e 100644 --- a/modules/ticket/front/descriptor/index.js +++ b/modules/ticket/front/descriptor/index.js @@ -18,10 +18,6 @@ class Controller extends Descriptor { super.entity = value; } - get hasInvoicing() { - return this.aclService.hasAny(['invoicing']); - } - loadData() { const filter = { include: [