diff --git a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/OPListController.java b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/OPListController.java index 007ce79..aee22c3 100644 --- a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/OPListController.java +++ b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/OPListController.java @@ -114,17 +114,19 @@ public class OPListController implements Serializable { } catch (QueryException e) { logger.severe("Failed to get op liste:" + e.getMessage()); } - // wir selektieren hier alle Rechnungen vor, falls der Mahnlauf gerade erstellt + // wir selektieren hier alle fälligen Rechnungen vor, falls der Mahnlauf gerade erstellt // wird. if (workflowController.getWorkitem().getItemValueInteger("$version") == 0 || (workflowController.getWorkitem().getItemValueInteger("$version") == 1 && workflowController.getWorkitem().getItemValueInteger("$lastevent") == 100)) { List intialSelection = new ArrayList(); for (ItemCollection invoice : invoiceList) { - intialSelection.add(invoice.getUniqueID()); + + if ("workitem".equals(invoice.getType()) && invoice.getTaskID()>=5100) { + intialSelection.add(invoice.getUniqueID()); + } } workflowController.getWorkitem().setItemValue("$workitemref", intialSelection); - } } else { diff --git a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/mahnlauf/MahnlaufRefAddAdapter.java b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/mahnlauf/MahnlaufRefAddAdapter.java index cf970cd..73d6233 100644 --- a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/mahnlauf/MahnlaufRefAddAdapter.java +++ b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/mahnlauf/MahnlaufRefAddAdapter.java @@ -126,7 +126,8 @@ public class MahnlaufRefAddAdapter implements SignalAdapter { * @throws ModelException * @throws PluginException */ - public ItemCollection createNewMahnlauf(String key, ItemCollection invoice, ItemCollection event) + @SuppressWarnings("unused") + public ItemCollection createNewMahnlauf(String key, ItemCollection invoice, ItemCollection event) throws ModelException, PluginException { String modelVersion = null; int taskID = -1;