fix(contentinvoice): Fix VAT group item number formatting and remove custom font style in invoice sums.

This commit is contained in:
Philipp Kunz 2024-12-05 20:23:19 +01:00
parent 15573a85ec
commit cf29de5650
4 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,11 @@
# Changelog # 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) ## 2024-12-05 - 1.6.4 - fix(styling)
Consolidated shared styles for consistent font applied across various components. Consolidated shared styles for consistent font applied across various components.

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@design.estate/dees-document', 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.' description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.'
} }

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@design.estate/dees-document', 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.' description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.'
} }

View File

@ -232,7 +232,6 @@ export class DeContentInvoice extends DeesElement {
margin-top: 5px; margin-top: 5px;
font-size: 12px; font-size: 12px;
padding-left: 50%; padding-left: 50%;
font-family: 'Dees Code', monospace;
} }
.sums .sumline { .sums .sumline {
@ -323,9 +322,11 @@ export class DeContentInvoice extends DeesElement {
</div> </div>
${this.getVatGroups().map((vatGroupArg) => { ${this.getVatGroups().map((vatGroupArg) => {
let itemNumbers = ''; let itemNumbers = '';
let first = true;
for (const item of vatGroupArg.items) { for (const item of vatGroupArg.items) {
const itemIndex = this.letterData.content.invoiceData.items.indexOf(item); const itemIndex = this.letterData.content.invoiceData.items.indexOf(item);
itemNumbers += ` ${itemIndex + 1},`; itemNumbers += `${first ? '' : ', '}${itemIndex + 1}`;
first = false;
} }
return html` return html`
<div class="sumline"> <div class="sumline">