pub struct YearEndCloseGenerator { /* private fields */ }Expand description
Generator for year-end closing entries.
Implementations§
Source§impl YearEndCloseGenerator
impl YearEndCloseGenerator
Sourcepub fn new(config: YearEndCloseConfig) -> Self
pub fn new(config: YearEndCloseConfig) -> Self
Creates a new year-end close generator.
Sourcepub fn generate_year_end_close(
&mut self,
company_code: &str,
fiscal_year: i32,
trial_balance: &HashMap<String, Decimal>,
spec: &YearEndClosingSpec,
) -> YearEndCloseResult
pub fn generate_year_end_close( &mut self, company_code: &str, fiscal_year: i32, trial_balance: &HashMap<String, Decimal>, spec: &YearEndClosingSpec, ) -> YearEndCloseResult
Generates the complete year-end closing entries.
Sourcepub fn generate_tax_provision(
&mut self,
company_code: &str,
fiscal_year: i32,
pretax_income: Decimal,
permanent_differences: Vec<TaxAdjustment>,
temporary_differences: Vec<TaxAdjustment>,
) -> TaxProvisionGenerationResult
pub fn generate_tax_provision( &mut self, company_code: &str, fiscal_year: i32, pretax_income: Decimal, permanent_differences: Vec<TaxAdjustment>, temporary_differences: Vec<TaxAdjustment>, ) -> TaxProvisionGenerationResult
Generates tax provision entries.
Auto Trait Implementations§
impl Freeze for YearEndCloseGenerator
impl RefUnwindSafe for YearEndCloseGenerator
impl Send for YearEndCloseGenerator
impl Sync for YearEndCloseGenerator
impl Unpin for YearEndCloseGenerator
impl UnsafeUnpin for YearEndCloseGenerator
impl UnwindSafe for YearEndCloseGenerator
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> 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.