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 with_employee_pool(self, employee_ids: Vec<String>) -> Self
pub fn with_employee_pool(self, employee_ids: Vec<String>) -> Self
Set the employee ID pool used for counter and supervisor IDs.
When non-empty, counter_id and supervisor_id are picked from this
pool instead of fabricated WH-{:02} / SUP-{:02} strings.
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 UnsafeUnpin 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