Class s.p.b.M.MP25(SerialBase):

Part of stoqdrivers.printers.bematech.MP25 View In Hierarchy

Known subclasses: stoqdrivers.printers.bematech.MP20.MP20, stoqdrivers.printers.bematech.MP2100.MP2100

No class docstring
Method __init__ Undocumented
Method _reset Undocumented
Method _create_packet Create a 'pre-package' (command + params, basically) and involves
Method _read_reply Undocumented
Method _check_error Undocumented
Method _send_command Undocumented
Method _read_register Undocumented
Method _get_coupon_subtotal Undocumented
Method _get_last_item_id Undocumented
Method _get_coupon_number Undocumented
Method get_status Undocumented
Method _add_voucher Undocumented
Method _configure_payment_methods Undocumented
Method summarize Prints a summary of all sales of the day
Method close_till Close the till for the day, no other actions can be done after this
Method till_add_cash Undocumented
Method till_remove_cash Undocumented
Method till_read_memory Undocumented
Method _till_read_memory_to_serial Undocumented
Method till_read_memory_by_reductions Undocumented
Method coupon_identify_customer Undocumented
Method coupon_is_customer_identified Undocumented
Method coupon_open This needs to be called before anything else
Method coupon_cancel Can only be called when a coupon is opened. It needs to be possible
Method cancel_last_coupon Cancel the last non fiscal coupon or the last sale.
Method coupon_close This can only be called when the coupon is open, has items added,
Method coupon_add_item Undocumented
Method coupon_cancel_item Cancel an item added to coupon; if no item id is specified,
Method coupon_add_payment Undocumented
Method coupon_totalize Undocumented
Method get_payment_receipt_identifier Undocumented
Method _get_payment_description Undocumented
Method payment_receipt_open Undocumented
Method payment_receipt_print Undocumented
Method payment_receipt_close Undocumented
Method payment_receipt_print_duplicate Undocumented
Method get_capabilities Undocumented
Method get_constants Undocumented
Method query_status Undocumented
Method status_reply_complete Undocumented
Method get_serial Undocumented
Method get_ccf Undocumented
Method get_coo Undocumented
Method get_gnf Undocumented
Method get_crz Undocumented
Method get_tax_constants Undocumented
Method get_payment_constants Undocumented
Method get_sintegra Undocumented
Method get_firmware_version Return the firmware version
Method get_user_registration_info 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 _reset(self):
Undocumented
def _create_packet(self, command):
Create a 'pre-package' (command + params, basically) and involves it around STX, NB and CS:

  1     2           n           2

+-----+------+-----------------+----+ | STX | NB | 0x1C + command | CS | +-----+------+-----------------+----+

Where:

STX: 'Transmission Start' indicator byte NB: 2 bytes, big endian length of command + CS (2 bytes) CS: 2 bytes, big endian checksum for command

def _read_reply(self, size):
Undocumented
def _check_error(self, retval=None):
Undocumented
def _send_command(self, command, *args, **kwargs):
Undocumented
def _read_register(self, reg):
Undocumented
def _get_coupon_subtotal(self):
Undocumented
def _get_last_item_id(self):
Undocumented
def _get_coupon_number(self):
Undocumented
def get_status(self, val=None):
Undocumented
def _add_voucher(self, type, value):
Undocumented
def _configure_payment_methods(self):
Undocumented
def summarize(self):
Prints a summary of all sales of the day
def close_till(self, previous_day=False):
Close the till for the day, no other actions can be done after this is called.
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_to_serial(self, start, end):
Undocumented
def till_read_memory_by_reductions(self, start, end):
Undocumented
def coupon_identify_customer(self, customer, address, document):
Undocumented
def coupon_is_customer_identified(self):
Undocumented
def coupon_open(self):
This needs to be called before anything else
def coupon_cancel(self):
Can only be called when a coupon is opened. It needs to be possible to open new coupons after this is called.
def cancel_last_coupon(self):
Cancel the last non fiscal coupon or the last sale.
def coupon_close(self, message=''):
This can only be called when the coupon is open, has items added, payments added and totalized is called. It needs to be possible to open new coupons after this is called.
def coupon_add_item(self, code, description, price, taxcode, quantity=Decimal('1.0'), unit=UnitType.EMPTY, discount=Decimal('0.0'), markup=Decimal('0.0'), unit_desc=''):
Undocumented
def coupon_cancel_item(self, item_id=None):
Cancel an item added to coupon; if no item id is specified, cancel the last item added.
def coupon_add_payment(self, payment_method, value, description=u''):
Undocumented
def coupon_totalize(self, discount=Decimal('0.0'), markup=Decimal('0.0'), taxcode=TaxType.NONE):
Undocumented
def get_payment_receipt_identifier(self, method):
Undocumented
def _get_payment_description(self, method_id):
Undocumented
def payment_receipt_open(self, identifier, coo, method_id, value):
Undocumented
def payment_receipt_print(self, text):
Undocumented
def payment_receipt_close(self):
Undocumented
def payment_receipt_print_duplicate(self):
Undocumented
def get_capabilities(self):
Undocumented
def get_constants(self):
Undocumented
def query_status(self):
Undocumented
def status_reply_complete(self, reply):
Undocumented
def get_serial(self):
Undocumented
def get_ccf(self):
Undocumented
def get_coo(self):
Undocumented
def get_gnf(self):
Undocumented
def get_crz(self):
Undocumented
def get_tax_constants(self):
Undocumented
def get_payment_constants(self):
Undocumented
def get_sintegra(self):
Undocumented
def get_firmware_version(self):
Return the firmware version
def get_user_registration_info(self):
Undocumented
API Documentation for Stoqdrivers, generated by pydoctor at 2009-04-30 17:14:35.