Merge pull request #21345 from rohitwaghchaure/fixed_free_item_qty_develop

fix: free item quantity issue
This commit is contained in:
rohitwaghchaure 2020-04-21 01:10:33 +05:30 committed by GitHub
commit 3d2ced7926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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