diff --git a/src/pages/InvoiceOut/InvoiceOutGlobal.vue b/src/pages/InvoiceOut/InvoiceOutGlobal.vue index 7e2b43a76..6f7e4c7fd 100644 --- a/src/pages/InvoiceOut/InvoiceOutGlobal.vue +++ b/src/pages/InvoiceOut/InvoiceOutGlobal.vue @@ -21,6 +21,7 @@ const { nPdfs, totalPdfs, errors, + addresses, } = storeToRefs(invoiceOutGlobalStore); const selectedCustomerId = ref(null); @@ -86,6 +87,14 @@ const selectCustomerId = (id) => { selectedCustomerId.value = id; }; +const statusText = computed(() => { + return status.value === 'invoicing' + ? `${t(`status.${status.value}`)} ${ + addresses.value[getAddressNumber.value]?.clientId + }` + : t(`status.${status.value}`); +}); + onMounted(() => (stateStore.rightDrawer = true)); onUnmounted(() => { stateStore.rightDrawer = false; @@ -103,7 +112,7 @@ onUnmounted(() => { - {{ t(`status.${status}`) }} + {{ statusText }} {{ t('invoiceOut.globalInvoices.statusCard.percentageText', { getPercentage: getPercentage, diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue index ad54d9908..ca68f0770 100644 --- a/src/pages/InvoiceOut/InvoiceOutList.vue +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -119,7 +119,7 @@ const openPdf = () => {