Skip to content

Commit f808321

Browse files
fix: delivery note store dept issue
1 parent c7e924c commit f808321

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

d2h/public/js/delivery_note.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ frappe.ui.form.on("Delivery Note", {
1717
}
1818
}
1919
);
20-
update_duplicate_items(frm);
20+
if (
21+
frm.doc.items &&
22+
frm.doc.custom_delivery_note_item_duplicate &&
23+
frm.doc.items.length != frm.doc.custom_delivery_note_item_duplicate.length
24+
) {
25+
update_duplicate_items(frm);
26+
}
2127
},
2228
onload: function (frm) {
2329
if (

0 commit comments

Comments
 (0)