From 2dab5b1b438d7db9f21732bd0fff13005c4422a2 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Wed, 11 Jun 2025 11:57:16 +0200 Subject: [PATCH] SpecifiedTradeProduct: export 'description' as 'name' if no product was used in invoice-line --- template/Factur-X-1.07.2-extended/invoice.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/Factur-X-1.07.2-extended/invoice.xml b/template/Factur-X-1.07.2-extended/invoice.xml index 9af1698..938c38a 100644 --- a/template/Factur-X-1.07.2-extended/invoice.xml +++ b/template/Factur-X-1.07.2-extended/invoice.xml @@ -71,8 +71,8 @@ this repository contains the full copyright notices and license terms. --> ${line.product.code} - ${this.quote_text(line.product.name if line.product else '')} - ${this.quote_text(line.description)} + ${this.quote_text(line.product.name if line.product else line.description if line.description else 'name not set')} + ${this.quote_text(line.description if line.product else '')}