fix
This commit is contained in:
parent
c0c50bc178
commit
2c5695f8fc
1 changed files with 115 additions and 116 deletions
|
|
@ -79,8 +79,6 @@ public class MahnlaufExecuteAdapter implements SignalAdapter {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
double saldo = 0;
|
||||
int dunningLevel = 0;
|
||||
String currency = "";
|
||||
|
|
@ -113,23 +111,25 @@ public class MahnlaufExecuteAdapter implements SignalAdapter {
|
|||
mahnlaufService.processInvoice(invoice.event(MahnlaufService.EVENT_MAHNLAUF_EXECUTE));
|
||||
}
|
||||
|
||||
|
||||
switch (invoice.getTaskID()) {
|
||||
case 5200:
|
||||
if (dunningLevel < 1)
|
||||
dunningLevel = 1;
|
||||
break;
|
||||
case 5210:
|
||||
if (dunningLevel < 2)
|
||||
dunningLevel = 2;
|
||||
break;
|
||||
case 5220:
|
||||
if (dunningLevel < 3)
|
||||
dunningLevel = 3;
|
||||
break;
|
||||
default:
|
||||
if (dunningLevel < 1)
|
||||
dunningLevel = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
// create a workitem stub for the mail message
|
||||
ItemCollection invoiceStub = new ItemCollection();
|
||||
invoiceStub.setItemValue("invoice.number", invoice.getItemValue("invoice.number"));
|
||||
|
|
@ -178,13 +178,12 @@ public class MahnlaufExecuteAdapter implements SignalAdapter {
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
return mahnLaufWorkitem;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if the reminder date is today or in the past
|
||||
*
|
||||
* @param uniqueid
|
||||
* @return
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue