Allow to violate CII-SR-450 and deliberately specify both ID and Global ID
This commit is contained in:
@@ -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
|
2.5.3
|
||||||
=======
|
=======
|
||||||
|
|||||||
@@ -125,7 +125,8 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
|
|||||||
// and ShipToTradeParty, but not both. Prefer seller assigned ID for now.
|
// and ShipToTradeParty, but not both. Prefer seller assigned ID for now.
|
||||||
if (party.getID() != null) {
|
if (party.getID() != null) {
|
||||||
xml += "<ram:ID>" + XMLTools.encodeXML(party.getID()) + "</ram:ID>";
|
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()) + "\">"
|
xml += "<ram:GlobalID schemeID=\"" + XMLTools.encodeXML(party.getGlobalIDScheme()) + "\">"
|
||||||
+ XMLTools.encodeXML(party.getGlobalID()) + "</ram:GlobalID>";
|
+ XMLTools.encodeXML(party.getGlobalID()) + "</ram:GlobalID>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user