modell update
This commit is contained in:
parent
9a83ccc7e1
commit
a35633b7aa
3 changed files with 5190 additions and 1 deletions
|
|
@ -62,6 +62,8 @@ public class MahnlaufExecuteAdapter implements SignalAdapter {
|
|||
// get all Invoices of this Mahnlauf
|
||||
List<Map<String, List<Object>>> invoiceList = new ArrayList<Map<String, List<Object>>>();
|
||||
List<String> refList = mahnLaufWorkitem.getItemValue("$workitemref");
|
||||
double saldo=0;
|
||||
String currency="";
|
||||
for (String uniqueId : refList) {
|
||||
ItemCollection invoice = workflowService.getWorkItem(uniqueId);
|
||||
if (invoice != null && (invoice.getTaskID() >= MahnlaufService.TASK_MAHNLAUF_START
|
||||
|
|
@ -99,12 +101,18 @@ public class MahnlaufExecuteAdapter implements SignalAdapter {
|
|||
invoiceStub.setItemValue("invoice.duedate", invoice.getItemValue("invoice.duedate"));
|
||||
invoiceStub.setItemValue("$workflowstatus", invoice.getItemValue("$workflowstatus"));
|
||||
invoiceList.add(invoiceStub.getAllItems());
|
||||
|
||||
|
||||
// store currency in mahnlauf
|
||||
currency= invoice.getItemValueString("invoice.currency");
|
||||
|
||||
saldo=saldo+invoice.getItemValueDouble("invoice.saldo");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
mahnLaufWorkitem.setItemValue("dunning.details", invoiceList);
|
||||
mahnLaufWorkitem.setItemValue("dunning.saldo", saldo);
|
||||
mahnLaufWorkitem.setItemValue("dunning.currency", currency);
|
||||
|
||||
return mahnLaufWorkitem;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -410,6 +410,9 @@ th { font-weight: bold;}
|
|||
<pre>
|
||||
<itemvalue>description</itemvalue>
|
||||
</pre>
|
||||
<p>
|
||||
Debitor: <itemvalue>dbtr.name</itemvalue> (<itemvalue>dbtr.number</itemvalue>)
|
||||
</p>
|
||||
<table>
|
||||
<theader>
|
||||
<tr>
|
||||
|
|
@ -433,6 +436,9 @@ th { font-weight: bold;}
|
|||
<td style="text-align:center;"><itemvalue>$workflowstatus</itemvalue></td>
|
||||
</tr>
|
||||
</for-each>
|
||||
<tr>
|
||||
<td /><td /><td /><td style="text-align:right;font-weight:bold">Saldo</td><td style="text-align:right;"><itemvalue format="#,###,##0.00" locale="de_DE">dunning.saldo</itemvalue> <itemvalue>dunning.currency</itemvalue></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
|
@ -463,6 +469,9 @@ th { font-weight: bold;}
|
|||
<p>
|
||||
<itemvalue>description</itemvalue>
|
||||
</p>
|
||||
<p>
|
||||
Debitor: <itemvalue>dbtr.name</itemvalue> (<itemvalue>dbtr.number</itemvalue>)
|
||||
</p>
|
||||
<table>
|
||||
<theader>
|
||||
<tr>
|
||||
|
|
@ -486,6 +495,9 @@ th { font-weight: bold;}
|
|||
<td style="text-align:center;"><itemvalue>$workflowstatus</itemvalue></td>
|
||||
</tr>
|
||||
</for-each>
|
||||
<tr>
|
||||
<td /><td /><td /><td style="text-align:right;font-weight:bold">Saldo</td><td style="text-align:right;"><itemvalue format="#,###,##0.00" locale="de_DE">dunning.saldo</itemvalue> <itemvalue>dunning.currency</itemvalue></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<textblock>E-Mail - Mahnlauf Footer (EN)</textblock>
|
||||
|
|
|
|||
5169
workflow/rechnungseingang-sachrechnung-de-1.0.17.bpmn
Normal file
5169
workflow/rechnungseingang-sachrechnung-de-1.0.17.bpmn
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue