have fax numbers for contacts only as of extended profile

This commit is contained in:
jstaerk
2020-11-21 12:03:16 +01:00
parent e1c498a582
commit 2848711cff
4 changed files with 4 additions and 7 deletions

View File

@@ -137,8 +137,7 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
+ " </ram:TelephoneUniversalCommunication>\n";
}
if (party.getContact().getFax() != null) {
if ((party.getContact().getFax() != null)&&(profile==Profiles.getByName("Extended"))) {
xml = xml + " <ram:FaxUniversalCommunication>\n" + " <ram:CompleteNumber>"
+ XMLTools.encodeXML(party.getContact().getFax()) + "</ram:CompleteNumber>\n"
+ " </ram:FaxUniversalCommunication>\n";