pub struct ReconciliationStatus {
pub company_code: String,
pub gl_account: String,
pub subledger_type: SubledgerType,
pub as_of_date: NaiveDate,
pub gl_balance: Decimal,
pub subledger_balance: Decimal,
pub difference: Decimal,
pub is_reconciled: bool,
pub reconciled_at: DateTime<Utc>,
pub unreconciled_items: Vec<UnreconciledItem>,
}Expand description
Reconciliation status between subledger and GL.
Fields§
§company_code: StringCompany code.
gl_account: StringGL control account.
subledger_type: SubledgerTypeSubledger type.
as_of_date: NaiveDateAs-of date.
gl_balance: DecimalGL balance.
subledger_balance: DecimalSubledger balance.
difference: DecimalDifference.
is_reconciled: boolIs reconciled (within tolerance).
reconciled_at: DateTime<Utc>Reconciliation timestamp.
unreconciled_items: Vec<UnreconciledItem>Unreconciled items.
Implementations§
Source§impl ReconciliationStatus
impl ReconciliationStatus
Sourcepub fn new(
company_code: String,
gl_account: String,
subledger_type: SubledgerType,
as_of_date: NaiveDate,
gl_balance: Decimal,
subledger_balance: Decimal,
tolerance: Decimal,
) -> Self
pub fn new( company_code: String, gl_account: String, subledger_type: SubledgerType, as_of_date: NaiveDate, gl_balance: Decimal, subledger_balance: Decimal, tolerance: Decimal, ) -> Self
Creates new reconciliation status.
Sourcepub fn add_unreconciled_item(&mut self, item: UnreconciledItem)
pub fn add_unreconciled_item(&mut self, item: UnreconciledItem)
Adds an unreconciled item.
Trait Implementations§
Source§impl Clone for ReconciliationStatus
impl Clone for ReconciliationStatus
Source§fn clone(&self) -> ReconciliationStatus
fn clone(&self) -> ReconciliationStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReconciliationStatus
impl Debug for ReconciliationStatus
Source§impl<'de> Deserialize<'de> for ReconciliationStatus
impl<'de> Deserialize<'de> for ReconciliationStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReconciliationStatus
impl RefUnwindSafe for ReconciliationStatus
impl Send for ReconciliationStatus
impl Sync for ReconciliationStatus
impl Unpin for ReconciliationStatus
impl UnwindSafe for ReconciliationStatus
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