style: format
This commit is contained in:
parent
1b16eb7667
commit
1e9f9c452f
@ -61,13 +61,16 @@ frappe.ui.form.on("Warehouse", {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!frm.doc.is_group && frm.doc.__onload && frm.doc.__onload.account) {
|
if (!frm.doc.is_group && frm.doc.__onload && frm.doc.__onload.account) {
|
||||||
frm.add_custom_button(__("General Ledger", null, "Warehouse"), function () {
|
frm.add_custom_button(
|
||||||
frappe.route_options = {
|
__("General Ledger", null, "Warehouse"),
|
||||||
account: frm.doc.__onload.account,
|
function () {
|
||||||
company: frm.doc.company,
|
frappe.route_options = {
|
||||||
};
|
account: frm.doc.__onload.account,
|
||||||
frappe.set_route("query-report", "General Ledger");
|
company: frm.doc.company,
|
||||||
});
|
};
|
||||||
|
frappe.set_route("query-report", "General Ledger");
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
frm.toggle_enable(["is_group", "company"], false);
|
frm.toggle_enable(["is_group", "company"], false);
|
||||||
|
Loading…
Reference in New Issue
Block a user