pub struct P2PFlowConfig {Show 13 fields
pub enabled: bool,
pub three_way_match_rate: f64,
pub partial_delivery_rate: f64,
pub price_variance_rate: f64,
pub max_price_variance_percent: f64,
pub quantity_variance_rate: f64,
pub average_po_to_gr_days: u32,
pub average_gr_to_invoice_days: u32,
pub average_invoice_to_payment_days: u32,
pub line_count_distribution: DocumentLineCountDistribution,
pub payment_behavior: P2PPaymentBehaviorConfig,
pub over_delivery_rate: Option<f64>,
pub early_payment_discount_rate: Option<f64>,
}Expand description
P2P (Procure-to-Pay) flow configuration.
Fields§
§enabled: boolEnable P2P document flow generation
three_way_match_rate: f64Three-way match success rate (PO-GR-Invoice)
partial_delivery_rate: f64Rate of partial deliveries
price_variance_rate: f64Rate of price variances between PO and Invoice
max_price_variance_percent: f64Maximum price variance percentage
quantity_variance_rate: f64Rate of quantity variances between PO/GR and Invoice
average_po_to_gr_days: u32Average days from PO to goods receipt
average_gr_to_invoice_days: u32Average days from GR to invoice
average_invoice_to_payment_days: u32Average days from invoice to payment
line_count_distribution: DocumentLineCountDistributionPO line count distribution
payment_behavior: P2PPaymentBehaviorConfigPayment behavior configuration
over_delivery_rate: Option<f64>Rate of over-deliveries (quantity received exceeds PO quantity)
early_payment_discount_rate: Option<f64>Rate of early payment discounts being taken
Trait Implementations§
Source§impl Clone for P2PFlowConfig
impl Clone for P2PFlowConfig
Source§fn clone(&self) -> P2PFlowConfig
fn clone(&self) -> P2PFlowConfig
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 P2PFlowConfig
impl Debug for P2PFlowConfig
Source§impl Default for P2PFlowConfig
impl Default for P2PFlowConfig
Source§impl<'de> Deserialize<'de> for P2PFlowConfig
impl<'de> Deserialize<'de> for P2PFlowConfig
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 P2PFlowConfig
impl RefUnwindSafe for P2PFlowConfig
impl Send for P2PFlowConfig
impl Sync for P2PFlowConfig
impl Unpin for P2PFlowConfig
impl UnsafeUnpin for P2PFlowConfig
impl UnwindSafe for P2PFlowConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.