commit | 00e8565868e3bb8a1547abeedd2d158a9b7e5bf4 | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@frappe.io> | Mon Feb 21 17:41:23 2022 +0530 |
committer | Ankush Menat <ankushmenat@gmail.com> | Mon Feb 21 17:42:34 2022 +0530 |
tree | ed736863dde664f6d7a34df5a7995548fcb6bf62 | |
parent | 40a45a31398d580ada25dc27aadd70ce64ac13ad [diff] |
fix: round off increments in numeric item variant
diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js index dfc0918..ffea9c2 100644 --- a/erpnext/stock/doctype/item/item.js +++ b/erpnext/stock/doctype/item/item.js
@@ -594,7 +594,7 @@ const increment = r.message.increment; let values = []; - for(var i = from; i <= to; i += increment) { + for(var i = from; i <= to; i = flt(i + increment, 6)) { values.push(i); } attr_val_fields[d.attribute] = values;