Merge pull request #21344 from rohitwaghchaure/fixed_free_item_qty_hotfix

fix: free item quantity issue
This commit is contained in:
rohitwaghchaure
2020-04-21 01:08:13 +05:30
committed by GitHub

View File

@@ -1396,6 +1396,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
}
},