mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
feat: default account head for operating cost (#41985)
This commit is contained in:
@@ -28,6 +28,12 @@ frappe.ui.form.on("Company", {
|
||||
};
|
||||
});
|
||||
|
||||
frm.set_query("default_operating_cost_account", function (doc) {
|
||||
return {
|
||||
filters: { company: doc.name, root_type: "Expense" },
|
||||
};
|
||||
});
|
||||
|
||||
frm.set_query("default_selling_terms", function () {
|
||||
return { filters: { selling: 1 } };
|
||||
});
|
||||
|
||||
@@ -107,6 +107,8 @@
|
||||
"stock_received_but_not_billed",
|
||||
"default_provisional_account",
|
||||
"default_in_transit_warehouse",
|
||||
"manufacturing_section",
|
||||
"default_operating_cost_account",
|
||||
"dashboard_tab"
|
||||
],
|
||||
"fields": [
|
||||
@@ -757,7 +759,7 @@
|
||||
{
|
||||
"fieldname": "stock_tab",
|
||||
"fieldtype": "Tab Break",
|
||||
"label": "Stock"
|
||||
"label": "Stock and Manufacturing"
|
||||
},
|
||||
{
|
||||
"fieldname": "dashboard_tab",
|
||||
@@ -772,6 +774,17 @@
|
||||
"fieldname": "reconcile_on_advance_payment_date",
|
||||
"fieldtype": "Check",
|
||||
"label": "Reconcile on Advance Payment Date"
|
||||
},
|
||||
{
|
||||
"fieldname": "manufacturing_section",
|
||||
"fieldtype": "Section Break",
|
||||
"label": "Manufacturing"
|
||||
},
|
||||
{
|
||||
"fieldname": "default_operating_cost_account",
|
||||
"fieldtype": "Link",
|
||||
"label": "Default Operating Cost Account",
|
||||
"options": "Account"
|
||||
}
|
||||
],
|
||||
"icon": "fa fa-building",
|
||||
@@ -779,7 +792,7 @@
|
||||
"image_field": "company_logo",
|
||||
"is_tree": 1,
|
||||
"links": [],
|
||||
"modified": "2024-05-27 17:32:49.057386",
|
||||
"modified": "2024-06-21 17:46:25.567565",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Setup",
|
||||
"name": "Company",
|
||||
|
||||
@@ -62,6 +62,7 @@ class Company(NestedSet):
|
||||
default_income_account: DF.Link | None
|
||||
default_inventory_account: DF.Link | None
|
||||
default_letter_head: DF.Link | None
|
||||
default_operating_cost_account: DF.Link | None
|
||||
default_payable_account: DF.Link | None
|
||||
default_provisional_account: DF.Link | None
|
||||
default_receivable_account: DF.Link | None
|
||||
|
||||
Reference in New Issue
Block a user