Reg : Subscription Bill - Auto Generation

Hi All,

I have set the subscription bill to be generated today, on the 1st of this month. Until now, the bill has not been auto-generated. The last time I checked, it was generated on the expected date, but randomly in the afternoon. What could be the cause? Is there any setup that needs to be checked to ensure that the invoice auto-generates at 12 AM on the set date?


Regards
Pritam Peethambaram

Hello @Pritam
You can fix this by scripting schedular or Verifying that the server’s scheduler is working as expected and set to trigger at 12 AM.
you need to customize it in hooks file
Example : scheduler_events = {
“cron”: {
“0 0 * * *”: [
“erpnext.accounts.doctype.subscription.subscription.generate_subscription_invoices”
]
}
}