rattail.db.model.vendors
¶
Data Models for Vendors
- class rattail.db.model.vendors.Vendor(**kwargs)[source]¶
Represents a vendor from which products are purchased by the store.
- abbreviation¶
Abbreviation for the vendor. Whereas presumably the
id
would never change, this abbreviation is expected to (possibly) change over time.
- future_costs¶
Sequence of future cost records for the vendor, i.e. which have yet to become “current” costs.
- id¶
“Official” string ID for the vendor. It is assumed / hoped that this will be shared across systems where possible.
- lead_time_days¶
The number of days expected to elapse between the order generation and receipt of goods. (This description is borrowed from the SIL standard.)
- order_interval_days¶
The number of days expected to elapse between repeated order placement. (This description is borrowed from the SIL standard.)
- terms¶
Payment terms for the vendor, if applicable.
- class rattail.db.model.vendors.VendorContact(**kwargs)[source]¶
Represents a point of contact (e.g. salesperson) for a vendor.
- class rattail.db.model.vendors.VendorEmailAddress(**kwargs)[source]¶
Represents an email address associated with a vendor.
- invalid¶
Flag indicating whether the email address is known to be invalid. Defaults to NULL, meaning the validity is “not known”.
- class rattail.db.model.vendors.VendorPhoneNumber(**kwargs)[source]¶
Represents a phone (or fax) number associated with a vendor.
- class rattail.db.model.vendors.VendorSampleFile(**kwargs)[source]¶
Contains a vendor sample file, e.g. catalog or invoice.
- bytes¶
Raw bytes for the file.
- created_by¶
Reference to the user who created the record.
- effective_date¶
When the sample file becomes relevant, if applicable.
- file_type¶
Type of file this is, e.g. catalog or invoice.
- filename¶
Name of the file.
- notes¶
Arbitrary notes pertaining to the file.
- vendor¶
Reference to the vendor associated with the sample file (if any).