invoiceLines.add(invoiceLine);
if (this.getDunning().getInvoice().getCreditNotes()!=null) {
Iterator<CreditNote> itCreditNotes = this.getDunning().getInvoice().getCreditNotes().iterator();
while (itCreditNotes.hasNext()) {
CreditNote creditNote = itCreditNotes.next();
if (!creditNote.isDeleted()) {
HashMap cnLine = new HashMap();
cnLine.put("invoice.userNumber", creditNote.getUserNumber());
cnLine.put("invoice.transactionDate", ClientGlobals.getDateFormat().format(creditNote.getTransactionDate().getTime()));
cnLine.put("invoice.transactionName", JbsL10N.getString(creditNote.getClass().getSimpleName()+".name"));
cnLine.put("invoice.lastPaymentDate", "");
cnLine.put("invoice.salesPriceSumGross", "-"+ClientGlobals.getPriceFormat().format(creditNote.getSalesPriceSumGross()));
cnLine.put("invoice.payed", "");
cnLine.put("invoice.amountToPay", "");
invoiceLines.add(cnLine);
}
}