feat: Filter list for Discount Account field in Items table

This commit is contained in:
GangaManoj 2021-07-06 16:28:19 +05:30 committed by Deepesh Garg
parent f6a9374356
commit c4e5429560

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
// -----------------------------