Merge pull request #19386 from rohitwaghchaure/while_making_return_entry_not_able_to_select_null_batch

fix: not able to select the zero qty batch while making the sales ret…
This commit is contained in:
rohitwaghchaure
2019-10-23 18:35:58 +05:30
committed by GitHub
2 changed files with 29 additions and 15 deletions

View File

@@ -1653,6 +1653,11 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
'item_code': item.item_code,
'posting_date': me.frm.doc.posting_date || frappe.datetime.nowdate(),
}
if (doc.is_return) {
filters["is_return"] = 1;
}
if (item.warehouse) filters["warehouse"] = item.warehouse;
return {