Commit graph

5 commits

Author SHA1 Message Date
Gabor Guzmics
0d3e91684b ECR:
- 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
2014-02-04 17:08:19 +01:00
mette
c46a39da9b Merge pull request #1 from pc-coholic/master
Circumvent "port is already open"
2013-08-20 09:49:13 -07:00
Martin Gross
907703e1db Circumvent "port is already open"-error, as the function seems to be called multiple times 2013-08-16 19:25:09 +02:00
Mathias Frey
127c3daba8 initial commit 2013-07-29 16:49:55 +02:00
mette
1205e61254 Initial commit 2013-07-26 12:06:32 -07:00