commit | e4934907029e54d64b33ae62ec92f68850322ada | [log] [tgz] |
---|---|---|
author | Mangesh-Khairnar <mkhairnar10@gmail.com> | Fri Jun 28 19:22:51 2019 +0530 |
committer | Mangesh-Khairnar <mkhairnar10@gmail.com> | Fri Jun 28 19:22:51 2019 +0530 |
tree | e7eafede96a38d74b760d650c12e1f6105461079 | |
parent | 42c8a4baa08d385409fd3e5d8994d1e6659f7c6f [diff] [blame] |
fix: 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