Hi Killbill team.
I have a question about the price calculation in killbill.
I have an evergreen plan TVM-BS-326-QUARTERLY with an billing_cycle of Quarterly with a price of 783.84.
I have created an account with the tag AUTO_INVOICING_OFF
added a subscription with the plan
with a start date 2021-09-13
I then have blocked the invoicing via blocking states
remove tag AUTO_INVOICING_OFF from account
If i then run a invoice run(or dry run) for 30-9 I get an invoice line for
amount 534.04 DKK
Our current billing-system handles billing of monthly prices subscriptions that do not line up with months simply by assuming all months have 30 days and setting a day price by dividing the price with the months.
In this case the monthly price is
Since the period (2021-09-30 - 2021-12-01) is 62 days in our current billing-system we would calculate
62 * (261.28/30)
This adds up to 539.9786667
We are at the moment testing the invoices generated by kill-bill.
I have been asked to explain how the amount is calculated.
Can you help me explain how 534.04 DKK has been calculated.
I need to explain this to my billing the department and later when killbill is production to my customers.
I would also like to know where in the code these calculations are.
I have attached a catalog and a small script to generate and account with a subscription in the above state.
I had to change the dates one year in the future to get it to work.