mathiasfrey / ecrterm

Python ZVT 700 interface (electronic cash registers)
GNU Lesser General Public License v3.0
34 stars 31 forks source link

No printout available #3

Closed mathiasfrey closed 10 years ago

mathiasfrey commented 10 years ago

After upgrading our hardware to IUP250 the end-of-day communication does not return a printout.

>>> self.ecr.end_of_day()
>>> daylog = self.ecr.daylog
>>> print daylog
[]

This seems to relate to the following line:

https://github.com/mathiasfrey/ecrterm/blob/master/ecr.py#L194

The new hardware simply does not return PrintLine objects.

g4borg commented 10 years ago

This issue can be closed, since the bug was mainly discovered to be the admin_print flag working incorrectly on the old devices (and was hardcoded, which has been fixed). However, a fallback mechanism was added which allows printouts to be created in the secondary ways provided by the protocol.