Skip to content

Commit

Permalink
Mark replacement invoices in invoice list
Browse files Browse the repository at this point in the history
  • Loading branch information
akheron committed Nov 18, 2024
1 parent 6c017c2 commit c33a4eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion frontend/src/employee-frontend/components/invoices/Invoices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,15 @@ const InvoiceTableBody = React.memo(function InvoiceTableBody({
<Td>
<ChildrenCell people={item.children} />
</Td>
<Td>{YearMonth.ofDate(item.periodStart).format()}</Td>
<Td>
{YearMonth.ofDate(item.periodStart).format()}
{item.revisionNumber > 0 && (
<>
<br />({i18n.invoices.table.replacementInvoice}{' '}
{item.revisionNumber})
</>
)}
</Td>
<Td data-qa="invoice-created-at">
{item.createdAt?.toLocalDate().format() ?? ''}
</Td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,8 @@ export const fi = {
createdAt: 'Luonnos luotu',
nb: 'Huom',
totalPrice: 'Summa',
status: 'Tila'
status: 'Tila',
replacementInvoice: 'Oikaisulasku'
},
buttons: {
checked: (count: number) =>
Expand Down

0 comments on commit c33a4eb

Please sign in to comment.