Commit graph

125 commits

Author SHA1 Message Date
1bf32ca641
Adjusting test 2018-04-22 16:57:22 +02:00
3da56fd004
More PEP8 standardisation 2018-04-22 16:27:27 +02:00
9b912894ae
More beautification 2018-04-22 14:26:43 +02:00
07f675f5d3
AutoPEP8 all the things 2018-04-22 03:32:05 +02:00
900e94cb30
MOAR PEP8 2018-04-22 03:29:30 +02:00
53535b2296
Namespacing 2018-04-22 03:07:07 +02:00
1da2e5657e
Isorting 2018-04-22 02:47:48 +02:00
1d57bbca49
Add py3 venv to gitignore 2018-04-22 02:42:44 +02:00
ladiko
1f637b8c21 added config_byte to registration 2017-06-14 15:26:03 +02:00
1cc10edd0f Merge pull request #1 from raphaelm/python3
Python3 compatibility and small fixes
2017-04-18 10:44:37 +02:00
Raphael Michel
9755d60ddc Allow to set configbyte on registration 2016-11-18 15:51:18 +01:00
Raphael Michel
7d5a929ca4 Fix setting of fixed arguments
Didn't work for me with password
2016-11-18 13:04:34 +01:00
Raphael Michel
b3e3ea6ef0 Allow to pass password via ECR class 2016-11-18 13:04:34 +01:00
Raphael Michel
b05e88f9d1 Re-connect without proper disconnect fails on Windows 2016-11-18 13:04:34 +01:00
Raphael Michel
781d1ca63a Add gitignore file 2016-11-18 13:04:34 +01:00
Raphael Michel
af50e93b3e Compatibility with Python 2 and 3 2016-11-18 13:04:34 +01:00
Mathias Frey
b02ad00c4c changed LICENSE to LGPL due to an intended commercial use case
from a German company.

ecrterm will stay open whereas their solution can be shipped in
their preferred manner.
2016-10-29 19:41:23 +02:00
Gabor Guzmics
eca98b46b7 0xBE as Standard Byte in Registration enables End-Of-Day Printouts 2014-02-18 17:04:01 +01:00
Gabor Guzmics
81c3a3af16 example receipt 2014-02-04 17:47:57 +01:00
Gabor Guzmics
111a391e29 own exception for transport timeout, inheriting transport layer exception 2014-02-04 17:21:26 +01:00
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