ever-co / ever-gauzy

Ever® Gauzy™ - Open Business Management Platform (ERP/CRM/HRM/ATS/PM) - https://gauzy.co
https://gauzy.co
GNU Affero General Public License v3.0
2.23k stars 527 forks source link

Bug: Default sort order in Organization, Employee, Expense, Income tables #530

Open MuizNadeem opened 4 years ago

MuizNadeem commented 4 years ago

The recently updated record is shown as the last entry in the Organization, Employee, Expense, Income tables.

For instance, when the name of the first employee in the employee data table is updated, the updated row is found in the last row of the last page. image

@evereq Is this something that we need to fix now or can be parked for later? Please share the actual requirement if it has to be fixed.

evereq commented 4 years ago

@MuizNadeem good catch. We will deal with the default "sorting" in all tables/grids at some point later.

Think for Income and Expenses it makes sense to sort them by default using the Date of income/expense happens descending (not the date when it was created in Gauzy, we have different columns for that). Mean that recent expenses/income records should always be at the top of the table.

Regarding Employees / Organizations, I am not sure yet what is a logical order for them, except just sort by name ascending for example? (A, B, C, ...).

Let's keep track of all such tables/grids in this ticket and do it all together.

MuizNadeem commented 4 years ago

Admin user has access to view the dashboards of all organizations. The default dashboard shows the organization employee details of the organization which is currently on top of the Organization list in the header select menu. This is okay for admin but when a new user is created for organization 'A' and the user logs in with to our App, the dashboard displayed to this new user is not necessarily of organization 'A' but the organization which is on top of the Organization list which is a serious security issue.

We need to make sure that our sort condition also takes into account of the above scenario.

Sample screenshots: The data entry user was created for and belongs only to Ever Technologies: image

Dashboard view when user de@ever.co logs in: image