fix Mahnlauf - vorselektierung der Rechnungen

This commit is contained in:
Ralph Soika 2023-02-16 15:36:06 +01:00
parent 4fde7c5a4a
commit 1751443702
2 changed files with 6 additions and 4 deletions

View file

@ -151,9 +151,11 @@ public class OPListController implements Serializable {
*/
if (workflowController.getWorkitem().getModelVersion().startsWith("mahnlauf")) {
// wir selektieren hier immer alle fälligen Rechnungen vor falls wir aus
// dem Event 100 (Mahnlauf erstellen) kommen.
// Falls aber
if (workflowController.getWorkitem().getItemValueInteger("$lastevent") == 100) {
// einer Rechnung mit dem Event 100 (Mahnlauf erstellen) kommen, oder
// wenn der Mahnlauf von außen gerate eben neu erzeugt wurde
if (workflowController.getWorkitem().getItemValueInteger("$lastevent") == 100
||
workflowController.getWorkitem().getItemValueInteger("$lastevent") == 0) {
List<String> intialSelection = new ArrayList<String>();
for (ItemCollection invoice : invoiceList) {
// ist die Rechnung fällig?

View file

@ -73,7 +73,7 @@ th { font-weight: bold;}
<bpmn2:documentation id="Documentation_15"><![CDATA[</body>
</html>]]></bpmn2:documentation>
</bpmn2:message>
<bpmn2:collaboration id="Collaboration_1" name="Zahlungseingang">
<bpmn2:collaboration id="Collaboration_1" name="Mahnlauf">
<bpmn2:participant id="Participant_1" name="Mahnlauf" processRef="Process_1"/>
<bpmn2:participant id="Participant_2" name="SEPA-Export Pool" processRef="eingangsrechnung-de"/>
</bpmn2:collaboration>