Class s.d.c.CommissionSource(Domain):

Part of stoqlib.domain.commission View In Hierarchy

Commission Source object implementation

A CommissionSource is tied to a Category or Sellable, it's used to determine the value of a commission for a certain item which is sold. There are two different commission values defined here, one which is used when the item is sold directly, eg one installment and another one which is used when the item is sold in installments.

Instance Variablescategorythe sellable category
sellablethe sellable

The category and the sellable should not exist when sellable exists and the opposite is true.

Class Variablesdirect_valuethe commission value to be used in one-installment sales
installments_valuethe commission value to be used in more than one installments sales

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.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.