Open
Description
Issue
Despite Adding 'reportable: false' to an AOS_Invoices Field to Exclude It from the Reports Module (via public/legacy/custom/modules/AOS_Invoices/Ext/Vardefs/vardefs.ext.php), It Still Appears as a Selectable Field
Possible Fix
In the file public/legacy/modules/AOW_WorkFlow/aow_utils.php, add the following inside the foreach loop:

if (isset($_GET['module']) && $_GET['module'] == 'AOR_Reports' && isset($arr['reportable']) && $arr['reportable'] === false) {
continue;
}
This change ensures that the field has the reportable property and considers the originating module, as this function is used not only for reports but also for workflows.
Steps to Reproduce the Issue
1) Add the property **reportable: false** to a field in **AOS_Invoices**.
2) Attempt to include that field from the **Reports** module.
Context
Not all fields must appear to be used in reports
Version
8.8.0
What browser are you currently using?
Chrome
Browser Version
Chrome - Version 131.0.6778.264 (Official Build) (64-bit)
Environment Information
PHP 8.3.17
Operating System and Version
Ubuntu 22.04.4 LTS