pub struct DocumentFlowLinker { /* private fields */ }Expand description
Links document flow invoices to subledger records.
Implementations§
Source§impl DocumentFlowLinker
impl DocumentFlowLinker
Sourcepub fn with_vendor_names(self, names: HashMap<String, String>) -> Self
pub fn with_vendor_names(self, names: HashMap<String, String>) -> Self
Set vendor name lookup map for realistic AP invoice vendor names.
Sourcepub fn with_customer_names(self, names: HashMap<String, String>) -> Self
pub fn with_customer_names(self, names: HashMap<String, String>) -> Self
Set customer name lookup map for realistic AR invoice customer names.
Sourcepub fn create_ap_invoice_from_vendor_invoice(
&mut self,
vendor_invoice: &VendorInvoice,
) -> APInvoice
pub fn create_ap_invoice_from_vendor_invoice( &mut self, vendor_invoice: &VendorInvoice, ) -> APInvoice
Convert a document flow VendorInvoice to an AP subledger APInvoice.
This ensures that vendor invoices from the P2P flow create corresponding AP subledger records for complete data coherence.
Sourcepub fn create_ar_invoice_from_customer_invoice(
&mut self,
customer_invoice: &CustomerInvoice,
) -> ARInvoice
pub fn create_ar_invoice_from_customer_invoice( &mut self, customer_invoice: &CustomerInvoice, ) -> ARInvoice
Convert a document flow CustomerInvoice to an AR subledger ARInvoice.
This ensures that customer invoices from the O2C flow create corresponding AR subledger records for complete data coherence.
Sourcepub fn batch_create_ap_invoices(
&mut self,
vendor_invoices: &[VendorInvoice],
) -> Vec<APInvoice>
pub fn batch_create_ap_invoices( &mut self, vendor_invoices: &[VendorInvoice], ) -> Vec<APInvoice>
Batch convert multiple vendor invoices to AP invoices.
Sourcepub fn batch_create_ar_invoices(
&mut self,
customer_invoices: &[CustomerInvoice],
) -> Vec<ARInvoice>
pub fn batch_create_ar_invoices( &mut self, customer_invoices: &[CustomerInvoice], ) -> Vec<ARInvoice>
Batch convert multiple customer invoices to AR invoices.
Trait Implementations§
Source§impl Default for DocumentFlowLinker
impl Default for DocumentFlowLinker
Source§fn default() -> DocumentFlowLinker
fn default() -> DocumentFlowLinker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocumentFlowLinker
impl RefUnwindSafe for DocumentFlowLinker
impl Send for DocumentFlowLinker
impl Sync for DocumentFlowLinker
impl Unpin for DocumentFlowLinker
impl UnsafeUnpin for DocumentFlowLinker
impl UnwindSafe for DocumentFlowLinker
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> 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.