Python ZVT 700 interface (electronic cash registers)
0d3e91684b
- added a guess of the terminal-id at registration. saved as .terminal_id - added a helper function to retrieve an end-of-day information dictionary from history. - modified end-of-day itself to fallback on this information if the daylog is empty - added the variable daylog_template to store a string representation of the receipt to be used to create a receipt - so basicly end-of-day now falls back to .daylog_template % "status packet information" - if this fails, it logs an error, prints a traceback, but does not raise exceptions base_packets: - modified status information with a custom function to represent end-of-day information in a dictionary. - you want to use float-<creditcardtype> mostly for your data (representation in euros/main currency) - number-<creditcardtype> is the number of payments, turnover-<creditcardtype> the value in cents/base level of currency. - since this packet does not use terminal-id unfortunately in most testing machines, you might want to use ECR._end_of_day_info_packet instead. bmp: - only added convenience functions. transport_serial: - added transport-timeout exception |
||
---|---|---|
packets | ||
tests | ||
transmission | ||
__init__.py | ||
common.py | ||
conv.py | ||
crc.py | ||
ecr.py | ||
LICENSE | ||
README.md | ||
test_pt.py | ||
utils.py |
ecrterm
Python ZVT 700 interface (electronic cash registers)