Commit Graph

20 Commits

Author SHA1 Message Date
EugeneTes
ac72e9ac4e add a POS895 target to EpsonTest that prints via the IPrinter adapter
EpsonTest predates the adapter layer: PrintCommandsToEpsonPrinterAsync
takes an EpsonPrinter and drives it directly, so PrinterWrapperFactory,
the model adapters and the 0x20 dispatch were never exercised. Against a
POS895 that path feeds with ESC d, which the firmware ignores, so every
cut slices through the last printed line, and it never sends a logo at
all - the only logo branch is the HTML one, which uses GS ( L, the
command that prints nothing on this hardware.

PrintCommandsViaAdapterAsync instead does what EpsonPrintService does for
a real job: query GS I 1, let PrinterWrapperFactory choose the adapter
from the reported byte, then print the logo and commands through it and
cut. It logs the reported id and the chosen adapter, so a wrong or
missing model byte is visible rather than silent.

Menu gains a third target and the non-interactive form accepts "pos895",
so `dotnet run -- final pos895` prints a Final receipt with its logo
through the production path. That covers the one part of the POS895 work
nothing had executed end to end: the ESC * bit-image logo.

Note EpsonTest must be run from its own directory; the logo paths are
relative and `dotnet run --project` from the repo root cannot resolve
them. That predates this change.

Claude-Session: https://claude.ai/code/session_01E6N3P4nSZLtp4BC2LXVref
2026-09-03 13:34:02 +02:00
EugeneTes
91d2d18c80 add money return / credit note receipt type with HTML test 2026-07-06 14:51:23 +02:00
CTO
a4582ee1f8 interactive console test runner for EpsonTest
Replace commented-out code blocks with arrow-key navigation menu.
First menu selects receipt type (Kitchen/Final/Invoice/Bar/OrderItems),
second selects printer target (HTML or Epson hardware).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-09 14:18:01 +00:00
EugeneTes
be83fadc5f klinglers special 2026-02-25 10:35:20 +01:00
EugeneTes
11dfd6ead4 grouping in kitchen receipt 2026-02-24 11:54:19 +01:00
EugeneTes
a04e5dde74 word wrap for final receipt
discount for final receipt
2026-02-02 15:33:36 +01:00
EugeneTes
e90465e286 discount 2026-02-02 12:50:00 +01:00
EugeneTes
10c0ca20da 1.0.9 2026-01-29 11:14:15 +01:00
EugeneTes
1125222cbe new receipt formats 2026-01-26 14:29:37 +01:00
EugeneTes
53cf40c5e3 1.0.3 2026-01-26 10:53:09 +01:00
EugeneTes
71300aab24 v1.0.0 2026-01-23 12:57:01 +01:00
EugeneTes
fcb192b797 final receipt update 2026-01-22 11:13:07 +01:00
EugeneTes
9fbc61dede templates support 2026-01-21 15:56:37 +01:00
EugeneTes
729679d283 experiments for the new client 2026-01-21 11:59:13 +01:00
EugeneTes
cb231801f1 tm220 print mode refactoring 2026-01-21 09:19:24 +01:00
EugeneTes
6f5116736c test run works 2026-01-20 10:11:04 +01:00
EugeneTes
5229cac987 print server with new concept 2026-01-16 12:00:24 +01:00
EugeneTes
147265358f kitchen receipt + html printer 2026-01-14 11:47:43 +01:00
EugeneTes
7ef429a202 printer discovery in print service 2026-01-13 11:31:02 +01:00
EugeneTes
7390693f50 Add project files. 2026-01-13 09:06:47 +01:00