Current working tax plugin for Killbill 0.22.x

215 views
Skip to first unread message

Muhamad Iqbal

unread,
May 9, 2022, 8:43:14 PM5/9/22
to Kill Bill users mailing-list
Hello,

I'm currently working to deploy Killbill system that also includes tax calculation in our  invoices. Looking at the docs, I saw there used to be a simple tax plugin but has not been updated since 2017.

Is there any other similar plugins that we could utilize to implement this function?

Thanks

Reshma Bidikar

unread,
May 10, 2022, 9:27:00 AM5/10/22
to Kill Bill users mailing-list
Hello,

We typically recommend integrating with Avalara Avatax,  which is an easy and cheap way to ensure tax compliance.

If case you want to keep using the simple tax plugin, you can submit a PR to try to upgrade it for Kill Bill version 0.22 if interested. We can provide some support for this via this mailing list. 

Alternatively, you can always write an invoice plugin from scratch.

Hope this helps.

Regards,
Reshma

Muhamad Iqbal

unread,
May 10, 2022, 11:13:31 AM5/10/22
to Kill Bill users mailing-list
After consideration, I decided to develop simple-tax-plugin for v0.22 since
  • Our Killbill will only running within single country, and using Avalara seems a bit overkill for it
  • Avalara doesn't offer free tier for their service
I will keep this post updated whenever I found bugs and issues during development.

Thanks again.

Muhamad Iqbal

unread,
May 13, 2022, 11:48:11 AM5/13/22
to Kill Bill users mailing-list
This is the first issue I found when I tried to install the plugin with my Killbill v0.22
WhatsApp Image 2022-05-09 at 9.46.47 AM.jpeg

From the looks of it, it seems there's an unimplemented method on the SimpleTaxPlugin class that was introduced on later version. Please correct me if I'm wrong.

Also I have another question, does Killbill have docs on migration guide from older version to newer ones? The doc I discovered was more for migration from other billing system to Killbill

karan bansal

unread,
May 18, 2022, 12:53:07 PM5/18/22
to Kill Bill users mailing-list
Hi Muhamad,

I tried with the latest version and did not face this issue. Could you please try with the latest one as well and let me know how it goes.

Here you can find the Installation and Release notes https://github.com/killbill/killbill/releases

BR.
K.

Muhamad Iqbal

unread,
May 18, 2022, 3:46:01 PM5/18/22
to Kill Bill users mailing-list
I'm still experiencing the same error stack as I attached above. Which version of KB are you using and how you setup it?

karan bansal

unread,
May 23, 2022, 12:42:30 PM5/23/22
to Kill Bill users mailing-list
Hi Muhammad,

Apologies for the delay. 

I was able to install and start the plugin using KPM, please see the attached screenshot. Capture.JPG

We are internally looking further into this, will keep you posted on the updates.

BR, 
K.

Muhamad Iqbal

unread,
May 23, 2022, 11:12:07 PM5/23/22
to Kill Bill users mailing-list
Interesting configs, Karan. Will try this on my local.  Do you use Tomcat deployment or the Docker one?

Regards,
Iqbal

karan bansal

unread,
May 28, 2022, 9:01:00 PM5/28/22
to Kill Bill users mailing-list
Hi Muhamad,

I am using Tomcat one for this. 

BR,
K.

karan bansal

unread,
Jun 1, 2022, 9:05:17 AM6/1/22
to Kill Bill users mailing-list
Hi Muhammad,

Hope you are doing well. 

I wanted to follow up and update you that the Dev team has released further changes to the plugin for 0.22.x. You can check out this branch https://github.com/pierre/killbill-simple-tax-plugin/tree/updates-for-0.22.x and let me know in case you face any issues with this.

BR,
K.

Muhamad Iqbal

unread,
Jun 1, 2022, 11:24:01 AM6/1/22
to Kill Bill users mailing-list
Hi Karan, thank you for the notice.

I've been working closely with my dev team to port the original code to be compatible with 0.22.x. We haven't pushed it to public repo since there's still cleaning to do.

Regarding the link you have, I have tested the plugin. There seems to be no error log raised when I checked on killbill.out file, but unfortunately the tax item is not present on any invoice my Killbill generated. Have you tested this on your end?

Thank you,
Iqbal

karan bansal

unread,
Jun 5, 2022, 10:17:44 AM6/5/22
to Kill Bill users mailing-list
Hi Iqbal,

Could you please send me a sample test script that you used to test the plugin.

Regards
Karan.

Muhamad Iqbal

unread,
Jun 5, 2022, 10:34:37 AM6/5/22
to Kill Bill users mailing-list
Hello Karan,

I tested the plugin using the example they used on the README, which is using SpyCarAdvanced as catalog and the config as written here.

Fortunately, my team has developed our version of killbill-simple-tax. This update works in similar way to Pierre's with additional fixes on some logic. We have tested this one and it works on current condition, albeit having some workarounds and an unsolved current issue as stated in my README file.

I hope this can be of help for you, and if anyone are able to give clue on the current issue we face would be very helpful.

Regards,
Iqbal

karan bansal

unread,
Jun 7, 2022, 1:15:01 PM6/7/22
to Kill Bill users mailing-list
Hi Iqbal,

I had a look into this again and the plugin worked as expected. Below I am adding the step by step config that I followed : 

1) Installed the Simple-Tax-Plugin.
2) Created a Simple Catalog using Product name as Standard and Plan name as Standard-Monthly. This is explained here
3) Uploaded the plugin config. It is explained here
4) Created a new account. It is explained here.
5) Added a tax country for this account. It is explained here.
6) Created a subscription under Kaui for Standard-Monthly plan. It is explained here
7) Checked the invoice in the Invoices tab. 

7-Final Invoice.PNG

Could you please follow these and let me know how it goes.

BR,
K.

Muhamad Iqbal

unread,
Jun 7, 2022, 1:44:29 PM6/7/22
to Kill Bill users mailing-list
Greetings Karan,

I have tried using Pierre's version on my Killbill. Unfortunately there's an issue when Killbill generating invoices for a user in incoming period. The issue  is related with custom fields creation for the taxed items in the invoice (there should be a snippet on the left side of each taxed invoice item, showing the tax code) and it causes retries on each incoming invoices, thus modified past invoices with lots of unnecessary adjustments.

Fortunately, this issue has been solved on my version of killbill-simple-tax. The invoice should appears like this:
photo_2022-06-07_22-09-07.jpg
Regards,
Iqbal

karan bansal

unread,
Jun 8, 2022, 12:45:43 PM6/8/22
to Kill Bill users mailing-list
Hi Iqbal,

Thank you for pointing this out. Let me check if we can incorporate these as well. 

Regards
Karan.

Reply all
Reply to author
Forward
0 new messages