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

Part of stoqlib.domain.purchase View In Hierarchy

This class stores information of the purchased items.

Importante attributes

Method _create Undocumented
Method get_total Undocumented
Method get_received_total Undocumented
Method has_been_received Undocumented
Method has_partial_received Undocumented
Method get_pending_quantity Undocumented
Method get_quantity_as_string Undocumented
Method get_quantity_received_as_string Undocumented
Class Method get_ordered_quantity Returns the quantity already ordered of a given sellable.

Inherited from Domain:

Method __init__ 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.
def _create(self, id, **kw):
Undocumented
def get_total(self):
Undocumented
def get_received_total(self):
Undocumented
def has_been_received(self):
Undocumented
def has_partial_received(self):
Undocumented
def get_pending_quantity(self):
Undocumented
def get_quantity_as_string(self):
Undocumented
def get_quantity_received_as_string(self):
Undocumented
@classmethod
def get_ordered_quantity(cls, conn, sellable):
Returns the quantity already ordered of a given sellable.
Parametersconna database connection
sellablethe sellable we want to know the quantity ordered.
Returnsthe quantity already ordered of a given sellable or zero if no quantity have been ordered.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.