Merge pull request #218 from seeeeew/master

Allow setting Contact for recipient TradeParty in XRechnung
This commit is contained in:
Jochen Staerk
2021-01-27 14:11:33 +01:00
committed by GitHub

View File

@@ -129,7 +129,7 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
} }
xml += " <ram:Name>" + XMLTools.encodeXML(party.getName()) + "</ram:Name>\n"; xml += " <ram:Name>" + XMLTools.encodeXML(party.getName()) + "</ram:Name>\n";
if ((party.getContact() != null) && (isSender || profile == Profiles.getByName("Extended"))) { if ((party.getContact() != null) && (isSender || profile == Profiles.getByName("Extended") || profile == Profiles.getByName("XRechnung"))) {
xml = xml + "<ram:DefinedTradeContact>\n" + " <ram:PersonName>" + XMLTools.encodeXML(party.getContact().getName()) xml = xml + "<ram:DefinedTradeContact>\n" + " <ram:PersonName>" + XMLTools.encodeXML(party.getContact().getName())
+ "</ram:PersonName>\n"; + "</ram:PersonName>\n";
if (party.getContact().getPhone() != null) { if (party.getContact().getPhone() != null) {