mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
* remove external app reference and update get_warehouse_list * resolve #13478 : Default Accounts in Item from Item Group
This commit is contained in:
committed by
Rushabh Mehta
parent
ea49deb315
commit
bc83daf0fa
@@ -654,3 +654,11 @@ $.extend(erpnext.item, {
|
|||||||
frm.layout.refresh_sections();
|
frm.layout.refresh_sections();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frappe.ui.form.on("Item", {
|
||||||
|
setup: function(frm) {
|
||||||
|
// #13478 : Default Accounts in Item from Item Group
|
||||||
|
cur_frm.add_fetch('item_group', 'default_expense_account', 'expense_account');
|
||||||
|
cur_frm.add_fetch('item_group', 'default_income_account', 'income_account');
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user