diff --git a/erpnext/setup/doctype/company/company.json b/erpnext/setup/doctype/company/company.json index b5cbc3907d7..338af04b949 100644 --- a/erpnext/setup/doctype/company/company.json +++ b/erpnext/setup/doctype/company/company.json @@ -95,6 +95,11 @@ "depreciation_cost_center", "capital_work_in_progress_account", "asset_received_but_not_billed", + "accounts_closing_tab", + "accounts_closing_section", + "accounts_frozen_till_date", + "column_break_tawz", + "role_allowed_for_frozen_entries", "buying_and_selling_tab", "sales_settings", "default_buying_terms", @@ -885,8 +890,36 @@ "fieldname": "enable_item_wise_inventory_account", "fieldtype": "Check", "label": "Enable Item-wise Inventory Account" + }, + { + "description": "Accounting entries are frozen up to this date. Only users with the specified role can create or modify entries before this date.", + "fieldname": "accounts_frozen_till_date", + "fieldtype": "Date", + "in_list_view": 1, + "label": "Accounts Frozen Till Date" + }, + { + "fieldname": "accounts_closing_tab", + "fieldtype": "Tab Break", + "label": "Accounts Closing" + }, + { + "fieldname": "column_break_tawz", + "fieldtype": "Column Break" + }, + { + "fieldname": "role_allowed_for_frozen_entries", + "fieldtype": "Link", + "in_list_view": 1, + "label": "Roles Allowed to Set and Edit Frozen Account Entries", + "options": "Role" + }, + { + "fieldname": "accounts_closing_section", + "fieldtype": "Section Break" } ], + "grid_page_length": 50, "icon": "fa fa-building", "idx": 1, "image_field": "company_logo", diff --git a/erpnext/setup/doctype/company/company.py b/erpnext/setup/doctype/company/company.py index 7d8a9002d30..2de322c107b 100644 --- a/erpnext/setup/doctype/company/company.py +++ b/erpnext/setup/doctype/company/company.py @@ -28,6 +28,7 @@ class Company(NestedSet): from frappe.types import DF abbr: DF.Data + accounts_frozen_till_date: DF.Date | None accumulated_depreciation_account: DF.Link | None allow_account_creation_against_child_company: DF.Check asset_received_but_not_billed: DF.Link | None @@ -96,6 +97,7 @@ class Company(NestedSet): registration_details: DF.Code | None reporting_currency: DF.Link | None rgt: DF.Int + role_allowed_for_frozen_entries: DF.Link | None round_off_account: DF.Link | None round_off_cost_center: DF.Link | None round_off_for_opening: DF.Link | None