pub struct DocumentChainManager { /* private fields */ }Expand description
Document Chain Manager for coordinated P2P and O2C generation.
Implementations§
Source§impl DocumentChainManager
impl DocumentChainManager
Sourcepub fn with_config(seed: u64, config: DocumentChainManagerConfig) -> Self
pub fn with_config(seed: u64, config: DocumentChainManagerConfig) -> Self
Create a new document chain manager with custom configuration.
Sourcepub fn generate_flows(
&mut self,
company_code: &str,
total_chains: usize,
vendors: &VendorPool,
customers: &CustomerPool,
materials: &MaterialPool,
date_range: (NaiveDate, NaiveDate),
fiscal_year: u16,
created_by: &str,
) -> GeneratedDocumentFlows
pub fn generate_flows( &mut self, company_code: &str, total_chains: usize, vendors: &VendorPool, customers: &CustomerPool, materials: &MaterialPool, date_range: (NaiveDate, NaiveDate), fiscal_year: u16, created_by: &str, ) -> GeneratedDocumentFlows
Generate document flows for a company.
Sourcepub fn generate_balanced_flows(
&mut self,
chains_per_type: usize,
company_code: &str,
vendors: &VendorPool,
customers: &CustomerPool,
materials: &MaterialPool,
date_range: (NaiveDate, NaiveDate),
fiscal_year: u16,
created_by: &str,
) -> GeneratedDocumentFlows
pub fn generate_balanced_flows( &mut self, chains_per_type: usize, company_code: &str, vendors: &VendorPool, customers: &CustomerPool, materials: &MaterialPool, date_range: (NaiveDate, NaiveDate), fiscal_year: u16, created_by: &str, ) -> GeneratedDocumentFlows
Generate balanced document flows (equal P2P and O2C).
Sourcepub fn generate_multi_company_flows(
&mut self,
company_codes: &[String],
chains_per_company: usize,
vendors_by_company: &HashMap<String, VendorPool>,
customers_by_company: &HashMap<String, CustomerPool>,
materials: &MaterialPool,
date_range: (NaiveDate, NaiveDate),
fiscal_year: u16,
created_by: &str,
) -> Vec<GeneratedDocumentFlows>
pub fn generate_multi_company_flows( &mut self, company_codes: &[String], chains_per_company: usize, vendors_by_company: &HashMap<String, VendorPool>, customers_by_company: &HashMap<String, CustomerPool>, materials: &MaterialPool, date_range: (NaiveDate, NaiveDate), fiscal_year: u16, created_by: &str, ) -> Vec<GeneratedDocumentFlows>
Generate flows for multiple company codes.
Sourcepub fn p2p_generator(&mut self) -> &mut P2PGenerator
pub fn p2p_generator(&mut self) -> &mut P2PGenerator
Get reference to P2P generator for direct access.
Sourcepub fn o2c_generator(&mut self) -> &mut O2CGenerator
pub fn o2c_generator(&mut self) -> &mut O2CGenerator
Get reference to O2C generator for direct access.
Auto Trait Implementations§
impl Freeze for DocumentChainManager
impl RefUnwindSafe for DocumentChainManager
impl Send for DocumentChainManager
impl Sync for DocumentChainManager
impl Unpin for DocumentChainManager
impl UnwindSafe for DocumentChainManager
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