pub enum APAgingBucket {
Current,
Days1To30,
Days31To60,
Days61To90,
Over90Days,
}Expand description
AP Aging bucket (similar to AR but for payables).
Variants§
Current
Not yet due.
Days1To30
1-30 days overdue.
Days31To60
31-60 days overdue.
Days61To90
61-90 days overdue.
Over90Days
Over 90 days overdue.
Implementations§
Source§impl APAgingBucket
impl APAgingBucket
Sourcepub fn all() -> Vec<APAgingBucket>
pub fn all() -> Vec<APAgingBucket>
Gets all buckets in order.
Sourcepub fn from_days_overdue(days: i64) -> Self
pub fn from_days_overdue(days: i64) -> Self
Determines bucket from days overdue.
Trait Implementations§
Source§impl Clone for APAgingBucket
impl Clone for APAgingBucket
Source§fn clone(&self) -> APAgingBucket
fn clone(&self) -> APAgingBucket
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 APAgingBucket
impl Debug for APAgingBucket
Source§impl<'de> Deserialize<'de> for APAgingBucket
impl<'de> Deserialize<'de> for APAgingBucket
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
Source§impl Hash for APAgingBucket
impl Hash for APAgingBucket
Source§impl PartialEq for APAgingBucket
impl PartialEq for APAgingBucket
Source§impl Serialize for APAgingBucket
impl Serialize for APAgingBucket
impl Copy for APAgingBucket
impl Eq for APAgingBucket
impl StructuralPartialEq for APAgingBucket
Auto Trait Implementations§
impl Freeze for APAgingBucket
impl RefUnwindSafe for APAgingBucket
impl Send for APAgingBucket
impl Sync for APAgingBucket
impl Unpin for APAgingBucket
impl UnwindSafe for APAgingBucket
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.