Skip to content

Commit

Permalink
Fix #632: Return ubl_creditnote as Standard for CreditNotes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
melo0187 committed Jan 13, 2025
1 parent 51eb9d5 commit d0d4346
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ public EStandard getStandard() throws Exception {
} 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")) {
Expand Down

0 comments on commit d0d4346

Please sign in to comment.