View Issue Details

IDProjectCategoryView StatusLast Update
0012296Talerexchangepublic2026-11-21 22:56
Reporterbot-cg [agent]  
PrioritynormalSeverityminorReproducibilityalways
Status new 
Summary0012296: VQF 902.1 PDF: print a legal entity's REGISTERED_OFFICE_ADDRESS (patch attached)
Descriptioncontrib/typst/vqf_902_1_customer/vqf_902_1_customer.typ prints a legal entity's address ("Domicile*") from DOMICILE_ADDRESS. With the form fixed to store it as REGISTERED_OFFICE_ADDRESS (sibling issue), the field would be empty in every new PDF; the harness's test-tops-aml-pdf.ts already submits REGISTERED_OFFICE_ADDRESS for its legal entity and so gets an empty field today.

The attached patch prints REGISTERED_OFFICE_ADDRESS and falls back to DOMICILE_ADDRESS, so that records from before the form fix still show their address. Checked with typst 0.15.1 against the installed packages: a legal entity with either attribute renders "Domicile* Seestrasse 5, 8002 Zurich"; the current template renders an empty field for REGISTERED_OFFICE_ADDRESS. It should land together with the form fix.
Tagspatch, TOPS
Attached Files
0001-typst-print-a-legal-entity-s-registered-office-in-th.patch (1,499 bytes)   
From ac3b97318d756294e51093bc6530b72a48e355d7 Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Sat, 21 Nov 2026 23:56:17 +0100
Subject: [PATCH] typst: print a legal entity's registered office in the VQF
 902.1 PDF

The form is to store it as REGISTERED_OFFICE_ADDRESS, which tops-kyx-check
requires (#12295); older attribute sets still have it as DOMICILE_ADDRESS.

Issue: https://bugs.taler.net/n/12296

Assisted by LLM
---
 contrib/typst/vqf_902_1_customer/vqf_902_1_customer.typ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/typst/vqf_902_1_customer/vqf_902_1_customer.typ b/contrib/typst/vqf_902_1_customer/vqf_902_1_customer.typ
index 0514c954c..c00cd2103 100644
--- a/contrib/typst/vqf_902_1_customer/vqf_902_1_customer.typ
+++ b/contrib/typst/vqf_902_1_customer/vqf_902_1_customer.typ
@@ -155,7 +155,8 @@
       stroke: 0.5pt + black,
       inset: 5pt,
       [Company name\*], if is_legal { get("COMPANY_NAME") } else { "" },
-      [Domicile\*], if is_legal { get("DOMICILE_ADDRESS") } else { "" },
+      // Older attribute sets have the registered office in DOMICILE_ADDRESS.
+      [Domicile\*], if is_legal { get("REGISTERED_OFFICE_ADDRESS", default: get("DOMICILE_ADDRESS")) } else { "" },
       [Contact person], if is_legal { get("CONTACT_PERSON_NAME") } else { "" },
       [Telephone], if is_legal { get("CONTACT_PHONE") } else { "" },
       [E-mail], if is_legal { get("CONTACT_EMAIL") } else { "" },
-- 
2.47.3

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0012295 new VQF 902.1: ask legal entities for REGISTERED_OFFICE_ADDRESS (patch attached) 
child of 0012294 new VQF 902.1 asks legal entities for DOMICILE_ADDRESS, but tops-kyx-check requires REGISTERED_OFFICE_ADDRESS: every legal entity is frozen 

Activities

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 22:54bot-cgNew Issue
2026-11-21 22:54bot-cgRelationship addedchild of 0012294
2026-11-21 22:54bot-cgRelationship addedrelated to 0012295
2026-11-21 22:54bot-cgImplementer => oec
2026-11-21 22:54bot-cgReviewer => Christian Grothoff
2026-11-21 22:54bot-cgRelease signed by => Christian Grothoff
2026-11-21 22:54bot-cgDeployed by => Christian Grothoff
2026-11-21 22:54bot-cgVerifier => oec
2026-11-21 22:54bot-cgCommunicator => CM_7
2026-11-21 22:56bot-cgFile Added: 0001-typst-print-a-legal-entity-s-registered-office-in-th.patch