Skip to content

Instantly share code, notes, and snippets.

@nhomar
Created August 10, 2015 20:49
Show Gist options
  • Select an option

  • Save nhomar/22dac906f44038127bf3 to your computer and use it in GitHub Desktop.

Select an option

Save nhomar/22dac906f44038127bf3 to your computer and use it in GitHub Desktop.
File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/fiscal.py", line 181, in totalize
result = self._driver.coupon_totalize(discount, surcharge, taxcode)
File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/bematech/MP25.py", line 635, in coupon_totalize
type, int(value * Decimal('1e2'))))
File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/bematech/MP4000.py", line 227, in _send_command
self._check_error(retval)
File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/bematech/MP25.py", line 365, in _check_error
status.check_error()
File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/bematech/MP4000.py", line 544, in check_error
self._check_error_in_dict(self.st2_codes, self.st2)
File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/bematech/MP4000.py", line 532, in _check_error_in_dict
raise error_codes[key]
stoqdrivers.exceptions.CommandError: Invalid CMD parameter
@nhomar
Copy link
Copy Markdown
Author

nhomar commented Aug 10, 2015

Information which is sent to the totalization command.

HexData = ['0x2', '0x13', '0x0', '0x1b', '0x20', '0x61', '0x30', '0x30', '0x30', '0x30', '0x30', '0x30', '0x30', '0x30', '0x30', '0x30', '0x30', '0x30', '0x30', '0x30', '0x3c', '0x3']
 String = 'a00000000000000<'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment