#92 Receipt preview doesn't honor width setting

v3.56
closed
nobody
None
1
2014-07-31
2014-01-04
Ron Isaacson
No

My receipt printer allows 48 characters per line, and I modified the Printer.Ticket template to use longer lines. However, when I preview a receipt on the screen (e.g. Edit Sales and retrieve a ticket), it truncates each line at 42 characters, so the right part of the receipt is not shown.

I traced this issue to com.openbravo.pos.printer.screen.JTicket, which includes a constant declaration:

private static final int COLUMNS = 42;
private static final int LINEWIDTH = COLUMNS * 7;

This should be configurable (ideally linked to the paper.receipt.width property) so it's possible to preview the full receipt on the screen.

1 Attachments

Related

Discussion: Some patches to contribute...

Discussion

  • Ron Isaacson
    Ron Isaacson
    2014-01-08

    And here's a patch. This defines a property called screen.receipt.columns (defaults to 42).

     
    Attachments
  • Aaron Mills
    Aaron Mills
    2014-01-13

    This is a great fix / update. I need to utilize a letter sized receipt.
    Hoping this will work and can be included in the next release.

     
    Last edit: Aaron Mills 2014-01-13
  • uniCenta
    uniCenta
    2014-07-31

    • status: open --> closed