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: handle NoneType error when updating ordered_qty in SO for remove… #43762

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

bhavesh95863
Copy link
Contributor

Added fallback to prevent NoneType error by setting prev_ordered_qty to 0 if it is None.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Oct 21, 2024
@ruthra-kumar ruthra-kumar requested review from ruthra-kumar and removed request for s-aga-r November 4, 2024 07:54
@ruthra-kumar ruthra-kumar self-assigned this Nov 4, 2024
@ruthra-kumar
Copy link
Member

@bhavesh95863

Could you provide replication steps?

@bhavesh95863
Copy link
Contributor Author

@ruthra-kumar you can able to regenerate issue as per the steps mentioned in this issue.

#43758

@ruthra-kumar ruthra-kumar linked an issue Nov 8, 2024 that may be closed by this pull request
@ruthra-kumar ruthra-kumar merged commit a978fd1 into frappe:develop Nov 8, 2024
13 checks passed
ruthra-kumar added a commit that referenced this pull request Nov 8, 2024
…-43762

fix: handle NoneType error when updating ordered_qty in SO for remove… (backport #43762)
ruthra-kumar added a commit that referenced this pull request Nov 8, 2024
…-43762

fix: handle NoneType error when updating ordered_qty in SO for remove… (backport #43762)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Purchase Order. Update Item Functionality throws error.
2 participants