mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
fix: only show inventory accounts in the dropdown
This commit is contained in:
@@ -358,6 +358,17 @@ $.extend(erpnext.item, {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
frm.fields_dict["item_defaults"].grid.get_field("default_inventory_account").get_query = function (
|
||||||
|
doc,
|
||||||
|
cdt,
|
||||||
|
cdn
|
||||||
|
) {
|
||||||
|
const row = locals[cdt][cdn];
|
||||||
|
return {
|
||||||
|
filters: { company: row.company, account_type: "Stock", is_group: 0 },
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
frm.fields_dict["item_defaults"].grid.get_field("default_discount_account").get_query = function (
|
frm.fields_dict["item_defaults"].grid.get_field("default_discount_account").get_query = function (
|
||||||
doc,
|
doc,
|
||||||
cdt,
|
cdt,
|
||||||
|
|||||||
Reference in New Issue
Block a user