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