fear: rev 2
This commit is contained in:
@@ -1275,6 +1275,7 @@ class PrintDataoutputs {
|
||||
String tableName,
|
||||
String draftName,
|
||||
String cashierName,
|
||||
String customerName,
|
||||
int paper,
|
||||
String orderType) async {
|
||||
List<int> bytes = [];
|
||||
@@ -1330,9 +1331,6 @@ class PrintDataoutputs {
|
||||
styles: const PosStyles(align: PosAlign.right),
|
||||
),
|
||||
]);
|
||||
// bytes += generator.text(
|
||||
// 'Receipt: JF-${DateFormat('yyyyMMddhhmm').format(DateTime.now())}',
|
||||
// styles: const PosStyles(bold: false, align: PosAlign.left));
|
||||
//cashier name
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
@@ -1352,7 +1350,7 @@ class PrintDataoutputs {
|
||||
//column 2
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: 'Customer - $draftName',
|
||||
text: '$customerName - $draftName',
|
||||
width: 6,
|
||||
styles: const PosStyles(align: PosAlign.left),
|
||||
),
|
||||
@@ -1410,6 +1408,7 @@ class PrintDataoutputs {
|
||||
String tableNumber,
|
||||
String draftName,
|
||||
String cashierName,
|
||||
String customerName,
|
||||
int paper,
|
||||
String orderType) async {
|
||||
List<int> bytes = [];
|
||||
@@ -1462,14 +1461,26 @@ class PrintDataoutputs {
|
||||
styles: const PosStyles(align: PosAlign.left),
|
||||
),
|
||||
PosColumn(
|
||||
text: 'JF-${DateFormat('yyyyMMddhhmm').format(DateTime.now())}',
|
||||
text: DateFormat('yyyyMMddhhmm').format(DateTime.now()),
|
||||
width: 6,
|
||||
styles: const PosStyles(align: PosAlign.right),
|
||||
),
|
||||
]);
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: 'Customer - $draftName',
|
||||
text: 'Cashier',
|
||||
width: 6,
|
||||
styles: const PosStyles(align: PosAlign.left),
|
||||
),
|
||||
PosColumn(
|
||||
text: cashierName,
|
||||
width: 6,
|
||||
styles: const PosStyles(align: PosAlign.right),
|
||||
),
|
||||
]);
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: '$customerName - $draftName',
|
||||
width: 6,
|
||||
styles: const PosStyles(align: PosAlign.left),
|
||||
),
|
||||
@@ -1524,8 +1535,15 @@ class PrintDataoutputs {
|
||||
return bytes;
|
||||
}
|
||||
|
||||
Future<List<int>> printBar(List<ProductQuantity> products, String tableNumber,
|
||||
String draftName, String cashierName, int paper, String orderType) async {
|
||||
Future<List<int>> printBar(
|
||||
List<ProductQuantity> products,
|
||||
String tableNumber,
|
||||
String draftName,
|
||||
String cashierName,
|
||||
String customerName,
|
||||
int paper,
|
||||
String orderType,
|
||||
) async {
|
||||
List<int> bytes = [];
|
||||
|
||||
final profile = await CapabilityProfile.load();
|
||||
@@ -1576,14 +1594,26 @@ class PrintDataoutputs {
|
||||
styles: const PosStyles(align: PosAlign.left),
|
||||
),
|
||||
PosColumn(
|
||||
text: 'JF-${DateFormat('yyyyMMddhhmm').format(DateTime.now())}',
|
||||
text: DateFormat('yyyyMMddhhmm').format(DateTime.now()),
|
||||
width: 6,
|
||||
styles: const PosStyles(align: PosAlign.right),
|
||||
),
|
||||
]);
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: 'Customer - $draftName',
|
||||
text: 'Cashier',
|
||||
width: 6,
|
||||
styles: const PosStyles(align: PosAlign.left),
|
||||
),
|
||||
PosColumn(
|
||||
text: cashierName,
|
||||
width: 6,
|
||||
styles: const PosStyles(align: PosAlign.right),
|
||||
),
|
||||
]);
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: '$customerName - $draftName',
|
||||
width: 6,
|
||||
styles: const PosStyles(align: PosAlign.left),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user