feat: Filter list for Discount Account field in Items table
This commit is contained in:
parent
cf7579e29f
commit
b08bb1f1a2
@ -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
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user