Skip to content

Commit

Permalink
[26165] always update tarmed xml remark from invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
huthomas committed Feb 21, 2024
1 parent 3f9ec22 commit 7268095
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,12 @@ public void updateExistingXml(RequestType request, TYPE type, IInvoice invoice,
}
// always update copy information
request.getPayload().setCopy(type.equals(IRnOutputter.TYPE.COPY));
// always update remark
if (StringUtils.isNotBlank(invoice.getRemark())) {
request.getPayload().getBody().setRemark(invoice.getRemark());
} else {
request.getPayload().getBody().setRemark(null);
}
// update balance for storno
if (type.equals(TYPE.STORNO)) {
request.getPayload().setStorno(true);
Expand Down

0 comments on commit 7268095

Please sign in to comment.