pub struct IndexedRestatement {
pub account_code: String,
pub historical_date: NaiveDate,
pub reporting_date: NaiveDate,
pub historical_amount: Decimal,
pub indexation_factor: Decimal,
pub restated_amount: Decimal,
pub currency: String,
}Expand description
One line-item restatement under IAS 29 § 12.
Fields§
§account_code: StringAccount code being restated.
historical_date: NaiveDateThe historical date on which the underlying item was recognised (acquisition date for non-monetary items).
reporting_date: NaiveDateReporting period end the restatement is being made for.
historical_amount: DecimalPre-restatement (historical-cost) carrying amount, in the functional currency.
indexation_factor: DecimalIndexation factor applied =
index(reporting_date) / index(historical_date).
restated_amount: DecimalPost-restatement amount =
historical_amount * indexation_factor.
currency: StringFunctional currency code.
Implementations§
Source§impl IndexedRestatement
impl IndexedRestatement
Sourcepub fn restate(
account_code: impl Into<String>,
historical_date: NaiveDate,
reporting_date: NaiveDate,
historical_amount: Decimal,
index: &GeneralPriceIndex,
) -> Option<Self>
pub fn restate( account_code: impl Into<String>, historical_date: NaiveDate, reporting_date: NaiveDate, historical_amount: Decimal, index: &GeneralPriceIndex, ) -> Option<Self>
Restate historical_amount from historical_date to
reporting_date using the supplied GeneralPriceIndex.
Returns None when the index can’t yield a factor for either
date. Pure projection — no I/O.
Sourcepub fn adjustment(&self) -> Decimal
pub fn adjustment(&self) -> Decimal
Restatement adjustment amount =
restated_amount − historical_amount. Positive when the
asset’s measured value increased (general inflation outpaces
historical book value); negative when the index has fallen
(rare — typically only happens with a base-period reset).
Trait Implementations§
Source§impl Clone for IndexedRestatement
impl Clone for IndexedRestatement
Source§fn clone(&self) -> IndexedRestatement
fn clone(&self) -> IndexedRestatement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more