Merge pull request #18106 from Mangesh-Khairnar/fix-mapped-doc

fix: clear duplicates in mapped doc
This commit is contained in:
Mangesh-Khairnar
2019-07-01 12:27:24 +05:30
committed by GitHub

View File

@@ -619,6 +619,7 @@ erpnext.utils.map_current_doc = function(opts) {
}
erpnext.utils.clear_duplicates = function() {
if(!cur_frm.doc.items) return;
const unique_items = new Map();
/*
Create a Map of items with