updat mahnwesen
This commit is contained in:
parent
15e0d86fb7
commit
7835b685cf
2 changed files with 7 additions and 4 deletions
|
|
@ -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<String> intialSelection = new ArrayList<String>();
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue