From 1a665424970a42164c715016fbab399632bb1613 Mon Sep 17 00:00:00 2001 From: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com> Date: Thu, 22 Jan 2026 18:26:49 +0100 Subject: [PATCH] Fix invoice date to use request.created instead of current date (#3037) * Fix invoice date to use request.created instead of current date * Use EUR-specific IBAN (CH8583019DFXSWISSEURX) for EUR invoices --- .../supporting/payment/services/swiss-qr.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/subdomains/supporting/payment/services/swiss-qr.service.ts b/src/subdomains/supporting/payment/services/swiss-qr.service.ts index 8a99487818..51319d4001 100644 --- a/src/subdomains/supporting/payment/services/swiss-qr.service.ts +++ b/src/subdomains/supporting/payment/services/swiss-qr.service.ts @@ -59,6 +59,11 @@ export class SwissQRService { throw new Error('PDF invoice is only available for CHF and EUR transactions'); } + // Use EUR-specific IBAN for EUR invoices + if (currency === 'EUR') { + bankInfo = { ...bankInfo, iban: 'CH8583019DFXSWISSEURX' }; + } + const data = this.generateQrData(amount, currency, bankInfo, reference, request.userData); if (!data.debtor) throw new Error('Debtor is required'); @@ -74,7 +79,7 @@ export class SwissQRService { assetBlockchain: asset.blockchain, }, fiatAmount: amount, - date: new Date(), + date: request.created, }; return this.generatePdfInvoice(tableData, language, data, true, TransactionType.BUY);