Disabling document types can be useful for users when they need to generate the right documents hassle-free. This article describes how to disable document types within the plugin in two ways:
- Using the Documents tab
- Using the Debug module
Method 1: Using the documents tab
- Navigate to Invoices/Packing > General Settings > Documents.
- Navigate to the desired document type to disable it.
- Turn off the toggle switch next to that document type. On turning off the toggle switch, that particular document type will be disabled.
Method 2: Using the debug module
To disable a particular document type:
- Activate the debug module.
- Disable document types.
Step 1: Activate the Debug module
To activate the debug module:
- Navigate to Invoices/Packing > General Settings
- Append ‘&debug‘ to the general settings URL as shown below.
- Refresh the page.
The debug module will appear as a new tab as shown below:
Step 2: Disable document types
To disable document types:
- Navigate to the newly created Debug tab.
- Under the Debug tab, head to Common modules. The checkbox against each document type shows if the document is enabled or disabled. By default, all used document types will be enabled.
- Locate the checkbox next to the preferred document type.
- Uncheck the checkbox.
- Click on Save.
The image below shows the menu where the document type “invoice” is excluded.
Avoid altering the Admin modules, as this may result in a site crash.