mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
Merge pull request #52446 from frappe/mergify/bp/version-16-hotfix/pr-52445
fix: item code is tuple with operation id (backport #52445)
This commit is contained in:
@@ -971,6 +971,7 @@ class StockEntry(StockController, SubcontractingInwardController):
|
||||
|
||||
precision = frappe.get_precision("Stock Entry Detail", "qty")
|
||||
for item_code, details in raw_materials.items():
|
||||
item_code = item_code[0] if type(item_code) == tuple else item_code
|
||||
if matched_item := self.get_matched_items(item_code):
|
||||
if flt(details.get("qty"), precision) != flt(matched_item.qty, precision):
|
||||
frappe.throw(
|
||||
|
||||
Reference in New Issue
Block a user