update printer bar and kitchen

This commit is contained in:
Efril 2026-05-27 16:19:11 +07:00
parent beb86f6259
commit d345294a2f
2 changed files with 7 additions and 2 deletions

View File

@ -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,
);

View File

@ -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,
),
),
]);