You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the Epson RT Printer doesn't support custom printed lines sent by the cash register. One of the things that we have added in the Digital Receipt should also be used for the Epson RT Printer to make sure that all receipt artifiacts work end 2 end.
Extend RT Printer SCU to be able to interpret ftReceiptCaseData.cbReceiptLines array (check Digital Receipt)
KBA for how to send custom fields / documentation?
The current digital receipt logic parses the content like this:
var receiptLines = new List<string>();
if (!string.IsNullOrEmpty(request.ftReceiptCaseData))
{
try
{
using var doc = JsonDocument.Parse(request.ftReceiptCaseData);
var element = doc.RootElement;
if (element.TryGetProperty("cbReceiptLines", out var lines))
{
receiptLines = lines.EnumerateArray().Where(x => x.GetString() != null).Select(x => x.GetString()!)?.ToList() ?? new List<string>();
}
}
catch { }
}
Each row in the field cbReceiptLines contains a single line that should be printed in the footer section of the document. To esnure backwards compatibility we should support both the old format ( string based )
Sending this example would result in additional lines on the bottom of the receipt. We will currently only support adding lines to the bottom of the document.
The text was updated successfully, but these errors were encountered:
Currently the Epson RT Printer doesn't support custom printed lines sent by the cash register. One of the things that we have added in the Digital Receipt should also be used for the Epson RT Printer to make sure that all receipt artifiacts work end 2 end.
The current digital receipt logic parses the content like this:
Each row in the field
cbReceiptLines
contains a single line that should be printed in the footer section of the document. To esnure backwards compatibility we should support both the old format ( string based )Example:
and also object based
Example:
Sending this example would result in additional lines on the bottom of the receipt. We will currently only support adding lines to the bottom of the document.
The text was updated successfully, but these errors were encountered: