From ffa6ef57fe18230e2828ec238c8eb6471ede3899 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 21 Aug 2024 13:18:43 +0200 Subject: [PATCH] fix: refs #7553 refs #7356 fix generatePdf function --- src/pages/Ticket/Card/TicketDescriptorMenu.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Ticket/Card/TicketDescriptorMenu.vue b/src/pages/Ticket/Card/TicketDescriptorMenu.vue index 3354da966..d8efe08c1 100644 --- a/src/pages/Ticket/Card/TicketDescriptorMenu.vue +++ b/src/pages/Ticket/Card/TicketDescriptorMenu.vue @@ -13,6 +13,7 @@ import FormPopup from 'components/FormPopup.vue'; import VnSelect from 'components/common/VnSelect.vue'; import FetchData from 'components/FetchData.vue'; import VnInputTime from 'src/components/common/VnInputTime.vue'; +import { useAcl } from 'src/composables/useAcl'; const props = defineProps({ ticket: { @@ -34,7 +35,7 @@ const showTurnDialog = ref(false); const showChangeTimeDialog = ref(false); const dialogRef = ref(); const isEditable = ref(); -const hasInvoicing = ref(); +const hasInvoicing = useAcl('invoicing'); const hasPdf = ref(); const actions = { clone: async () => { @@ -529,18 +530,17 @@ async function handleInvoiceOutData() { {{ t('Make invoice') }} - {{ - hasPdf.value ? t('Regenerate PDF invoice') : t('Generate PDF invoice') + hasPdf ? t('Regenerate PDF invoice') : t('Generate PDF invoice') }}