This commit is contained in:
Ralph Soika 2023-02-01 16:23:01 +01:00
parent c0c50bc178
commit 2c5695f8fc

View file

@ -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
*/