Overdue config help

96 views
Skip to first unread message

Rubén Marrero

unread,
Apr 28, 2018, 10:30:22 PM4/28/18
to Kill Bill users mailing-list
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!

stephane brossier

unread,
Apr 30, 2018, 10:38:08 PM4/30/18
to Rubén Marrero, Kill Bill users mailing-list
I think you are missing the `initialReevaluationInterval` in your config -- check out the tutorial which provides a example.

Stéphane


--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-users+unsubscribe@googlegroups.com.
To post to this group, send email to killbilling-users@googlegroups.com.
Visit this group at https://groups.google.com/group/killbilling-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/678bd6c0-1665-4079-853a-08b7df2f31c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rubén Marrero

unread,
May 1, 2018, 4:47:41 PM5/1/18
to Kill Bill users mailing-list
Indeed!

it works now, thanks!
Reply all
Reply to author
Forward
0 new messages