Enhance printing support #3

Open
opened 2017-03-23 09:28:16 +01:00 by crudo · 0 comments

Printing

Progress

Patch 1

First single threaded implementation in 389ad04e19.

Issues

  • The software will crash if no printer is found.

TODOs

No-printer mode

  • Allow to start the software without a printer connected.

Error checking

Ideas

Custom receipt graphics

We could also store in a given folder such as static/events the asset files for each event, such as an image to print in the receipt.

The software could check for the presence of a file (in example <Event.uid>.png) in that folder and would eventually print it.

We could also add some flags in the database concerning the event. For example there could be a flag to hide the Macao logo in order to only print the event image.

There is also another library we could alternatively use: py-xml-escpos.

# Printing ## Progress ### Patch 1 First single threaded implementation in [`389ad04e19`](https://git.unit.macaomilano.org/crudo/macao-pos/commit/389ad04e1998769f0b6fc14153bdbad60c49675d). #### Issues * The software will crash if no printer is found. ## TODOs ### No-printer mode * Allow to start the software without a printer connected. ### Error checking * [`python-escpos` issue #143](https://github.com/python-escpos/python-escpos/issues/143) * [`escpos-php` issue #43](https://github.com/mike42/escpos-php/issues/43) * It seems that [`py-xml-escpos`](https://github.com/fvdsn/py-xml-escpos) supports error handling. ## Ideas ### Custom receipt graphics We could also store in a given folder such as `static/events` the asset files for each event, such as an image to print in the receipt. The software could check for the presence of a file (in example `<Event.uid>.png`) in that folder and would eventually print it. We could also add some flags in the database concerning the event. For example there could be a flag to hide the Macao logo in order to only print the event image. There is also another library we could alternatively use: [`py-xml-escpos`](https://github.com/fvdsn/py-xml-escpos).
crudo added the
kind/feature
priority/critical
labels 2017-03-23 09:28:16 +01:00
crudo added the
kind/printing
kind/database
labels 2017-03-23 12:21:05 +01:00
crudo changed title from Implement printing support to Enhance printing support 2017-03-26 20:02:01 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: crudo/macao-pos#3
There is no content yet.