ambaha Posted October 24, 2019 Share Posted October 24, 2019 Is there anyway in WHMCS to set a different date for generating the invoices of a particular service? I know WHMCS is able to generates invoices for recurring products and services in advance of the due date. But it seems this policy is set for all services as soon as it is enabled. I wonder to know is there anyway to configure WHMCS to automatically generate the invoices of a particular service in different date from the one which is configured for the rest of the services? For example, I have configured the invoice generaton for all services 7 days ahead of their due time. Now can I create a new service and set its automatically invoice generation date to 1 day ahead of its due time? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 25, 2019 Share Posted October 25, 2019 @ambaha no this is not possible im afraid 0 Quote Link to comment Share on other sites More sharing options...
Remitur Posted October 25, 2019 Share Posted October 25, 2019 I guess you can arrange a cron script that, daily, select few services that are going to expire, and issue the invoice... but just days BEFORE usual default invoicing by WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
ambaha Posted October 25, 2019 Author Share Posted October 25, 2019 sorry, I do not understand! Imagine, I have configured the invoice generaton for all services 7 days ahead of their due time. and I want the invoice generation for a service be issued 1 day before its due time. Now if someone purchase that service at the 1st of a month, its invoice is automatically generated on 23rd of the month. So as far as I underestood, if I set a cron too, an invoice will be created on the day 23 and one another will be issued 1 day before service expiration! Am I right? 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted October 27, 2019 Share Posted October 27, 2019 As Chris mentioned, this isn't going to be possible by default with WHMCS I'm sure it is possible to arrange for this to be done, but it'd take a good deal of investigation and programming to get it that way. 0 Quote Link to comment Share on other sites More sharing options...
ambaha Posted January 1, 2020 Author Share Posted January 1, 2020 I need the services to be pay as you go, but the prices will be calculated from an external panel and given to WHMCS for generate invoice. Is there a solution? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted January 1, 2020 Share Posted January 1, 2020 There are a lot of options but be advised that they're all frustrating and boring to implement. Probably the easiest approach is to make your "pay as you go" service "Free" so that WHMCS does not issue unwanted invoices. Once done, create an action hook that runs with daily cron job whenever you want. In this hook you'll need to "ask" your external panel for the price to apply for any given service then use CreateInvoice API to issue the invoice. Mission accomplished. If you have no experience with programming and/or you don't know how to play with WHMCS, contact a developer. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.