mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
feat: Filter list for Discount Account field in Items table
This commit is contained in:
@@ -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
|
// Cost Center in Details Table
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user