mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 06:48:31 +00:00
feat: move frozen account settings to Company for company-specific configuration
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user