commit | d093a377ef6c3bae54b785f7f2846d0f09bfc673 | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Tue Apr 21 00:19:19 2020 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Tue Apr 21 01:09:44 2020 +0530 |
tree | a5f7ff533bcff56d7b3d0c718c8bd13768cd8157 | |
parent | 17ab1592c7a3e44d7e920e90c6306242b0b74d83 [diff] |
fix: free item quantity issue
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 8e8c48f..3fc26cf 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js
@@ -1430,6 +1430,8 @@ for (let key in free_item_data) { row_to_modify[key] = free_item_data[key]; } + } if (items && items.length && free_item_data) { + items[0].qty = free_item_data.qty } },