pub struct LocationOffering {
pub location_id: LocationId,
pub product: Product,
pub status: OfferingStatus,
pub usage: Usage,
pub pos: Policy,
pub inventory: Policy,
pub reorder: Policy,
}Expand description
Location-specific product offering with POS, inventory, and reorder policies attached.
Fields§
§location_id: LocationIdLocation whose catalog, shelf policy, and inventory counts own this offering.
product: ProductSKU and category being evaluated for sale, recommendation, inventory, and reorder work.
status: OfferingStatusLocation status that blocks inactive or discontinued items from customer-sale drafts.
usage: UsageUsage policy deciding whether the product is customer-sellable, in-house only, or both.
pos: PolicyPOS policy controlling checkout sources and price-exception approval.
inventory: PolicyInventory policy controlling stock checks and low-stock attention.
reorder: PolicyReorder policy controlling manager tasks, vendor notices, or no-action outcomes.
Implementations§
Source§impl LocationOffering
impl LocationOffering
Sourcepub fn builder() -> LocationOfferingBuilder
pub fn builder() -> LocationOfferingBuilder
Create an instance of LocationOffering using the builder syntax
Source§impl LocationOffering
impl LocationOffering
Sourcepub fn can_be_sold_to_customer(&self) -> bool
pub fn can_be_sold_to_customer(&self) -> bool
Reports whether the product is active and customer-sellable at this location.
Sourcepub fn has_available_sale_units(&self, quantity: Quantity) -> bool
pub fn has_available_sale_units(&self, quantity: Quantity) -> bool
Checks tracked inventory before allowing a POS sale draft for the requested quantity.
Trait Implementations§
Source§impl Clone for LocationOffering
impl Clone for LocationOffering
Source§fn clone(&self) -> LocationOffering
fn clone(&self) -> LocationOffering
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more