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
commit fc3731f15e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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