From cf29de56505ff4a25e6ea4cc359f2e916e69175d Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 5 Dec 2024 20:23:19 +0100 Subject: [PATCH] fix(contentinvoice): Fix VAT group item number formatting and remove custom font style in invoice sums. --- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- ts_web/00_commitinfo_data.ts | 2 +- ts_web/elements/contentinvoice.ts | 5 +++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 054d884..4ec2532 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2024-12-05 - 1.6.5 - fix(contentinvoice) +Fix VAT group item number formatting and remove custom font style in invoice sums. + +- Removed custom font-family style from the invoice sums. +- Corrected VAT group item numbers display by properly formatting and removing trailing comma. + ## 2024-12-05 - 1.6.4 - fix(styling) Consolidated shared styles for consistent font applied across various components. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index aecf9a5..3cbd87c 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-document', - version: '1.6.4', + version: '1.6.5', description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index aecf9a5..3cbd87c 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-document', - version: '1.6.4', + version: '1.6.5', description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.' } diff --git a/ts_web/elements/contentinvoice.ts b/ts_web/elements/contentinvoice.ts index 44377d7..ecc5ca4 100644 --- a/ts_web/elements/contentinvoice.ts +++ b/ts_web/elements/contentinvoice.ts @@ -232,7 +232,6 @@ export class DeContentInvoice extends DeesElement { margin-top: 5px; font-size: 12px; padding-left: 50%; - font-family: 'Dees Code', monospace; } .sums .sumline { @@ -323,9 +322,11 @@ export class DeContentInvoice extends DeesElement { ${this.getVatGroups().map((vatGroupArg) => { let itemNumbers = ''; + let first = true; for (const item of vatGroupArg.items) { const itemIndex = this.letterData.content.invoiceData.items.indexOf(item); - itemNumbers += ` ${itemIndex + 1},`; + itemNumbers += `${first ? '' : ', '}${itemIndex + 1}`; + first = false; } return html`