Add raw receipt printing#272
Conversation
Critical — Should Fix Before Merge1. Browser Print Path Routes Raw Formats to QZ TrayFile: When Cashiers who disable silent print but assign an ESC/POS format on their POS Profile will get QZ errors (or silent printing) when they expect a normal browser popup. Fix: Keep raw dispatch in the silent path only. In
2. Offline / Local-Only Invoices Never Use ESC/POSFiles: Offline invoices ( Stores that rely on raw thermal printing will get pixel-rendered HTML receipts for offline sales — different layout, slower, and potentially misaligned on thermal printers. Fix: For offline docs with a raw profile format, either:
At minimum, document the limitation and align offline fallback behavior with user expectations. Medium Priority3. Browser Fallback Uses Wrong Format VariableFile: const fallbackFormat = (await isRawPrintFormat(resolvedPrintFormat))
? DEFAULT_PRINT_FORMAT
: printFormatWhen silent print fails and the format is not raw, fallback uses the original Fix: Use 4. ESC/POS Template Missing Parity with HTML ReceiptFile: Compared to
Offline hydration maps Suggestion: Align templates or document intentional differences. 5.
|
|
Fixed all reported issues ... please check |
|
This pull request has been automatically marked as stale because it has not had recent activity for 21 days. To keep this PR open, please:
If no further activity occurs within the next 14 days, this PR will be automatically closed. |
Added a new raw ESC/POS printing method using QZ Tray silent printing.
When the selected print format type is set to Raw, invoices are printed using direct ESC/POS commands instead of HTML-to-image rendering, improving compatibility and reliability on thermal printers.
Most of the thermal printers have issue when printing converted html image ... for thermal printers its better and fast if we do raw command printing ...
Also supports drawer opening and paper cutting through the commands..
Before

After
