kitchen receipt + html printer

This commit is contained in:
EugeneTes
2026-01-14 11:47:43 +01:00
parent 011978136d
commit 147265358f
16 changed files with 1346 additions and 178 deletions

View File

@@ -1,7 +1,7 @@
namespace Inspectron.Epson.PrintServer.Printers.Utils;
public record KitchenReceipt(string Location, string Date, string Owner, string Tisch, List<KitchenItem> items) :ASTNode;
public record TranslatedKitchenReceipt(string Location, string Date, string Owner, string Tisch, List<KitchenItem> items) :ASTNode;
public record KitchenItem(string Name) : ASTNode;
public record KitchenProduct(int Amount, string Name) : KitchenItem(Name);
public record KitchenGang(string Name) : KitchenItem(Name);
@@ -112,7 +112,7 @@ public class ReceiptTranslator
return new FinalReceipt(location, phone, url, date, items, total, mwst, comment, thanks);
}
public static KitchenReceipt ParseKitchenReceipt(string receiptText)
public static TranslatedKitchenReceipt ParseKitchenReceipt(string receiptText)
{
var lines = receiptText.Split('\n', StringSplitOptions.RemoveEmptyEntries)
.Select(l => l.Trim())
@@ -198,7 +198,7 @@ public class ReceiptTranslator
currentIndex++;
}
return new KitchenReceipt(location, date, owner, tisch, items);
return new TranslatedKitchenReceipt(location, date, owner, tisch, items);
}