micwallace / wallacepos

WallacePOS uses the power of the modern web to provide an easy to use & extensible POS system.
GNU Lesser General Public License v3.0
374 stars 382 forks source link

58mm thermal printer #131

Open ghost opened 6 years ago

ghost commented 6 years ago

Is there a section I can edit that would scale receipt printing to fit a 58mm thermal printer? It will currently print, however, there are certain parts like the prices and reference number that wrap to the next line.

micwallace commented 6 years ago

Yeah checkout this function: https://github.com/micwallace/wallacepos/blob/master/assets/js/wpos/print.js#L770

Reducing the 48 on that line and the next should yield the desired results. Although you may want to improve that function for properly wrapping each column of the table, since that may become more of a problem on smaller receipts.