Merge pull request #18107 from Mangesh-Khairnar/mapped_doc_fix

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

View File

@@ -595,6 +595,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