Class s.d.s.SaleAdaptToPaymentTransaction(object):

Part of stoqlib.domain.sale View In Hierarchy

No class docstring
Method __init__ Undocumented
Method confirm Undocumented
Method pay Undocumented
Method cancel Undocumented
Method return_ Undocumented
Method _create_commission Undocumented
Method _add_inpayments Undocumented
Method _create_commission_at_confirm Undocumented
Method _get_commission_type Undocumented
Method _already_have_commission Undocumented
Method _restore_commission Undocumented
Method _payback_paid_payments Undocumented
Method _revert_fiscal_entry Undocumented
Method _get_pm_commission_total Return the payment method commission total. Usually credit
Method _get_icms_total A Brazil-specific method
Method _get_iss_total A Brazil-specific method
Method _has_iss_entry Undocumented
Method _has_icms_entry Undocumented
Method _get_average_difference Undocumented
Method _get_iss_entry Undocumented
Method _create_fiscal_entries A Brazil-specific method
def __init__(self, sale):
Undocumented
def confirm(self):
Undocumented
def pay(self):
Undocumented
def cancel(self):
Undocumented
def return_(self, renegotiation):
Undocumented
def _create_commission(self, payment):
Undocumented
def _add_inpayments(self):
Undocumented
def _create_commission_at_confirm(self):
Undocumented
def _get_commission_type(self):
Undocumented
def _already_have_commission(self, payment):
Undocumented
def _restore_commission(self, payment):
Undocumented
def _payback_paid_payments(self, penalty_value):
Undocumented
def _revert_fiscal_entry(self, invoice_number):
Undocumented
def _get_pm_commission_total(self):
Return the payment method commission total. Usually credit card payment method is the most common method which uses commission
def _get_icms_total(self, av_difference):
A Brazil-specific method Calculates the icms total value
Parametersav_differencethe average difference for the sale items. it means the average discount or surcharge applied over all sale items
def _get_iss_total(self, av_difference):
A Brazil-specific method Calculates the iss total value
Parametersav_differencethe average difference for the sale items. it means the average discount or surcharge applied over all sale items
def _has_iss_entry(self):
Undocumented
def _has_icms_entry(self):
Undocumented
def _get_average_difference(self):
Undocumented
def _get_iss_entry(self):
Undocumented
def _create_fiscal_entries(self):
A Brazil-specific method Create new ICMS and ISS entries in the fiscal book for a given sale.

Important: freight and interest are not part of the base value for ICMS. Only product values and surcharge which applies increasing the product totals are considered here.

API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.