Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making selections inactive #198

Open
steveblamey opened this issue Nov 14, 2019 · 2 comments
Open

Making selections inactive #198

steveblamey opened this issue Nov 14, 2019 · 2 comments

Comments

@steveblamey
Copy link
Member

There are many places in uzERP where unused, or no longer required items, should not be available for selection. For example, users often want to stop using certain GL codes or centres but there is currently no way to stop them being available to select throughout the system.

I propose that we add a column, perhaps named 'item_active', to each db table/view that may contain items that the user has decided should no-longer be used. This could be a simple boolean field, default true.

We can adjust the getAll()* function on the DataObject to filter out the selected items by default so they are not shown in select lists, etc in the UI. Using the same column name on each table facilitates this.
* The getALL function retrieves arrays that are used to populate dropdowns, etc. in most templates

Ideally, the DataObject code should also be updated to prevent the saving of new records containing inactive codes.

@steveblamey
Copy link
Member Author

See also #195

@mshiner
Copy link
Collaborator

mshiner commented Nov 15, 2019

@steveblamey agreed that this could be a useful enhancement.

Perhaps it could be used as a first step to selecting contacts for batch deletion (see #116)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants