ZUGFeRD fix for profiles != null

This commit is contained in:
Ivan Vaklinov
2022-01-31 13:43:48 +02:00
parent 2f912f5597
commit 0927755054

View File

@@ -619,7 +619,7 @@ public class ZUGFeRDExporterFromA3 extends XRExporter implements IZUGFeRDExporte
// ZUGFeRD 2.1.1 Technical Supplement | Part A | 2.2.2. Data Relationship // ZUGFeRD 2.1.1 Technical Supplement | Part A | 2.2.2. Data Relationship
// See documentation ZUGFeRD211_EN/Documentation/ZUGFeRD-2.1.1 - Specification_TA_Part-A.pdf // See documentation ZUGFeRD211_EN/Documentation/ZUGFeRD-2.1.1 - Specification_TA_Part-A.pdf
// https://www.ferd-net.de/standards/zugferd-2.1.1/index.html // https://www.ferd-net.de/standards/zugferd-2.1.1/index.html
if (ZFVersion >= 2) if ((this.profile != null) && (ZFVersion >= 2))
{ {
if (this.profile.getName().equalsIgnoreCase(Profiles.getByName("MINIMUM").getName()) || if (this.profile.getName().equalsIgnoreCase(Profiles.getByName("MINIMUM").getName()) ||
this.profile.getName().equalsIgnoreCase(Profiles.getByName("BASICWL").getName())) this.profile.getName().equalsIgnoreCase(Profiles.getByName("BASICWL").getName()))