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

Part of stoqlib.domain.commission View In Hierarchy

Commission object implementation

A Commission is the commission received by a SalesPerson for a specific payment made by a Sale. One instance of this is created for each payment for each sale.

Instance Variablessalespersonwho sold the sale
salethe sale
payment
Class VariablesDIRECTuse direct commission to calculate the commission amount
INSTALLMENTSuse installments commission to calculate the commission amount
valueThe commission amount
Method _init Undocumented
Method _calculate_value Calculates the commission amount to be paid
Method _get_payment_percentage Return the payment percentage of sale
Method _get_commission Return the properly commission percentage to be used to
Method _get_category_commission Undocumented

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 _init(self, *args, **kwargs):
Undocumented
def _calculate_value(self):
Calculates the commission amount to be paid
def _get_payment_percentage(self):
Return the payment percentage of sale
def _get_commission(self, sellable):
Return the properly commission percentage to be used to calculate the commission amount, for a given sellable.
def _get_category_commission(self, category):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.