mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +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")
|
precision = frappe.get_precision("Stock Entry Detail", "qty")
|
||||||
for item_code, details in raw_materials.items():
|
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 matched_item := self.get_matched_items(item_code):
|
||||||
if flt(details.get("qty"), precision) != flt(matched_item.qty, precision):
|
if flt(details.get("qty"), precision) != flt(matched_item.qty, precision):
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
|
|||||||
Reference in New Issue
Block a user