fix: not able to select the zero qty batch while making the sales return entry

This commit is contained in:
Rohit Waghchaure
2019-10-22 14:03:27 +05:30
parent 8e937e9640
commit d8ddd1e2ec
2 changed files with 29 additions and 15 deletions

View File

@@ -1652,6 +1652,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 {