mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
fix: item code is tuple with operation id
(cherry picked from commit 481deee4b2)
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