mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-14 02:04:17 +00:00
fix(stock-reconciliation): include inventory dimensions in duplicate validation
(cherry picked from commit 4b21c2cc46)
This commit is contained in:
@@ -589,6 +589,10 @@ class StockReconciliation(StockController):
|
||||
if row.get(field):
|
||||
key.append(row.get(field))
|
||||
|
||||
for dimension in get_inventory_dimensions():
|
||||
if row.get(dimension.get("fieldname")):
|
||||
key.append(row.get(dimension.get("fieldname")))
|
||||
|
||||
if key in item_warehouse_combinations:
|
||||
self.validation_messages.append(
|
||||
_get_msg(row_num, _("Same item and warehouse combination already entered."))
|
||||
|
||||
Reference in New Issue
Block a user