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

fix: filter employees based on company in Salary Structure Assignment #617

Closed
wants to merge 2 commits into from

Conversation

saurabh6790
Copy link
Member

Issue:

On Salary Structure Assignment, employee field not considering company

  • For employee HR-EMP-00010, the company is set to Test Comp
    Screenshot 2023-06-22 at 3 00 25 PM

  • On Salary Structure Assignment, the company is set as Frappe Technologies Pvt Ltd. though the system is allowing to select employee HR-EMP-00010
    Screenshot 2023-06-22 at 3 02 55 PM

Fix

Filter employee selection based on company

Screenshot 2023-06-22 at 2 57 50 PM

Copy link
Member

@ruchamahabal ruchamahabal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the company should be fetched from the Employee doc. It's a read-only field and it automatically sets the default company.

Doesn't make sense to add a filter from a read-only field

If I want to create a salary structure assignment for some employee from another company (other than the default one), how do I do that if this filter is set?

Idk why is it a read-only field without fetch-from in the first place 🫠 Weird

@saurabh6790
Copy link
Member Author

saurabh6790 commented Jun 22, 2023

@ruchamahabal

  • General flow, we create Salary Structure Assignment from Salary Structure. So the system maps company from Salary Structure. On Salary Structure the company field is editable.
  • We can add company filter, by checking if the Salary Structure Assignment is being created against Salary Structure.

@mujeerhashmi
Copy link
Contributor

mujeerhashmi commented Aug 30, 2023

I think the company should be fetched from the Employee doc. It's a read-only field and it automatically sets the default company.

I faced this issue only today for multi-company setup. My expectation was company should be fetched from employee & should not be read-only. At the same time when employee is getting selected with company already set, then filters should apply.

If I want to create a salary structure assignment for some employee from another company (other than the default one), how do I do that if this filter is set?

Idk why is it a read-only field without fetch-from in the first place 🫠 Weird

Yes, The company should not be read-only.

@ruchamahabal
Copy link
Member

Closing in favour of a better fix

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

Successfully merging this pull request may close these issues.

3 participants