BastliPOSPrinter

A collection of programs that allow receipt printing
git clone git://xatko.vsos.ethz.ch/BastliPOSPrinter.git
Log | Files | Refs

commit fab97065a3bb04197c229071cc9b1905e4890616
parent 24bc5585983fef4e35f46cf315f14792958890ec
Author: Dominik Schmidt <doeme@bastli.ethz.ch>
Date:   Tue, 11 Sep 2018 19:53:34 +0200

Don't try to set non-existing fonts

Diffstat:
pipeline/10_JSON_to_GROFF.lua | 4++--
template.roff | 1-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/pipeline/10_JSON_to_GROFF.lua b/pipeline/10_JSON_to_GROFF.lua @@ -9,7 +9,7 @@ local j=json.decode(s) local tpl=assert(io.open(os.getenv("GROFF_TEMPLATE"), "r")) function getPositions() - local str="===\nlrxbni\n.\n" + local str="===\nlrxn\n.\n" local str2=".TS\n" local total=0 for _,a in pairs(j["articles"]) do @@ -19,7 +19,7 @@ function getPositions() local subtot=a["price"]*a["amount"] total=total+subtot str=str..string.format("%d\tT{\n%s\nT}\t%.2f CHF\n", a["amount"], escname, subtot) - str2=str2.."llxni\n" + str2=str2.."llxn\n" end str=str..string.format("\n\tTOTAL\t%.2f CHF\n", total) return str2..str..".TE"; diff --git a/template.roff b/template.roff @@ -24,7 +24,6 @@ .em an-end . \" Done with infinipage -.ft CR .po (\n[.ll]-\w' ____')/2 ____ .br