When is AUTO_INVOICING_OFF tag set?

97 views
Skip to first unread message

Heikki Ikäheimonen

unread,
Sep 5, 2023, 8:42:25 AM9/5/23
to Kill Bill users mailing-list
Hello

When is AUTO_INVOICING_OFF tag set by default? 
we have noticed closed accounts have this tag but there also some accounts that are open having it. Is it set by default overdue system or from somewhere else and in what conditions?

br, Heikki

karan bansal

unread,
Sep 5, 2023, 2:30:46 PM9/5/23
to Kill Bill users mailing-list
Hi Heikki,

This tag is added both by the system as well as can be added by users to the accounts as per their requirement. Basically it tells the system not to auto generate any invoice unless triggered manually by the user. So for example, lets say I create a backdated subscription starting 1st March, so under normal circumstances all the invoices will be generated by the system, but if the business requirement is not to trigger any invoice, then this tag can be added to the account. 

When the accounts are marked closed in Kill Bill, this tag is automatically added by the system. It should not be set by default by the overdue system unless specified in the overdue configuration.

Regards
Karan

Shaun Forgie

unread,
Sep 5, 2023, 6:52:01 PM9/5/23
to karan bansal, Kill Bill users mailing-list
Hi Karan,

I have noticed that subscriptions can now also be paused on creation. I had assumed that pausing a back dated subscription could be a better option and achieve the same effect of not generating the back dated invoices. Is this a correct assumption?

--
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-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/215e270d-861c-463f-8ba2-8b1638902bd6n%40googlegroups.com.


--
Shaun Forgie [Principal] - Method Maker Ltd
57a McIntyre Rd, Manukau 2022, Auckland, New Zealand
Mobile +64 21 666 910

Heikki Ikäheimonen

unread,
Sep 21, 2023, 2:25:43 AM9/21/23
to Kill Bill users mailing-list
Hi and thank you for the reply, we are noticing that we have this tag for some users that are not closed.  We have relatively old KillBill version 0.20.10 in use.  Reason I suspected overdue system has something to do is that it was the only place I found that toggles this tag in OverdueStateApplicator.java but I do not understand if it is toggled in default behavior.  Is it feature of this old KB version? does accounts get this tag from any other way automatically?
Best Regards, Heikki

karan bansal

unread,
Sep 21, 2023, 1:10:52 PM9/21/23
to Kill Bill users mailing-list
Hi Heikki,

Could you query the overdue configuration ( example endpoint : http://localhost:8080/1.0/kb/overdue ) and also the overdue state for any such account ( https://killbill.github.io/slate/account.html#retrieve-overdue-state-for-account ). 

Regards
Karan

Heikki Ikäheimonen

unread,
Sep 22, 2023, 6:41:32 AM9/22/23
to Kill Bill users mailing-list
Hi,
here is the overdue configuration
{
    "initialReevaluationInterval": null,
    "overdueStates": [
        {
            "name": "Clear",
            "isClearState": true,
            "condition": null,
            "externalMessage": "",
            "isBlockChanges": false,
            "isDisableEntitlement": false,
            "subscriptionCancellationPolicy": "NONE",
            "autoReevaluationIntervalDays": null
        }
    ]
}

here is overdue state of one account that has AUTO_INVOICING_OFF but is not closed:
{
    "name": "__KILLBILL__CLEAR__OVERDUE_STATE__",
    "externalMessage": "",
    "daysBetweenPaymentRetries": [
        8,
        8,
        8
    ],
    "isDisableEntitlementAndChangesBlocked": false,
    "isBlockChanges": false,
    "isClearState": true,
    "reevaluationIntervalDays": null
}

br, Heikki

karan bansal

unread,
Sep 26, 2023, 12:13:34 PM9/26/23
to Kill Bill users mailing-list
Hi Heikki,

It does not appear that overdue config is setting it on hold. Could you please use the below example endpoint for an example account to export the data, this would have the blocking states and the account audit. 

Karan
Reply all
Reply to author
Forward
0 new messages