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: fixed rounding off ordered percent to 100 in condition #26148

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

noahjacob
Copy link
Contributor

Issue:

  • Buttons were disabled when ordered percent was < 100 (99.998).

Screenshot 2021-06-22 at 3 47 11 PM

  • Condition to make the custom buttons (create, stop, etc) rounded the value to 100 because of precision set to 2.
    if (flt(frm.doc.per_ordered, 2) < 100)

After Fix:
image

Related Fix - PR #24019

ankush
ankush previously approved these changes Jun 22, 2021
@ankush ankush merged commit ce72d0c into frappe:develop Jun 22, 2021
ruchamahabal pushed a commit to ruchamahabal/erpnext that referenced this pull request Jun 23, 2021
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
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