Installing Ghost Accounts & Invoice Cleaner¶
Upload¶
-
Unpack the download and copy the
GhostAccountsCleanerfolder intoextensions/Others/of your Paymenter installation. The main class must end up here:/var/www/paymenter/extensions/Others/GhostAccountsCleaner/GhostAccountsCleaner.php -
Run the commands from the extension's README in the Paymenter directory:
cd /var/www/paymenter composer dump-autoload php artisan optimize:clear
The folder name must stay GhostAccountsCleaner. The extension looks up its own settings under that name.
Install and enable¶
- In the admin area, open the Extensions group in the sidebar and go to Available Extensions.
- Switch to the Ready to Install / Upload tab.
- Find the extension in the list, click Install and confirm. Paymenter opens the extension's settings page.
- Switch on Enabled and save.
After enabling, a Client Ops group appears in the admin sidebar with three entries: Ghost Accounts, Invoice Cleaner and Log Cleaner.
The extension has no migrations and creates no tables, so there is nothing else to run.
First-time setup¶
- Review the settings on the extension's settings page. See Configuration. Both dry run switches are on by default, so the Invoice Cleaner and Log Cleaner cannot delete anything until you turn them off.
- Give your staff roles the permissions they need. Edit the role in the admin area and tick the permissions listed in Configuration. Roles that hold all permissions (
*) already have them. An admin without the matching view permission does not see the page.
Warning
Account deletion on the Ghost Accounts page has no dry run mode. A user with the Delete ghost account candidates permission can delete accounts as soon as the extension is enabled.
Updating¶
- Replace the contents of
extensions/Others/GhostAccountsCleaner/with the new version. - Run the two commands from the upload step again.
Your settings are stored in Paymenter's database and are kept.
Uninstalling¶
- Open the extension's settings page (the Extensions list, then edit GhostAccountsCleaner).
- Click Uninstall Extension and confirm. This removes the extension from Paymenter's list of installed extensions.
- Delete the
extensions/Others/GhostAccountsCleaner/folder.
To hide the pages without uninstalling, switch off Enabled and save.
Warning
Uninstalling or disabling does not bring back accounts, invoices or log rows you deleted with the extension.