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: staffing plan vacancies data type issue #25936

Conversation

pateljannat
Copy link
Contributor

Issue and steps to replicate.

  1. Create a Staffing plan for a designation that has at least one employee already present.
  2. In the Staffing Plan Details table enter that designation. Observe the Number of Positions auto-populate. It should be greater than 0 for this scenario.
  3. Don't enter any vacancy. Leave the field blank.
  4. Save.

Actual Result

  1. An Error used to appear due to inconsistencies in data types.

Screenshot 2021-06-03 at 4 02 21 PM

Expected Result

  1. It should save without any error.

ruchamahabal
ruchamahabal previously approved these changes Jun 23, 2021
@ruchamahabal
Copy link
Member

Unrelated test case failing. Merging

@ruchamahabal ruchamahabal merged commit da66cef into frappe:develop Jun 23, 2021
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
* fix: staffing plan vacancies data type issue

* fix: translation issue

* fix: removed greater than 0 condition

* fix: sider

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
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.

None yet

2 participants