use super::product;
pub trait WarehouseItem<SKU>: product::ProductLine<SKU> {
const MIN_ORDER_SIZE: u32 = 10;
fn restock(&mut self, amount: u32);
fn sell(&mut self, amount: u32);
fn set_quantity(&mut self, amount: u32);
fn inventory_min_quantity_if_restocked(&self) -> u32 {
self.get_quantity() + Self::MIN_ORDER_SIZE
}
fn inventory_min_restock(&mut self) {
self.set_quantity(Self::MIN_ORDER_SIZE + self.get_quantity());
}
}