mahnlauf
This commit is contained in:
parent
0b8ad2a15d
commit
b35dea70f8
1 changed files with 3 additions and 6 deletions
|
|
@ -24,7 +24,7 @@ import com.alexanderlogistics.KreditorDebitorService;
|
||||||
/**
|
/**
|
||||||
* The MahnlaufRefAddAdapter links an invoice with a Mahnlauf for the
|
* The MahnlaufRefAddAdapter links an invoice with a Mahnlauf for the
|
||||||
* dbtr.number item . If there is currently no open Mahnlauf for this key, the
|
* dbtr.number item . If there is currently no open Mahnlauf for this key, the
|
||||||
* adapter automatically creates a new process instance. If a manhlauf for this
|
* adapter automatically creates a new process instance. If a mahnlauf for this
|
||||||
* dbt.number is found, the invoice is just added.
|
* dbt.number is found, the invoice is just added.
|
||||||
* <p>
|
* <p>
|
||||||
* If the invoice has already been linked to a Mahnlauf nothing happens.
|
* If the invoice has already been linked to a Mahnlauf nothing happens.
|
||||||
|
|
@ -157,15 +157,12 @@ public class MahnlaufRefAddAdapter implements SignalAdapter {
|
||||||
String dbtrNumber=invoice.getItemValueString("dbtr.number");
|
String dbtrNumber=invoice.getItemValueString("dbtr.number");
|
||||||
ItemCollection dbtrItemCol=kreditorDebitorService.findDebitor("D"+dbtrNumber);
|
ItemCollection dbtrItemCol=kreditorDebitorService.findDebitor("D"+dbtrNumber);
|
||||||
if (dbtrItemCol!=null) {
|
if (dbtrItemCol!=null) {
|
||||||
mahnlaufWorkitem.setItemValue(MahnlaufService.ITEM_DBTR_EMAIL, dbtrItemCol.getItemValueString("cdtr.mail"));// dbtr.mail
|
mahnlaufWorkitem.setItemValue(MahnlaufService.ITEM_DBTR_EMAIL, dbtrItemCol.getItemValue("cdtr.mail"));// dbtr.mail
|
||||||
}
|
}
|
||||||
|
|
||||||
mahnlaufWorkitem.setItemValue(MahnlaufService.ITEM_DBTR_NUMBER, invoice.getItemValue(MahnlaufService.ITEM_DBTR_NUMBER));
|
mahnlaufWorkitem.setItemValue(MahnlaufService.ITEM_DBTR_NUMBER, invoice.getItemValue(MahnlaufService.ITEM_DBTR_NUMBER));
|
||||||
|
|
||||||
mahnlaufWorkitem.setItemValue("invoice.language", invoice.getItemValue("invoice.language"));
|
mahnlaufWorkitem.setItemValue("invoice.language", invoice.getItemValue("invoice.language"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// set workflow group name from the Task Element to identify document in xslt
|
// set workflow group name from the Task Element to identify document in xslt
|
||||||
Model model = modelService.getModel(modelVersion);
|
Model model = modelService.getModel(modelVersion);
|
||||||
ItemCollection task = model.getTask(taskID);
|
ItemCollection task = model.getTask(taskID);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue