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

ERROR CREATING EMPLOYEE UNDER NEW COMPANY #399

Open
nisheshthakuri opened this issue Nov 26, 2024 · 6 comments
Open

ERROR CREATING EMPLOYEE UNDER NEW COMPANY #399

nisheshthakuri opened this issue Nov 26, 2024 · 6 comments

Comments

@nisheshthakuri
Copy link

I am encountering an issue when attempting to create a new employee under a specific company in the Horilla app. Despite selecting the correct company during the employee creation process, the following occurs:

An "404 Error" message is displayed.
The employee is still created, but under the "All Companies" section rather than the specified company.
This issue seems to occur only when I try to add an employee to a newly created company.

Steps to Reproduce:

  • Navigate to the "New Employee" creation screen.
  • Select a newly created company from the company dropdown.
  • Fill in the employee details and attempt to save.

The "404 Error" message appears, but the employee is listed under "All Companies."
Expected Behavior:
The employee should be correctly assigned to the selected company without any error.

Could you please investigate the cause of this issue? It seems to be related to how the app handles the employee-company relationship when the company is newly created.

issue in https://domainname/employee/employee-view-update/

Screenshot 2024-11-26 at 11 55 19
@horilla-opensource
Copy link
Owner

Hi @nisheshthakuri,

Thank you for reaching out. The issue seems to be occurring because you are operating under one company, while the newly created employee belongs to a different company.

To resolve this, please switch to the company where the employee is created and then try accessing the record.

Additionally, we understand this can be a bit inconvenient. To address this, we’ll update the workflow to automatically redirect users to the appropriate employee view when accessing records from a different company. This should prevent such issues in the future.

We appreciate your patience and understanding as we work on this enhancement.

Best regards,
Team Horilla

@nisheshthakuri
Copy link
Author

Thank you for your prompt response.

Issue I am facing is currently unable to create employees directly under the newly created company. So, that means the only workaround is to create the employee under all companies and then update the employee to the desired company(newly created) afterwards.

Could you please confirm if this is the intended workflow, or is there a way to directly create employees under a specific company(newly created company) which is labelled as {other company} without this extra step?

I’d appreciate your clarification on this, as it would help streamline our process.

Thanks again for your support!

@nisheshthakuri
Copy link
Author

nisheshthakuri commented Nov 26, 2024

Hello @horilla-opensource team, any updates on this?

Thank you for your prompt response.

Issue I am facing is currently unable to create employees directly under the newly created company. So, that means the only workaround is to create the employee under all companies and then update the employee to the desired company(newly created) afterwards.

Could you please confirm if this is the intended workflow, or is there a way to directly create employees under a specific company(newly created company) which is labelled as {other company} without this extra step?

I’d appreciate your clarification on this, as it would help streamline our process.

Thanks again for your support!

@horilla-opensource
Copy link
Owner

Hi @nisheshthakuri ,

Apologies for the delay.

The team is working on this issue. There is an issue with some unique constraint in badge id. We'll update you once it's completed.

With Regards,
Team Horilla

@horilla-opensource
Copy link
Owner

Hi @nisheshthakuri ,

Apologies for the long delay. We had encountered some other related issues to the above and fixed everything now in the master branch.

Please pull the latest code from the master branch and try again.

With Regards,
Team Horilla

@nthakuri
Copy link

Sure thanks

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

No branches or pull requests

3 participants