pub struct TranslatedTrialBalance {Show 16 fields
pub company_code: String,
pub company_name: String,
pub local_currency: String,
pub group_currency: String,
pub period_end_date: NaiveDate,
pub fiscal_year: i32,
pub fiscal_period: u8,
pub lines: Vec<TranslatedTrialBalanceLine>,
pub closing_rate: Decimal,
pub average_rate: Decimal,
pub total_local_debit: Decimal,
pub total_local_credit: Decimal,
pub total_group_debit: Decimal,
pub total_group_credit: Decimal,
pub cta_amount: Decimal,
pub translation_method: TranslationMethod,
}Expand description
Translated trial balance in group currency.
Fields§
§company_code: StringCompany code.
company_name: StringCompany name.
local_currency: StringLocal (functional) currency.
group_currency: StringGroup (reporting) currency.
period_end_date: NaiveDatePeriod end date.
fiscal_year: i32Fiscal year.
fiscal_period: u8Fiscal period.
lines: Vec<TranslatedTrialBalanceLine>Translated line items.
closing_rate: DecimalClosing rate used.
average_rate: DecimalAverage rate used.
total_local_debit: DecimalTotal local currency debits.
total_local_credit: DecimalTotal local currency credits.
total_group_debit: DecimalTotal group currency debits.
total_group_credit: DecimalTotal group currency credits.
cta_amount: DecimalCurrency Translation Adjustment amount.
translation_method: TranslationMethodTranslation method used.
Implementations§
Source§impl TranslatedTrialBalance
impl TranslatedTrialBalance
Sourcepub fn is_local_balanced(&self) -> bool
pub fn is_local_balanced(&self) -> bool
Returns true if the local currency trial balance is balanced.
Sourcepub fn is_group_balanced(&self) -> bool
pub fn is_group_balanced(&self) -> bool
Returns true if the group currency trial balance is balanced (including CTA).
Sourcepub fn local_net_assets(&self) -> Decimal
pub fn local_net_assets(&self) -> Decimal
Gets the net assets in local currency.
Sourcepub fn group_net_assets(&self) -> Decimal
pub fn group_net_assets(&self) -> Decimal
Gets the net assets in group currency.
Trait Implementations§
Source§impl Clone for TranslatedTrialBalance
impl Clone for TranslatedTrialBalance
Source§fn clone(&self) -> TranslatedTrialBalance
fn clone(&self) -> TranslatedTrialBalance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TranslatedTrialBalance
impl RefUnwindSafe for TranslatedTrialBalance
impl Send for TranslatedTrialBalance
impl Sync for TranslatedTrialBalance
impl Unpin for TranslatedTrialBalance
impl UnsafeUnpin for TranslatedTrialBalance
impl UnwindSafe for TranslatedTrialBalance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.