logging
This commit is contained in:
parent
3eecb7e90d
commit
47b925e71b
1 changed files with 5 additions and 10 deletions
|
|
@ -161,7 +161,7 @@ public class OPListExportAdapter extends POIFindReplaceAdapter {
|
||||||
InvoiceService.ERROR_CONFIG,
|
InvoiceService.ERROR_CONFIG,
|
||||||
"failed to update op-liste: " + e.getMessage());
|
"failed to update op-liste: " + e.getMessage());
|
||||||
}
|
}
|
||||||
logger.info("... completed!");
|
logger.fine("... completed!");
|
||||||
|
|
||||||
return document;
|
return document;
|
||||||
}
|
}
|
||||||
|
|
@ -183,7 +183,7 @@ public class OPListExportAdapter extends POIFindReplaceAdapter {
|
||||||
// zusaetzliche Zellen einfuegen...
|
// zusaetzliche Zellen einfuegen...
|
||||||
int newColumns = (currencyList.size() - 1) * 1;
|
int newColumns = (currencyList.size() - 1) * 1;
|
||||||
for (int i = 0; i < newColumns; i++) {
|
for (int i = 0; i < newColumns; i++) {
|
||||||
logger.info(".. add currency column...");
|
logger.fine(".. add currency column...");
|
||||||
POIUtil.insertColumn(sheet, 5, 6 + i);
|
POIUtil.insertColumn(sheet, 5, 6 + i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -214,12 +214,8 @@ public class OPListExportAdapter extends POIFindReplaceAdapter {
|
||||||
List<String> currencyList)
|
List<String> currencyList)
|
||||||
throws PluginException, QueryException {
|
throws PluginException, QueryException {
|
||||||
|
|
||||||
double saldo1 = 0;
|
|
||||||
double saldo2 = 0;
|
|
||||||
// load dummy rechnungen
|
|
||||||
String spaceID = document.getItemValueString("space.ref");
|
String spaceID = document.getItemValueString("space.ref");
|
||||||
|
logger.fine("... space.ref=" + spaceID + " ...grouping invoices by spaceid....");
|
||||||
logger.info("... space.ref=" + spaceID + " ...grouping invoices by spaceid....");
|
|
||||||
Map<String, List<ItemCollection>> invoiceMap = groupInvoicesBySpaceID(spaceID, filter);
|
Map<String, List<ItemCollection>> invoiceMap = groupInvoicesBySpaceID(spaceID, filter);
|
||||||
|
|
||||||
CellReference categoryRefCell = new CellReference("A11");
|
CellReference categoryRefCell = new CellReference("A11");
|
||||||
|
|
@ -288,7 +284,7 @@ public class OPListExportAdapter extends POIFindReplaceAdapter {
|
||||||
|
|
||||||
// jetzt füge alle Rechnungen an.
|
// jetzt füge alle Rechnungen an.
|
||||||
for (ItemCollection invoice : invoices) {
|
for (ItemCollection invoice : invoices) {
|
||||||
logger.info("......add invoice " + invoice.getUniqueID() + " -> Row=" + rowPos);
|
logger.fine("......add invoice " + invoice.getUniqueID() + " -> Row=" + rowPos);
|
||||||
|
|
||||||
// now create a new line..
|
// now create a new line..
|
||||||
XSSFRow row = sheet.createRow(rowPos);
|
XSSFRow row = sheet.createRow(rowPos);
|
||||||
|
|
@ -375,7 +371,7 @@ public class OPListExportAdapter extends POIFindReplaceAdapter {
|
||||||
}
|
}
|
||||||
fileData.setName(targetName);
|
fileData.setName(targetName);
|
||||||
// append document
|
// append document
|
||||||
logger.info("...append new POI Template: " + targetName);
|
logger.fine("...append new POI Template: " + targetName);
|
||||||
document.addFileData(fileData);
|
document.addFileData(fileData);
|
||||||
return fileData;
|
return fileData;
|
||||||
}
|
}
|
||||||
|
|
@ -411,7 +407,6 @@ public class OPListExportAdapter extends POIFindReplaceAdapter {
|
||||||
if (filter) {
|
if (filter) {
|
||||||
Date date = invoice.getItemValueDate("invoice.duedate");
|
Date date = invoice.getItemValueDate("invoice.duedate");
|
||||||
if (invoiceService.isOverdue(date, invoice.getTaskID())) {
|
if (invoiceService.isOverdue(date, invoice.getTaskID())) {
|
||||||
// logger.info("...invoice - " +invoice.getUniqueID() + " is in overdue");
|
|
||||||
invoiceList.add(invoice);
|
invoiceList.add(invoice);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue