pub struct CustomerArAging {
pub customer_id: Uuid,
pub customer_name: Option<String>,
pub customer_email: Option<String>,
pub current: Decimal,
pub days_1_30: Decimal,
pub days_31_60: Decimal,
pub days_61_90: Decimal,
pub days_over_90: Decimal,
pub total_outstanding: Decimal,
pub invoice_count: i32,
pub oldest_invoice_date: Option<DateTime<Utc>>,
pub last_payment_date: Option<DateTime<Utc>>,
}Expand description
AR aging by customer
Fields§
§customer_id: Uuid§customer_name: Option<String>§customer_email: Option<String>§current: Decimal§days_1_30: Decimal§days_31_60: Decimal§days_61_90: Decimal§days_over_90: Decimal§total_outstanding: Decimal§invoice_count: i32§oldest_invoice_date: Option<DateTime<Utc>>§last_payment_date: Option<DateTime<Utc>>Implementations§
Source§impl CustomerArAging
impl CustomerArAging
Sourcepub fn total_overdue(&self) -> Decimal
pub fn total_overdue(&self) -> Decimal
Returns the total overdue amount
Sourcepub fn worst_aging_bucket(&self) -> AgingBucket
pub fn worst_aging_bucket(&self) -> AgingBucket
Returns the worst aging bucket with a balance
Trait Implementations§
Source§impl Clone for CustomerArAging
impl Clone for CustomerArAging
Source§fn clone(&self) -> CustomerArAging
fn clone(&self) -> CustomerArAging
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 moreSource§impl Debug for CustomerArAging
impl Debug for CustomerArAging
Source§impl<'de> Deserialize<'de> for CustomerArAging
impl<'de> Deserialize<'de> for CustomerArAging
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomerArAging, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomerArAging, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CustomerArAging
impl Serialize for CustomerArAging
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CustomerArAging
impl RefUnwindSafe for CustomerArAging
impl Send for CustomerArAging
impl Sync for CustomerArAging
impl Unpin for CustomerArAging
impl UnsafeUnpin for CustomerArAging
impl UnwindSafe for CustomerArAging
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