v1.0.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Inspectron.Epson.PrintServer.Printers.Utils.BarReceipt;
|
||||
using Inspectron.Epson.PrintServer.Printers.Utils.InvoiceReceipt;
|
||||
using Inspectron.Epson.PrintServer.Printers.Utils.OrderItems;
|
||||
|
||||
namespace Inspectron.Epson.PrintServer.Printers.Utils;
|
||||
@@ -17,14 +18,17 @@ public class ReceiptConverterFactory : IReceiptConverterFactory
|
||||
},
|
||||
EReceiptType.NextCourse => new KitchenReceipt.KitchenReceiptConverterAdapter(33, 20),
|
||||
EReceiptType.OrdersOverview => new OrderItemsReceiptConverter(48, 24),
|
||||
EReceiptType.Invoice => new InvoiceReceiptConverter(48, 24),
|
||||
_ => throw new ArgumentException($"Unknown receipt type: {receiptType}")
|
||||
};
|
||||
}
|
||||
|
||||
public enum EReceiptType
|
||||
{
|
||||
Receipt,
|
||||
WorkareaTicket,
|
||||
NextCourse,
|
||||
OrdersOverview
|
||||
OrdersOverview,
|
||||
Invoice
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user