You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice a strange behaviour while generating the invoices manually. For some reason, parent invoice which is summary invoice is not containing all the children invoices.
My case:
We have two level-depth hierarchy, Parent - Children.
We generate invoices with target date set to 1st of August
We use Kill Bill API to generate the invoices by calling POST request to /invoices endpoint.
foridx, account_idinenumerate(list(dict.values())):
r=requests.post(f'{url_path}/1.0/kb/invoices?accountId={account_id}&targetDate={target_date}', headers=headers) # Call API to generate the invoices with target date set to 1st of Augustprint(r.status_code) # 100% of 201 here (invoices are created)ifisinstance(idx, int):
print(f"{idx+1} out {len(list(dict.values()))} invoice done")
By running this script, we generate the invoices for all children in our Tenant.
Once the invoices are generated, Kill Bill automatically generates a DRAFT invoice on parent level for all parents - The number of children entries on the summary invoice is correct (Parent 1 has 9 children, 9 children are on the generated parent invoice, etc)
When we try to generate the invoice for the next month (the invoicing pipeline has passed I see second invoice on each child) - so it's 1st of September, the parent invoices are not generated or miss children entries in the summary:
Parent 1 Parent 2
Parent 1 :: First Invoice (generated automatically after adding invoices for 1st of August)
Parent 1 :: Second Invoice (generated automatically after adding invoices for 1st of September)
Please let me know if you know what may be the reason behind such behaviour, thanks a lot! ❤️
The text was updated successfully, but these errors were encountered:
Hi there...have you checked the underlying subscriptions that these invoices relate to are setup properly? If the underlying billing plans expire or enter a phase with no charges in them it then they will not generate any billiable entries.
Hey dear Kill Bill team
I notice a strange behaviour while generating the invoices manually. For some reason, parent invoice which is summary invoice is not containing all the children invoices.
My case:
We have two level-depth hierarchy, Parent - Children.
We generate invoices with target date set to 1st of August
We use Kill Bill API to generate the invoices by calling POST request to
/invoices
endpoint.By running this script, we generate the invoices for all children in our Tenant.
Once the invoices are generated, Kill Bill automatically generates a DRAFT invoice on parent level for all parents - The number of children entries on the summary invoice is correct (Parent 1 has 9 children, 9 children are on the generated parent invoice, etc)
When we try to generate the invoice for the next month (the invoicing pipeline has passed I see second invoice on each child) - so it's 1st of September, the parent invoices are not generated or miss children entries in the summary:
Parent 1
Parent 2
Parent 1 :: First Invoice (generated automatically after adding invoices for 1st of August)
Parent 1 :: Second Invoice (generated automatically after adding invoices for 1st of September)
Please let me know if you know what may be the reason behind such behaviour, thanks a lot! ❤️
The text was updated successfully, but these errors were encountered: