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: Zero division error while fetching unconsumed materials (backport #27293) #46185

Closed

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 28, 2025

Issue:

 File ".../apps/erpnext/erpnext/stock/doctype/stock_entry/stock_entry.py", line 1003, in get_items
    self.get_unconsumed_raw_materials()
  File ".../apps/erpnext/erpnext/stock/doctype/stock_entry/stock_entry.py", line 1200, in get_unconsumed_raw_materials
    (flt(work_order_qty) - flt(wo.produced_qty))
ZeroDivisionError: float division by zero
```<hr>This is an automatic backport of pull request #27293 done by [Mergify](https://mergify.com).

`

(cherry picked from commit 9506c14)

# Conflicts:
#	erpnext/stock/doctype/stock_entry/stock_entry.py
Copy link
Contributor Author

mergify bot commented Feb 28, 2025

Cherry-pick of 9506c14 has failed:

On branch mergify/bp/version-13-hotfix/pr-27293
Your branch is up to date with 'origin/version-13-hotfix'.

You are currently cherry-picking commit 9506c14d35.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   erpnext/stock/doctype/stock_entry/stock_entry.py

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

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

Successfully merging this pull request may close these issues.

2 participants