pub struct CycleCountGenerator { /* private fields */ }Expand description
Generates CycleCount instances with realistic variance distributions
and adjustment patterns.
Implementations§
Source§impl CycleCountGenerator
impl CycleCountGenerator
Sourcepub fn generate(
&mut self,
company_code: &str,
material_ids: &[(String, String)],
count_date: NaiveDate,
items_per_count: usize,
) -> CycleCount
pub fn generate( &mut self, company_code: &str, material_ids: &[(String, String)], count_date: NaiveDate, items_per_count: usize, ) -> CycleCount
Generate a single cycle count event covering the specified materials.
§Arguments
company_code- Company code for the cycle count.material_ids- Available materials as(material_id, storage_location)tuples.count_date- Date the count is performed.items_per_count- Number of items to include in this count.
Auto Trait Implementations§
impl !Freeze for CycleCountGenerator
impl RefUnwindSafe for CycleCountGenerator
impl Send for CycleCountGenerator
impl Sync for CycleCountGenerator
impl Unpin for CycleCountGenerator
impl UnwindSafe for CycleCountGenerator
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