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.
This commit is contained in:
melo0187
2025-01-13 09:39:27 +01:00
parent 51eb9d5229
commit d0d4346b71

View File

@@ -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")) {