Class s.p.s.I.IFS9000I(SerialBase):

Part of stoqdrivers.printers.sweda.IFS9000I View In Hierarchy

No class docstring
Method __init__ Undocumented
Method setup_no_fiscal_legends Undocumented
Method setup_coupon_header Call this method only in non-fiscal mode.
Method setup_clock Undocumented
Method setup_sale_parameters Undocumented
Method setup_printer_user Undocumented
Method setup_sale_data Call this method only in non-fiscal mode.
Method _check_integer Undocumented
Method _format_datetime Undocumented
Method _format_string Undocumented
Method _format_float
  • char_len is the maximum amount of character allowed for value
Method _format_price Undocumented
Method _format_quantity Undocumented
Method _format_total Undocumented
Method get_transaction_status Undocumented
Method get_totalizers Undocumented
Method send_command Send a command to printer.
Method handle_error Undocumented
Method get_last_item_id Undocumented
Method get_totalized_value Undocumented
Method get_remainder_value Undocumented
Method _get_coupon_number Undocumented
Method _open_voucher Undocumented
Method _add_value_to_counter Undocumented
Method coupon_identify_customer Undocumented
Method coupon_is_customer_identified Undocumented
Method coupon_open Undocumented
Method coupon_add_item Undocumented
Method coupon_cancel_item Undocumented
Method coupon_add_surcharge

Valid surcharge types are:


Method coupon_cancel Undocumented
Method cancel_last_coupon Cancel the last non fiscal coupon or the last sale.
Method coupon_add_payment Undocumented
Method coupon_totalize Print the total value of the coupon.
Method coupon_close Undocumented
Method close_till This is 'reduce Z' in Brazil
Method summarize This is 'read X' in Brazil
Method till_add_cash Undocumented
Method till_remove_cash Undocumented
Method till_read_memory Undocumented
Method till_read_memory_by_reductions Undocumented
Method get_status Undocumented
Method get_capabilities Undocumented
Method get_constants Undocumented
Method discount_coupon Undocumented
Method discount_item Undocumented
Method print_printer_parameters Undocumented

Inherited from SerialBase:

Method set_port Undocumented
Method get_port Undocumented
Method fileno Undocumented
Method writeline Undocumented
Method write Undocumented
Method read Undocumented
Method readline Undocumented
def __init__(self, port, consts=None):
Undocumented
def setup_no_fiscal_legends(self):
Undocumented
def setup_coupon_header(self, jump_lines_number, header_data):
Call this method only in non-fiscal mode. header_data is a list of 5 strings of 40 characters which will be added in the header of all the printed coupons.
def setup_clock(self):
Undocumented
def setup_sale_parameters(self, use_cents, has_title):
Undocumented
def setup_printer_user(self, user_cnpj, user_state_reg):
Undocumented
def setup_sale_data(self):
Call this method only in non-fiscal mode.
def _check_integer(self, value, arg_name):
Undocumented
def _format_datetime(self, value):
Undocumented
def _format_string(self, value, arg_len, arg_name='', left_justify=False):
Undocumented
def _format_float(self, value, arg_name, char_len, dec_separator, zero_digits):
  • char_len is the maximum amount of character allowed for value argument.
  • dec_separator is the number of decimal separator digits
  • zero_digits is the number of zeros we should add in the beggining of the argument value.
def _format_price(self, price, arg_name):
Undocumented
def _format_quantity(self, quantity, arg_name):
Undocumented
def _format_total(self, total, arg_name):
Undocumented
def get_transaction_status(self):
Undocumented
def get_totalizers(self, type='1'):
Undocumented
def send_command(self, command, *params):
Send a command to printer.

command: Is the command in string format params: a list of parameter to this command (all parameters must be string)

def handle_error(self, reply):
Undocumented
def get_last_item_id(self):
Undocumented
def get_totalized_value(self):
Undocumented
def get_remainder_value(self):
Undocumented
def _get_coupon_number(self):
Undocumented
def _open_voucher(self, index):
Undocumented
def _add_value_to_counter(self, value, counter):
Undocumented
def coupon_identify_customer(self, customer, address, document):
Undocumented
def coupon_is_customer_identified(self):
Undocumented
def coupon_open(self):
Undocumented
def coupon_add_item(self, code, description, price, taxcode, quantity=Decimal('1.0'), unit=UnitType.EMPTY, discount=Decimal('0.0'), surcharge=Decimal('0.0'), unit_desc=''):
Undocumented
def coupon_cancel_item(self, item_id):
Undocumented
def coupon_add_surcharge(self, item_id, value, description):
Valid surcharge types are:

 "51": "surcharge"

The arguments item_id and descriptions only exit for API compatibility

def coupon_cancel(self):
Undocumented
def cancel_last_coupon(self):
Cancel the last non fiscal coupon or the last sale.
def coupon_add_payment(self, payment_method, value, description='', custom_pm=''):
Undocumented
def coupon_totalize(self, discount=Decimal('0.0'), surcharge=Decimal('0.0'), taxcode=TaxType.NONE):
Print the total value of the coupon. The taxcode argument is useless here and exists only for API compatibility
def coupon_close(self, message=''):
Undocumented
def close_till(self, previous_day=False):
This is 'reduce Z' in Brazil
def summarize(self):
This is 'read X' in Brazil
def till_add_cash(self, value):
Undocumented
def till_remove_cash(self, value):
Undocumented
def till_read_memory(self, start, end):
Undocumented
def till_read_memory_by_reductions(self, start, end):
Undocumented
def get_status(self):
Undocumented
def get_capabilities(self):
Undocumented
def get_constants(self):
Undocumented
def discount_coupon(self, value):
Undocumented
def discount_item(self, value):
Undocumented
def print_printer_parameters(self):
Undocumented
API Documentation for Stoqdrivers, generated by pydoctor at 2009-04-30 17:14:35.