Changes for 1563
@@ -679,8 +679,10 @@ public class InvoiceResource extends JaxRsResourceBase {
payments.add(payment);
}
+ final AccountAuditLogs accountAuditLogs = auditUserApi.getAccountAuditLogs(invoice.getAccountId(), auditMode.getLevel(), tenantContext);
+
final Iterable<InvoicePaymentJson> result = payments.stream()
- .map(input -> new InvoicePaymentJson(input, invoice.getId(), null))
+ .map(input -> new InvoicePaymentJson(input, invoice.getId(), accountAuditLogs))
.sorted(Comparator.comparing(o -> o.getTransactions().get(0).getEffectiveDate()))
.collect(Collectors.toUnmodifiableList());
