blazedd Posted June 29, 2016 Report Share Posted June 29, 2016 Blesta: Janitor Small Blesta plugin to automate cleaning of abandoned orders, invoices, and services. Installation Download the latest release version from our releases and then simply upload the janitor folder to ~/plugins directory on your Blesta installation. How it Works: Janitor creates two cron entries which can be configured both by the cron settings and by the direct plugin settings. All of the plugin’s settings are based on the time the order was created. It may be important that you not cleanup and cancel at the same interval if you expect the orders to be marked as cancelled for any amount of time. Both cron tasks will never cleanup any orders or services which meeting the following criteria: The order’s invoice has any amount paid towards it. The order’s service is active or already cancelled. The order’s invoice is completely paid and is already closed (database: invoices.invoice_date_closed) Cron Task: Cancel Abandoned Orders This task is designed to strictly check for open orders which have never had any payments attached to them. First, the task will cancel the order and then next, it will void the invoice with a message as described in the language file. This cron task will also cancel any services attached to the order. This part of the cron intentionally leaves orders, invoices, and services in the database, in the possible event of this data being used by sales automation, etc. Cleanup Order Database This task is designed to completely delete all related database entries related to the order. It will remove the orders database entry, the order_services entry, and provides you the option to either leave the services as marked cancelled, or completely delete the service from the database via the plugins options. Only canceled services will be deleted if this option is set. If the service on this task is any other status than canceled, as set in the ‘Cancel Abandoned Orders’ cron task, it will ignore the service entirely. Download: https://github.com/nodecraft/janitor/releases Issues/feature requests: https://github.com/nodecraft/janitor/issues Cherry, Paul, Joseph H and 4 others 6 1 Quote Link to comment Share on other sites More sharing options...
Michael Posted June 29, 2016 Report Share Posted June 29, 2016 Sounds awesome thanks mate. Quote Link to comment Share on other sites More sharing options...
Paul Posted June 29, 2016 Report Share Posted June 29, 2016 Very nice, thanks for the contribution! Michael 1 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted June 30, 2016 Report Share Posted June 30, 2016 Well done ... When i finish testing and tweaking my plugin and release it , maybe we can merge the two plugins . Cherry and blazedd 2 Quote Link to comment Share on other sites More sharing options...
John Posted July 15, 2016 Report Share Posted July 15, 2016 I've been wanting this module for a while, thank you! One feature I would love, but maybe it falls outside your scope: if a user has had no active or pending services, no open invoices, and no open tickets, it will change that users status to "Inactive" after X days. Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted July 15, 2016 Report Share Posted July 15, 2016 I've been wanting this module for a while, thank you! One feature I would love, but maybe it falls outside your scope: if a user has had no active or pending services, no open invoices, and no open tickets, it will change that users status to "Inactive" after X days. this can be done with a simple plugin ...... please remind me after ~20 days , i will code it for you free John 1 Quote Link to comment Share on other sites More sharing options...
John Posted July 15, 2016 Report Share Posted July 15, 2016 this can be done with a simple plugin ...... please remind me after ~20 days , i will code it for you free That would be great if you could! I'll add it to my calendar to PM you in 20 days. Thank you sir! Quote Link to comment Share on other sites More sharing options...
John Posted July 15, 2016 Report Share Posted July 15, 2016 First, the task will cancel the order and then next, it will void the invoice with a message as described in the language file. This cron task will also cancel any services attached to the order. Maybe I'm just loosing my marbles, but where does the client or admin see the void message? Usually you just click the void button, and you do not get a space to type in a message. Quote Link to comment Share on other sites More sharing options...
Cherry Posted July 15, 2016 Report Share Posted July 15, 2016 Maybe I'm just loosing my marbles, but where does the client or admin see the void message? Usually you just click the void button, and you do not get a space to type in a message. You're not losing your marbles. It's added as a "public note" on the invoice, which can be seen under the collapsible "Notes" section via the "Edit Invoice" UI within Blesta. Michael and John 2 Quote Link to comment Share on other sites More sharing options...
John Posted July 15, 2016 Report Share Posted July 15, 2016 You're not losing your marbles. It's added as a "public note" on the invoice, which can be seen under the collapsible "Notes" section via the "Edit Invoice" UI within Blesta. Ah, that's right. Thank you for the clarification! Cherry 1 Quote Link to comment Share on other sites More sharing options...
bdacus01 Posted April 27, 2018 Report Share Posted April 27, 2018 @CherrySorry to keep bothering you... Looking at Janitor now. I uploaded it under plugins. However it doesn't show under available? I tried chown'ing it even though it looks good. I even flushed my cache. What am i missing PHP 7.1 B 4.2.2 Quote Link to comment Share on other sites More sharing options...
bdacus01 Posted April 27, 2018 Report Share Posted April 27, 2018 @cherry I found the issue... Blesta Addons and Michael 2 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.