fix: free item quantity issue

This commit is contained in:
Rohit Waghchaure 2020-04-21 00:19:19 +05:30
parent 17ab1592c7
commit d093a377ef

View File

@ -1430,6 +1430,8 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
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
}
},