Merge pull request #783 from ivantomic77/#772-fix-required-deliver-to-party-name
#772: Made Deliver to party name (BT-70) optional to align with specification
This commit is contained in:
@@ -140,7 +140,9 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
|
|||||||
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>";
|
||||||
}
|
}
|
||||||
xml += "<ram:Name>" + XMLTools.encodeXML(party.getName()) + "</ram:Name>";
|
if (party.getName() != null && !party.getName().isEmpty()) {
|
||||||
|
xml += "<ram:Name>" + XMLTools.encodeXML(party.getName()) + "</ram:Name>";
|
||||||
|
}
|
||||||
if (party.getDescription() != null) {
|
if (party.getDescription() != null) {
|
||||||
xml += "<ram:Description>" + XMLTools.encodeXML(party.getDescription()) + "</ram:Description>";
|
xml += "<ram:Description>" + XMLTools.encodeXML(party.getDescription()) + "</ram:Description>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user