NAME
Interchange6::Schema::Result::Inventory
DESCRIPTION
The Inventory class is used to store current stock levels for products.
ACCESSORS
sku
The SKU of the product.
Primary key and foreign constraint on "sku" in Interchange6::Schema::Result::Product via "product" relationship.
quantity
This is the quantity currently held in stock.
Defaults to 0.
RELATIONS
product
Type: belongs_to
Related object: Interchange6::Schema::Result::Product
METHODS
decrement( $quantity )
Atomically reduce "quantity" by argument or by 1 if argument is not defined. Returns new value of "quantity".
increment( $quantity )
Atomically increase "quantity" by argument or by 1 if argument is not defined. Returns new value of "quantity".