Skip to content

Commit

Permalink
Merge pull request #712 from langfr/bugfix/allowanceReason
Browse files Browse the repository at this point in the history
Correct bracket setting on condition for output of allowance reason.
  • Loading branch information
jstaerk authored Feb 19, 2025
2 parents adc9665 + 325b841 commit d0f4c21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ protected String getAllowanceChargeStr(IZUGFeRDAllowanceCharge allowance, IAbsol
}

String reason = "";
if ((allowance.getReason() != null) && (profile == Profiles.getByName("Extended") || profile == Profiles.getByName("XRechnung")) || profile == Profiles.getByName("EN16931")) {
if ((allowance.getReason() != null) && (profile == Profiles.getByName("Extended") || profile == Profiles.getByName("XRechnung") || profile == Profiles.getByName("EN16931"))) {
reason = "<ram:Reason>" + XMLTools.encodeXML(allowance.getReason()) + "</ram:Reason>";
}
String reasonCode = "";
Expand Down

0 comments on commit d0f4c21

Please sign in to comment.