Class s.d.p.ProductHistory(Domain):

Part of stoqlib.domain.product View In Hierarchy

Stores product history, such as sold, received, transfered and retained quantities.
Class Method add_sold_item Adds a sold item, populates the ProductHistory table using a
Class Method add_received_item Adds a received_item, populates the ProductHistory table using a
Class Method add_transfered_item Adds a transfered_item, populates the ProductHistory table using a
Class Method add_retained_item Adds a retained_item, populates the ProductHistory table using a

Inherited from Domain:

Method __init__ Undocumented
Method _create Undocumented
Method user Undocumented
Class Method iselect Like select, but search on the adapter implementing the interface iface
Class Method iselectBy Like selectBy, but search on the adapter implementing the interface iface
Class Method iselectOne Like selectOne, but search on the adapter implementing the interface iface
Class Method iselectOneBy Like selectOneBy, but search on the adapter implementing the interface iface
Class Method iget Like get, but gets on the adapter implementing the interface iface

Inherited from AbstractModel (via Domain, BaseDomain):

Method __ne__ Undocumented
Method __eq__ Undocumented
Method _SO_setValue Undocumented
Method clone Get a persistent copy of an existent object. Remember that we can
Method get_connection Undocumented

Inherited from AdaptableORMObject (via Domain):

Class Method registerFacet Registers a facet for class cls.

Inherited from Adaptable (via Domain, AdaptableORMObject):

Class Method getFacetType Fetches a facet type associated with an interface, or raise
Class Method getFacetTypes Returns facet classes for this object
Method addFacet Adds a facet implementing iface for the current object
Method removeFacet Removes a facet from the current object
Method getFacets Gets a list of facets assoicated with the current object.
@classmethod
def add_sold_item(cls, conn, branch, product_sellable_item):
Adds a sold item, populates the ProductHistory table using a product_sellable_item created during a sale.
Parametersconna database connection
branchthe branch
product_sellable_itemthe sellable item for the sold
@classmethod
def add_received_item(cls, conn, branch, receiving_order_item):
Adds a received_item, populates the ProductHistory table using a receiving_order_item created during a purchase
Parametersconna database connection
branchthe branch
receiving_order_itemthe item received for puchase
@classmethod
def add_transfered_item(cls, conn, branch, transfer_order_item):
Adds a transfered_item, populates the ProductHistory table using a transfered_order_item created during a transfer order
Parametersconna database connection
branchthe source branch
transfer_order_itemthe item transfered from source branch
@classmethod
def add_retained_item(cls, conn, branch, retained_item):
Adds a retained_item, populates the ProductHistory table using a product_retention_history created during a product retention
Parametersconna database connection
branchthe source branch
retained_itema ProductRetentionHistory instance
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.