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

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

No class docstring
Method coupon_open This needs to be called before anything else.
Method coupon_add_item Undocumented
Method get_status Undocumented
Method cancel_last_coupon Cancel the last non fiscal coupon or the last sale.
Method get_ccf Undocumented
Method status_reply_complete Undocumented

Inherited from MP25:

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 _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_cancel Can only be called when a coupon is opened. It needs to be possible
Method coupon_close This can only be called when the coupon is open, has items added,
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 get_serial 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 (via MP25):

Method set_port Undocumented
Method get_port Undocumented
Method fileno Undocumented
Method writeline Undocumented
Method write Undocumented
Method read Undocumented
Method readline Undocumented
def coupon_open(self):
This needs to be called before anything else.
def coupon_add_item(self, code, description, price, taxcode, quantity=Decimal('1.0'), unit=None, discount=Decimal('0.0'), markup=Decimal('0.0'), unit_desc=''):
Undocumented
def get_status(self, val=None):
Undocumented
def cancel_last_coupon(self):
Cancel the last non fiscal coupon or the last sale.
def get_ccf(self):
Undocumented
def status_reply_complete(self, reply):
Undocumented
API Documentation for Stoqdrivers, generated by pydoctor at 2009-04-30 17:14:35.