Part of stoqlib.domain.payment.payment View In Hierarchy
The payment representation in Stoq.
Importante attributes:
Method | _check_status | Undocumented |
Method | _create | Undocumented |
Class Method | delete | Undocumented |
Method | bank | Get a BankAccount instance |
Method | get_status_str | Undocumented |
Method | get_days_late | Undocumented |
Method | set_pending | Set a STATUS_PREVIEW payment as STATUS_PENDING. This also means |
Method | set_not_paid | Set a STATUS_PAID payment as STATUS_PENDING. This requires clearing |
Method | pay | Pay the current payment set its status as STATUS_PAID |
Method | cancel | Undocumented |
Method | get_payable_value | Returns the calculated payment value with the daily penalty. |
Method | get_penalty | Calculate the penalty in an absolute value |
Method | get_interest | Calculate the interest in an absolute value |
Method | is_paid | Check if the payment is paid. |
Method | is_pending | Check if the payment is pending. |
Method | is_preview | Check if the payment is in preview state |
Method | is_cancelled | Check if the payment was cancelled. |
Method | get_paid_date_string | Get a paid date string |
Method | get_open_date_string | Get a open date string |
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. |
Returns | a BankAccount instance, if the payment method does not provide a bank account. |
Parameters | change_entry | an PaymentChangeHistory object, that will hold the changes information |
Parameters | date | date of payment |
Returns | penalty (type: currency ) |
Parameters | date | date of payment |
Returns | interest (type: currency ) |
Returns | True if the payment is pending, otherwise False |
Returns | True if the payment is paid, otherwise False |
Returns | True if the payment was cancelled, otherwise False. |