From ffa8ca60d37d428b33f6c5461c99548ceb5cc48c Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Mon, 18 Nov 2024 11:04:10 +0200 Subject: [PATCH] Mark replacement invoices in invoice list --- .../employee-frontend/components/invoices/Invoices.tsx | 10 +++++++++- .../lib-customizations/defaults/employee/i18n/fi.tsx | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/employee-frontend/components/invoices/Invoices.tsx b/frontend/src/employee-frontend/components/invoices/Invoices.tsx index f4e25767f4a..964d6814ae6 100755 --- a/frontend/src/employee-frontend/components/invoices/Invoices.tsx +++ b/frontend/src/employee-frontend/components/invoices/Invoices.tsx @@ -321,7 +321,15 @@ const InvoiceTableBody = React.memo(function InvoiceTableBody({ - {YearMonth.ofDate(item.periodStart).format()} + + {YearMonth.ofDate(item.periodStart).format()} + {item.revisionNumber > 0 && ( + <> +
({i18n.invoices.table.replacementInvoice}{' '} + {item.revisionNumber}) + + )} + {item.createdAt?.toLocalDate().format() ?? ''} diff --git a/frontend/src/lib-customizations/defaults/employee/i18n/fi.tsx b/frontend/src/lib-customizations/defaults/employee/i18n/fi.tsx index 9145ec61123..c45b5e30ce6 100755 --- a/frontend/src/lib-customizations/defaults/employee/i18n/fi.tsx +++ b/frontend/src/lib-customizations/defaults/employee/i18n/fi.tsx @@ -2705,7 +2705,8 @@ export const fi = { createdAt: 'Luonnos luotu', nb: 'Huom', totalPrice: 'Summa', - status: 'Tila' + status: 'Tila', + replacementInvoice: 'Oikaisulasku' }, buttons: { checked: (count: number) =>