mydedis Posted November 23, 2010 Share Posted November 23, 2010 Hi, would it be possible to implement a script executed monthly via cronjob that fetches all paid invoices (of the last month) in pdf format? If doable, how hard would it be? If someone wants to do the job, tell me your price. Thanks 0 Quote Link to comment Share on other sites More sharing options...
zamrg Posted November 23, 2010 Share Posted November 23, 2010 You'd be able to get a list of paid invoices via the API but as far as I know, it's not as simple to the pdf generated by WHMCS, unless you wouldn't mind re-creating the pdf with the data received from the API. I suppose it would be possible if you use curl (with session/cookies saved) to actually login to the admin backend. You could then init a curl request to HTTP GET dl.php?type=i&id=(insert invoice id here). 0 Quote Link to comment Share on other sites More sharing options...
mydedis Posted November 23, 2010 Author Share Posted November 23, 2010 I wouldn't mind re-creating the PDF, actually I guess it would save me quite a few MBs of download, if I could generate the pdf locally. (each pdf right now is more then 500KB... about 50 invoices/month). You think you can do the task? If so, please PM me with a price. Thanks 0 Quote Link to comment Share on other sites More sharing options...
zamrg Posted November 23, 2010 Share Posted November 23, 2010 I wouldn't mind re-creating the PDF, actually I guess it would save me quite a few MBs of download, if I could generate the pdf locally. (each pdf right now is more then 500KB... about 50 invoices/month). You think you can do the task? If so, please PM me with a price. Thanks sure, have sent you my contact details. *edit*, can't PM you, so have sent an email 0 Quote Link to comment Share on other sites More sharing options...
mydedis Posted November 23, 2010 Author Share Posted November 23, 2010 Hm, didn't get anything. Please resend it at mydedis (AT) gmail.com 0 Quote Link to comment Share on other sites More sharing options...
mydedis Posted November 24, 2010 Author Share Posted November 24, 2010 Nevermind, there's already the option under Reports -> PDF Batch. 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.