feat: Filter list for Discount Account field in Items table

This commit is contained in:
GangaManoj 2021-07-06 16:28:19 +05:30
parent cf7579e29f
commit b08bb1f1a2

View File

@ -510,6 +510,14 @@ cur_frm.set_query("income_account", "items", function(doc) {
}
});
// Discount Account in Details Table
// --------------------------------
cur_frm.set_query("discount_account", "items", function(doc) {
return{
query: "erpnext.controllers.queries.get_income_account",
filters: {'company': doc.company}
}
});
// Cost Center in Details Table
// -----------------------------