This extension adds a more or less generic purchasing system to Rattail.
In addition to providing extra classes (listed below), the purchasing extension also adds the following attribute to the core rattail.Product class:
A list of rattail.ProductSource instances for the product.
Represents a source from which a product may be obtained via purchase.
A reference to the rattail.Product provided by this source.
A reference to the rattail.Vendor from which this source is available.
A vendor-specific SKU to be used when ordering product via this source.
Quantity of the product which is represented by this source.
The suggested retail price for the product, specific to this source.
The per-unit cost of the product when purchased via this source.
Date and time when this source’s cost was last recorded. (For use in catalog data import tracking.)
Date and time when this source’s cost will expire, if known.
Represents an actual purchase order.
An integer field which may contain a human-friendly ID for the purchase order.
A reference to the rattail.Vendor to whom this purchase order is submitted.
A reference to the rattail.Employee who is assembling the purchase order.
A reference to the rattail.Employee who is confirming the purchase order.
Date and time when the order was submitted to the vendor.
Date and time when the order is expected to arrive, if known.
Date and time when the order is received.
A reference to the rattail.Employee who receives the purchase order.
A list of rattail.PurchaseOrderProduct instances belonging to the purchase order.
Represents a line item within a purchase order.
A reference to the rattail.Product being ordered.
A reference to the specific rattail.ProductSource being ordered.
Quantity of the product being ordered. This value should be interpreted relative to PurchaseOrderProduct.product_source.
Quantity of the product which is received, for comparison to PurchaseOrderProduct.quantity_ordered.