update printer bar and kitchen
This commit is contained in:
parent
beb86f6259
commit
d345294a2f
@ -159,6 +159,7 @@ class PrintUi {
|
||||
bytes += builder.orderInfoSimple(
|
||||
orderNumber: order.orderNumber,
|
||||
cashierName: cashierName,
|
||||
customerName: order.metadata['customer_name'] ?? '-',
|
||||
);
|
||||
|
||||
bytes += builder.separator();
|
||||
@ -202,7 +203,7 @@ class PrintUi {
|
||||
bytes += generator.reset();
|
||||
|
||||
// Header
|
||||
bytes += builder.textCenter('Bar', bold: true);
|
||||
bytes += builder.row2Columns('Bar', order.orderType.toUpperCase(), bold: true);
|
||||
bytes += builder.separator();
|
||||
bytes += builder.textCenter(
|
||||
'Table : ${order.tableNumber.isNotEmpty ? order.tableNumber : '-'}',
|
||||
@ -213,7 +214,7 @@ class PrintUi {
|
||||
// Order info
|
||||
bytes += builder.orderInfoSimple(
|
||||
orderNumber: order.orderNumber,
|
||||
orderType: order.orderType,
|
||||
customerName: order.metadata['customer_name'] ?? '-',
|
||||
cashierName: cashierName,
|
||||
);
|
||||
|
||||
|
||||
@ -111,6 +111,8 @@ class ReceiptComponentBuilder {
|
||||
align: PosAlign.left,
|
||||
bold: bold,
|
||||
fontType: _font,
|
||||
height: _bodyHeight,
|
||||
width: _bodyWidth,
|
||||
),
|
||||
),
|
||||
PosColumn(
|
||||
@ -120,6 +122,8 @@ class ReceiptComponentBuilder {
|
||||
align: PosAlign.right,
|
||||
bold: bold,
|
||||
fontType: _font,
|
||||
height: _bodyHeight,
|
||||
width: _bodyWidth,
|
||||
),
|
||||
),
|
||||
]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user