hvr Posted January 12, 2015 Share Posted January 12, 2015 Hello, Is the automatic suspension date (Suspend Days) anniversary or the minimum days to wait before do the suspension? On docs I only found details about Invoice Generation logic. In my case, it is possible to run Automatic Suspension using cron flag do_suspensions just on working days (mon-fri)? Flaviu 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted January 13, 2015 Share Posted January 13, 2015 you may use action hook to not auto suspend accounts and notify you with ticket/email/or To-do item, so you know what account should be suspended and you can do it manually then. you can use action hook to automate the suspension too in case you need the process to be done dynamically. 0 Quote Link to comment Share on other sites More sharing options...
hvr Posted January 19, 2015 Author Share Posted January 19, 2015 If anyone else wonder, after running the cron I found that the Automatic Suspension (Suspend Days) are the minimum days to wait before do the suspension. 0 Quote Link to comment Share on other sites More sharing options...
anthill Posted January 27, 2015 Share Posted January 27, 2015 Hello hvr, Were you able to get the cron flags to work properly to only perform automatic suspension on work days (M-F)? I'm trying to do the same but getting conflicting information from WHMCS support and what others have posted in the forums. Thanks, Daniel. 0 Quote Link to comment Share on other sites More sharing options...
hvr Posted February 19, 2015 Author Share Posted February 19, 2015 Hi Daniel, Yes, I have setup cron to perform suspension just on office days (M-F). First I have skipped suspentions with ' skip_suspensions' from daily cron. An than I created a new cron just for suspension with ' do_suspensions' flag, someting like this: daily: 10 7 * * * php -q /home/...../admindir/cron.php skip_suspensions suspensions: 10 9 * * 1-5 php -q /home/...../admindir/cron.php do_suspensions you can skip multiple tasks by just adding the flags ' skip_suspensions skip_terminations' Flaviu 0 Quote Link to comment Share on other sites More sharing options...
anthill Posted February 19, 2015 Share Posted February 19, 2015 Hello Flaviu, Thanks for your response. I presume this would work for any process that can be skipped? For example, we could "skip_invoice" on weekends, and invoices that would normally be generated on Saturday and Sunday would be generated on Monday? Let me know if I have misunderstood. Thanks, Daniel. 0 Quote Link to comment Share on other sites More sharing options...
hvr Posted February 19, 2015 Author Share Posted February 19, 2015 For Invoice Generation yes, all Due Dates form Saturday and Sunday will be invoiced on next Monday. here is an example from docs: http://docs.whmcs.com/Invoicing_Issues#Items_Not_Invoicing This will not work for Invoice Reminders as reminders are sent on fixed terms (eg: on 15th day past due date). 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.