fix: round off increments in numeric item variant

This commit is contained in:
Ankush Menat 2022-02-21 17:41:23 +05:30 committed by Ankush Menat
parent 40a45a3139
commit 00e8565868

View File

@ -594,7 +594,7 @@ $.extend(erpnext.item, {
const increment = r.message.increment; const increment = r.message.increment;
let values = []; let values = [];
for(var i = from; i <= to; i += increment) { for(var i = from; i <= to; i = flt(i + increment, 6)) {
values.push(i); values.push(i);
} }
attr_val_fields[d.attribute] = values; attr_val_fields[d.attribute] = values;