Class s.d.p.g.PaymentGroup(Domain):

Part of stoqlib.domain.payment.group View In Hierarchy

A base class for payment group adapters.
Method add_item Undocumented
Method remove_item Undocumented
Method get_items Undocumented
Method payments Undocumented
Method _get_paid_payments Undocumented
Method can_cancel Everything can be called
Method can_confirm Newly created payment groups can be confirmed
Method can_pay Confirmed payment groups can be paid
Method confirm Confirms the payment group
Method pay Pay all payments in the payment group
Method pay_money_payments Pay all money payments in the payment group
Method cancel Cancel all payments in the payment group
Method get_total_paid Undocumented
Method get_total_value Returns the sum of all payment values.
Method clear_unused Delete payments of preview status associated to the current
Method get_description Returns a small description for the payment group which will be
Method get_pending_payments Undocumented
Method get_parent Return the sale, purchase or renegotiation this group is part of
Method get_status_string Undocumented
Method get_total_discount Returns the sum of all payment discounts.
Method get_total_interest Returns the sum of all payment interests.
Method get_total_penalty Returns the sum of all payment penalties.

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.
@argcheck(Payment)
def add_item(self, payment):
Undocumented
@argcheck(Payment)
def remove_item(self, payment):
Undocumented
def get_items(self):
Undocumented
@property
def payments(self):
Undocumented
def _get_paid_payments(self):
Undocumented
def can_cancel(self):
Everything can be called
ReturnsTrue if the payment group can be cancelled, otherwise False
def can_confirm(self):
Newly created payment groups can be confirmed
ReturnsTrue if the payment group can be confirmed, otherwise False
def can_pay(self):
Confirmed payment groups can be paid
ReturnsTrue if the payment group can be paid, otherwise False
def confirm(self):
Confirms the payment group Confirming the payment group means that the customer has confirmed the transactions. All individual payments are set to pending.
def pay(self):
Pay all payments in the payment group
def pay_money_payments(self):
Pay all money payments in the payment group
def cancel(self):
Cancel all payments in the payment group
def get_total_paid(self):
Undocumented
def get_total_value(self):
Returns the sum of all payment values.
Returnsthe total payment value or zero.
def clear_unused(self):
Delete payments of preview status associated to the current payment_group. It can happen if user open and cancel this wizard.
def get_description(self):
Returns a small description for the payment group which will be used in payment descriptions
def get_pending_payments(self):
Undocumented
def get_parent(self):
Return the sale, purchase or renegotiation this group is part of
def get_status_string(self):
Undocumented
def get_total_discount(self):
Returns the sum of all payment discounts.
Returnsthe total payment discount or zero.
def get_total_interest(self):
Returns the sum of all payment interests.
Returnsthe total payment interest or zero.
def get_total_penalty(self):
Returns the sum of all payment penalties.
Returnsthe total payment penalty or zero.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.