Hello again:
I'm struggling with the Overdue configuration.
The gist of the problem is that I'm unable to block a delinquent account as fast as possible.
GOAL: Block an account if it falls on any of the following conditions:
* 15 days or more have passed since the earliest invoice was issued
* 1 or more unpaid invoices
* 1.0 or more is owed.
ACTUAL RESULT: instead of blocking the account 15 (or 25) days after the first unpaid invoice is issued, it gets blocked until the next billing day (1 in my case)
Here is my overdue.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<overdueConfig>
<accountOverdueStates>
<state name="BLOCKED">
<condition>
<numberOfUnpaidInvoicesEqualsOrExceeds>1</numberOfUnpaidInvoicesEqualsOrExceeds>
<totalUnpaidInvoiceBalanceEqualsOrExceeds>1.0</totalUnpaidInvoiceBalanceEqualsOrExceeds>
<timeSinceEarliestUnpaidInvoiceEqualsOrExceeds>
<unit>DAYS</unit><number>15</number>
</timeSinceEarliestUnpaidInvoiceEqualsOrExceeds>
</condition>
<externalMessage>Cuenta bloqueada por falta de pago</externalMessage>
<blockChanges>true</blockChanges>
<disableEntitlementAndChangesBlocked>true</disableEntitlementAndChangesBlocked>
<isClearState>false</isClearState>
</state>
</accountOverdueStates>
</overdueConfig>
Blocking the account in the case of any amount owed and/or even one unpaid invoice works, but I can't get it to block on the 15th.
My catalog has a cancelPolicy of END_OF_TERM.
[...]
<cancelPolicy>
<cancelPolicyCase>
<policy>END_OF_TERM</policy>
</cancelPolicyCase>
</cancelPolicy>
Finally, my retry config (in conf/catalina.properties):
org.killbill.payment.retry.days=1,1,8
Where should I look first?
Thanks!