From 93c7af9e0fcc3832f8cb5ade3db5e1ff51d3771b Mon Sep 17 00:00:00 2001 From: gaby Date: Wed, 11 Aug 2021 15:20:24 +0200 Subject: [PATCH] update azubi-funktion --- .../com/alexanderlogistics/InvoicePlugin.java | 9 +++++-- .../forms/alexander/sub_exchange_rate.xhtml | 25 ++++++++++++++++++ .../rechnungseingang-de-1.2.10-draft.bpmn | 26 ++++++++++--------- 3 files changed, 46 insertions(+), 14 deletions(-) diff --git a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/InvoicePlugin.java b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/InvoicePlugin.java index 479ca15..e12032e 100644 --- a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/InvoicePlugin.java +++ b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/InvoicePlugin.java @@ -34,6 +34,7 @@ public class InvoicePlugin extends AbstractPlugin { public static final int TASK_ERFASSUNG = 5001; public static final int TASK_SACHPRUEFUNG = 5200; + public static final int TASK_SACHPRUEFUNG_DELEGATION = 5210; public static final int EVENT_FREIGEBEN = 20; public static final String ITEM_INVOICE_PERIOD = "invoice.period"; @@ -78,7 +79,10 @@ public class InvoicePlugin extends AbstractPlugin { validateInvoiceNumber(workitem); } - if (workitem.getTaskID() == TASK_ERFASSUNG || workitem.getTaskID() == TASK_SACHPRUEFUNG) { + if (workitem.getTaskID() == TASK_ERFASSUNG || + ( ( workitem.getTaskID() == TASK_SACHPRUEFUNG || workitem.getTaskID() == TASK_SACHPRUEFUNG_DELEGATION) + && workitem.getEventID() == EVENT_FREIGEBEN) + ) { // Buchungsperiode auf plausi prüfen if ("workitem".equals(workitem.getType())) { validateBuchungsperiode(workitem.getItemValueString(ITEM_INVOICE_PERIOD)); @@ -90,7 +94,8 @@ public class InvoicePlugin extends AbstractPlugin { // die prüfung der positionsnummern und Category erfolgt nur im Status // Sachprüfung (5200) und nur beim Freigeben (20)! - if (workitem.getTaskID() == TASK_SACHPRUEFUNG && workitem.getEventID() == EVENT_FREIGEBEN) { + if ( (workitem.getTaskID() == TASK_SACHPRUEFUNG || workitem.getTaskID() == TASK_SACHPRUEFUNG_DELEGATION) + && workitem.getEventID() == EVENT_FREIGEBEN) { List childs = explodeChildList(workitem); for (ItemCollection posItem : childs) { if (posItem.getItemValueString("name").trim().isEmpty()) { diff --git a/office-alexander-logistics-app/src/main/webapp/pages/workitems/forms/alexander/sub_exchange_rate.xhtml b/office-alexander-logistics-app/src/main/webapp/pages/workitems/forms/alexander/sub_exchange_rate.xhtml index 9814644..52fe4ab 100644 --- a/office-alexander-logistics-app/src/main/webapp/pages/workitems/forms/alexander/sub_exchange_rate.xhtml +++ b/office-alexander-logistics-app/src/main/webapp/pages/workitems/forms/alexander/sub_exchange_rate.xhtml @@ -18,6 +18,31 @@ + + + + + +
+
+ Azubi:* +
+
+ + + + + + + +
+
+
+ diff --git a/workflow/rechnungseingang-de-1.2.10-draft.bpmn b/workflow/rechnungseingang-de-1.2.10-draft.bpmn index d124eb7..25f9c23 100644 --- a/workflow/rechnungseingang-de-1.2.10-draft.bpmn +++ b/workflow/rechnungseingang-de-1.2.10-draft.bpmn @@ -16,6 +16,7 @@ + @@ -4260,6 +4261,7 @@ Betrag: _amount (Brutto € _amount_brutto home +false space.name]]> @@ -4269,23 +4271,23 @@ Betrag: _amount (Brutto € _amount_brutto - sb.team]]> + sb.assist]]> false - + SequenceFlow_96 SequenceFlow_91 @@ -4310,13 +4312,14 @@ result.isValid=true; true - + + @@ -4353,13 +4356,14 @@ result.isValid=true; true - + + @@ -4882,7 +4886,7 @@ result.isValid=true; - + @@ -4897,9 +4901,7 @@ result.isValid=true; - home -space.name -false]]> + @@ -4920,10 +4922,10 @@ result.isValid=true; - + - + SequenceFlow_115