Allow to violate CII-SR-450 and deliberately specify both ID and Global ID

This commit is contained in:
jstaerk
2022-08-29 19:41:42 +02:00
parent d22a2bf0ad
commit a990098a4b
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
Extend importer PR #281 thanks to weclapp-dev
Allow to violate CII-SR-450 and specify both ID and Global ID
2.5.3
=======

View File

@@ -125,7 +125,8 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
// and ShipToTradeParty, but not both. Prefer seller assigned ID for now.
if (party.getID() != null) {
xml += "<ram:ID>" + XMLTools.encodeXML(party.getID()) + "</ram:ID>";
} else if ((party.getGlobalIDScheme() != null) && (party.getGlobalID() != null)) {
}
if ((party.getGlobalIDScheme() != null) && (party.getGlobalID() != null)) {
xml += "<ram:GlobalID schemeID=\"" + XMLTools.encodeXML(party.getGlobalIDScheme()) + "\">"
+ XMLTools.encodeXML(party.getGlobalID()) + "</ram:GlobalID>";
}