Class s.d.s.SellableCategory(Domain):

Part of stoqlib.domain.sellable View In Hierarchy

Sellable category. This class can represents a sellable's category as well its base category.
Class VariablesdescriptionThe category description
suggested_markupDefine the suggested markup when calculating the sellable's price.
salesperson_comissionA percentage comission suggested for all the sales which products belongs to this category.
categorybase category of this category, None for base categories themselves
Method get_commission Returns the commission for this category.
Method get_markup Returns the markup for this category.
Method get_tax_constant Returns the tax constant for this category.
Method get_description Undocumented
Method get_full_description Undocumented
Method check_category_description_exists Undocumented
Class Method get_base_categories Returns all available base categories

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.
def get_commission(self):
Returns the commission for this category. If it's unset, return the value of the base category, if any
Returnsthe commission
def get_markup(self):
Returns the markup for this category. If it's unset, return the value of the base category, if any
Returnsthe markup
def get_tax_constant(self):
Returns the tax constant for this category. If it's unset, return the value of the base category, if any
Returnsthe tax constant
def get_description(self):
Undocumented
def get_full_description(self):
Undocumented
def check_category_description_exists(self, description, conn):
Undocumented
@classmethod
def get_base_categories(cls, conn):
Returns all available base categories
Parametersconna database connection
Returnscategories
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.