mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-29 03:28:32 +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):
|
if row.get(field):
|
||||||
key.append(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:
|
if key in item_warehouse_combinations:
|
||||||
self.validation_messages.append(
|
self.validation_messages.append(
|
||||||
_get_msg(row_num, _("Same item and warehouse combination already entered."))
|
_get_msg(row_num, _("Same item and warehouse combination already entered."))
|
||||||
|
|||||||
Reference in New Issue
Block a user