Skip to main content

ReconciliationEngine

Struct ReconciliationEngine 

Source
pub struct ReconciliationEngine { /* private fields */ }
Expand description

Reconciliation engine for GL-to-subledger matching.

Implementations§

Source§

impl ReconciliationEngine

Source

pub fn new(config: ReconciliationConfig) -> Self

Creates a new reconciliation engine.

Source

pub fn reconcile_ar( &mut self, company_code: &str, as_of_date: NaiveDate, gl_balance: Decimal, ar_invoices: &[&ARInvoice], ) -> ReconciliationResult

Reconciles AR subledger to GL.

Source

pub fn reconcile_ap( &mut self, company_code: &str, as_of_date: NaiveDate, gl_balance: Decimal, ap_invoices: &[&APInvoice], ) -> ReconciliationResult

Reconciles AP subledger to GL.

Source

pub fn reconcile_fa( &mut self, company_code: &str, as_of_date: NaiveDate, gl_asset_balance: Decimal, gl_accum_depr_balance: Decimal, assets: &[&FixedAssetRecord], ) -> (ReconciliationResult, ReconciliationResult)

Reconciles FA subledger to GL.

Source

pub fn reconcile_inventory( &mut self, company_code: &str, as_of_date: NaiveDate, gl_balance: Decimal, positions: &[&InventoryPosition], ) -> ReconciliationResult

Reconciles inventory subledger to GL.

Source

pub fn full_reconciliation( &mut self, company_code: &str, as_of_date: NaiveDate, gl_balances: &HashMap<String, Decimal>, ar_invoices: &[&ARInvoice], ap_invoices: &[&APInvoice], assets: &[&FixedAssetRecord], inventory_positions: &[&InventoryPosition], ) -> FullReconciliationReport

Performs full reconciliation for all subledgers.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V