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 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