commit | fc3731f15e90293bcc4a9fdc37cd89a9b1500e93 | [log] [tgz] |
---|---|---|
author | Mangesh-Khairnar <mkhairnar10@gmail.com> | Mon Jul 01 17:04:12 2019 +0530 |
committer | GitHub <noreply@github.com> | Mon Jul 01 17:04:12 2019 +0530 |
tree | fb688292176fad5cd97ae7d729d1b40d76406989 | |
parent | 8d2c996b505f2ec2c9af02d02100440f815dc7c3 [diff] | |
parent | 4aed7cc3108447979948844dbd7f4ff9350d08f7 [diff] |
Merge pull request #18107 from Mangesh-Khairnar/mapped_doc_fix fix: clear duplicates in mapped doc
diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 64b96b5..dd8abfb 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js
@@ -595,6 +595,7 @@ } erpnext.utils.clear_duplicates = function() { + if(!cur_frm.doc.items) return; const unique_items = new Map(); /* Create a Map of items with