update kitchen printer

This commit is contained in:
efrilm
2026-05-26 12:14:02 +07:00
parent 539c70be17
commit c8a84ffe5f
4 changed files with 38 additions and 37 deletions
@@ -207,14 +207,16 @@ class ReceiptComponentBuilder {
/// Order info block — label : value style (checker/kitchen style)
List<int> orderInfoSimple({
required String orderNumber,
required String orderType,
String? orderType,
required String cashierName,
}) {
List<int> bytes = [];
final dateStr = DateFormat('dd-MM-yyyy HH:mm').format(DateTime.now());
bytes += textLeft('Order : $orderNumber');
bytes += textLeft('Date : $dateStr');
bytes += textLeft('Purpose : $orderType');
if(orderType != null) {
bytes += textLeft('Purpose : $orderType');
}
bytes += textLeft('Waiter : $cashierName');
return bytes;
}