đ FinancialClassController Documentation
đ QUICK DOCUMENTATIONâ
- File Path: /API/Controllers/FinancialClassController.cs
- Primary Purpose: Manages financial asset classification hierarchy, which categorizes assets according to accounting and financial reporting requirements.
- Key Endpoints:
- đ GET /FinancialAssetClassHierarchy - Retrieves the financial asset class hierarchy
- đ POST /UpdateFinancialClass - Updates a financial class node
- đī¸ POST /Delete - Deletes a financial hierarchy node
- Related Models: FinancialAssetClassNodeDto
- Used By:
- Financial reporting configuration screens
- Asset classification for accounting purposes
- Financial disclosure generation
- Financial statement preparation
đī¸ DETAILED DOCUMENTATIONâ
đī¸ Overviewâ
The FinancialClassController manages the financial classification of assets, which is distinct from the physical asset hierarchy. Financial classifications align with accounting standards and financial reporting requirements, organizing assets into categories like "Land," "Buildings & Improvements," or "Plant & Equipment." This controller allows for retrieving, updating, and deleting nodes in the financial asset class hierarchy.
đ§ Controller Dependenciesâ
- Namespace: AVP.API.Controllers
- Services Used:
- Mediator (CQRS pattern implementation)
- Other Dependencies: None specified
đ Endpointsâ
đ Get Financial Asset Class Hierarchyâ
- HTTP Method: GET
- URL Pattern: /FinancialAssetClassHierarchy
- Authentication: đ Required (inherited from ApiController)
- Description: Retrieves the hierarchy of financial asset classes for a job or client
Request Parametersâ
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | GetFinancialAssetClassHierarchyQuery | Yes | Contains JobId or ClientId to filter the hierarchy |
Response Formatâ
[
{
"id": 1,
"name": "Land",
"description": "All land assets",
"clientId": 456,
"jobId": 123,
"hasChildren": true,
"children": [
{
"id": 101,
"name": "Operational Land",
"description": "Land used for operations",
"parentId": 1,
"hasChildren": false
},
{
"id": 102,
"name": "Community Land",
"description": "Land used by community",
"parentId": 1,
"hasChildren": false
}
]
},
{
"id": 2,
"name": "Buildings & Improvements",
"description": "All building assets",
"clientId": 456,
"jobId": 123,
"hasChildren": true,
"children": [
{
"id": 201,
"name": "Office Buildings",
"description": "Administrative buildings",
"parentId": 2,
"hasChildren": false
}
]
}
]
đ Update Financial Classâ
- HTTP Method: POST
- URL Pattern: /UpdateFinancialClass
- Authentication: đ Required
- Description: Creates or updates a financial asset class node in the hierarchy
Request Parametersâ
| Parameter | Type | Required | Description |
|---|---|---|---|
| command | UpdateFinancialHierarchyItemCommand | Yes | Contains financial class data to update |
Response Formatâ
123
(Returns the financial class node ID)
đī¸ Delete Financial Hierarchy Nodeâ
- HTTP Method: POST
- URL Pattern: /Delete
- Authentication: đ Required
- Description: Deletes a node from the financial asset class hierarchy
Request Parametersâ
| Parameter | Type | Required | Description |
|---|---|---|---|
| command | DeleteFinancialHierarchyNodeCommand | Yes | Contains NodeId to delete |
Response Formatâ
1
(Returns number of nodes deleted)
đ Financial Classification Structureâ
âšī¸ Note: The financial asset classification follows a two-level hierarchy:
-
Financial Asset Class (Level 1)
- Top-level categorization (e.g., Land, Buildings & Improvements, Plant & Equipment)
- Aligns with major balance sheet categories
-
Financial Asset SubClass (Level 2)
- Sub-categorization within classes (e.g., Operational Land, Community Land)
- Provides more detailed classification for financial reporting
This hierarchy is separate from the physical asset hierarchy (Asset Class â Asset Type â Asset SubType) and serves specifically financial reporting purposes.
đ Asset-Financial Relationshipâ
Each physical asset in the system can be assigned to a financial classification:
- Physical Asset â Links to â Financial Asset Class/SubClass
- This relationship determines how assets are grouped in financial statements
- Multiple physical asset types may map to the same financial class
đ Regulatory Frameworkâ
The financial classification directly supports financial reporting requirements:
-
Accounting Standards
- IFRS/AASB classifications for Property, Plant & Equipment
- Disclosure note organization and structure
- Asset categorization for depreciation policies
-
Financial Reporting
- Balance sheet presentation categories
- Financial statement disclosure requirements
- Fixed asset register organization
đ Business Contextâ
Financial classification provides critical business benefits:
-
Financial Reporting
- Automates preparation of asset-related financial disclosures
- Ensures consistent categorization across reporting periods
- Aligns physical assets with accounting requirements
-
Audit Compliance
- Provides clear audit trail for asset classification
- Supports demonstration of compliance with standards
- Enables reconciliation between operational and financial data
-
Disclosure Generation
- Powers automation of movement reconciliation reports
- Supports fair value hierarchy disclosure reports
- Enables financial ratio analysis by asset category