fix: attribute order in create multiple variants dialog (#44800)

* Fix : show multiple variants dialog

Fixed attribute order in create multiple variant dialog.

* fix(dialog): attribute order in create multiple variants dialog

Fixed attribute order in create multiple variant dialog.
This commit is contained in:
Shreyas Sojitra
2024-12-27 10:53:17 +05:30
committed by GitHub
parent c9088f4955
commit 751a0a93ef

View File

@@ -545,7 +545,8 @@ $.extend(erpnext.item, {
function make_fields_from_attribute_values(attr_dict) {
let fields = [];
Object.keys(attr_dict).forEach((name, i) => {
let att_key = frm.doc.attributes.map((idx) => idx.attribute);
att_key.forEach((name, i) => {
if (i % 3 === 0) {
fields.push({ fieldtype: "Section Break" });
}