From d0d4346b71cdc4c0f1cd05f54c87f9a5ca698456 Mon Sep 17 00:00:00 2001 From: melo0187 <2528018+melo0187@users.noreply.github.com> Date: Mon, 13 Jan 2025 09:39:27 +0100 Subject: [PATCH] Fix #632: Return ubl_creditnote as Standard for CreditNotes This allows to distinguish between UBL's Invoice and UBL's CreditNote. I think this is usefule, since further processing with UBL libraries requires knowledge about the document type. --- .../java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java index de66b35d..608a565e 100644 --- a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java +++ b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java @@ -1037,7 +1037,7 @@ public class ZUGFeRDInvoiceImporter { } else if (rootNode.equals("Invoice")) { return EStandard.ubl; } else if (rootNode.equals("CreditNote")) { - return EStandard.ubl; + return EStandard.ubl_creditnote; } else if (rootNode.equals("CrossIndustryInvoice")) { return EStandard.facturx; } else if (rootNode.equals("SCRDMCCBDACIDAMessageStructure")) {