mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
Fixed validation to prevent duplication of Item Variants in case of Numeric Attributes
This commit is contained in:
@@ -572,7 +572,7 @@ def find_variant(item, args):
|
|||||||
|
|
||||||
for attribute, value in args.items():
|
for attribute, value in args.items():
|
||||||
for row in variant.attributes:
|
for row in variant.attributes:
|
||||||
if row.attribute==attribute and row.attribute_value==value:
|
if row.attribute==attribute and row.attribute_value== cstr(value):
|
||||||
# this row matches
|
# this row matches
|
||||||
match_count += 1
|
match_count += 1
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user