pub struct FrameworkSettings {
pub framework: AccountingFramework,
pub use_lifo_inventory: bool,
pub capitalize_development_costs: bool,
pub use_ppe_revaluation: bool,
pub allow_impairment_reversal: bool,
pub lease_term_threshold: f64,
pub lease_pv_threshold: f64,
pub default_incremental_borrowing_rate: f64,
pub variable_consideration_constraint: f64,
}Expand description
Framework-specific settings that control accounting treatment options.
These settings allow fine-grained control over framework-specific accounting policies within the selected framework.
Fields§
§framework: AccountingFrameworkThe primary accounting framework.
use_lifo_inventory: boolWhether to use LIFO inventory costing (US GAAP only).
Default: false (use FIFO/weighted average)
capitalize_development_costs: boolWhether to capitalize development costs (IFRS requirement, US GAAP option).
Under IFRS, development costs must be capitalized when criteria are met. Under US GAAP, most development costs are expensed.
use_ppe_revaluation: boolWhether to use revaluation model for PPE (IFRS option).
Under IFRS, entities can choose between cost model and revaluation model. Under US GAAP, revaluation above cost is not permitted.
allow_impairment_reversal: boolWhether to reverse impairment losses when conditions improve (IFRS option).
Under IFRS, impairment losses (except for goodwill) can be reversed. Under US GAAP, impairment losses generally cannot be reversed.
lease_term_threshold: f64Threshold percentage for lease term test (US GAAP: 75%).
A lease is classified as finance/capital if the lease term is >= this percentage of the asset’s economic life.
lease_pv_threshold: f64Threshold percentage for present value test (US GAAP: 90%).
A lease is classified as finance/capital if the present value of lease payments is >= this percentage of the asset’s fair value.
default_incremental_borrowing_rate: f64Default incremental borrowing rate for lease calculations.
variable_consideration_constraint: f64Revenue recognition constraint for variable consideration.
Under both frameworks, variable consideration is constrained to the amount that is highly probable (IFRS) or probable (US GAAP) not to result in a significant revenue reversal.
Implementations§
Source§impl FrameworkSettings
impl FrameworkSettings
Sourcepub fn dual_reporting() -> Self
pub fn dual_reporting() -> Self
Create settings for dual reporting.
Sourcepub fn validate(&self) -> Result<(), FrameworkValidationError>
pub fn validate(&self) -> Result<(), FrameworkValidationError>
Validate settings are consistent with the selected framework.
Trait Implementations§
Source§impl Clone for FrameworkSettings
impl Clone for FrameworkSettings
Source§fn clone(&self) -> FrameworkSettings
fn clone(&self) -> FrameworkSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more