This commit is contained in:
@@ -534,7 +534,7 @@ 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),
|
||||
),
|
||||
@@ -799,7 +799,7 @@ 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),
|
||||
),
|
||||
@@ -841,18 +841,20 @@ class PrintDataoutputs {
|
||||
styles: const PosStyles(align: PosAlign.right),
|
||||
),
|
||||
]);
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: 'Pembayaran',
|
||||
width: 8,
|
||||
styles: const PosStyles(align: PosAlign.left),
|
||||
),
|
||||
PosColumn(
|
||||
text: paymentMethod,
|
||||
width: 4,
|
||||
styles: const PosStyles(align: PosAlign.right),
|
||||
),
|
||||
]);
|
||||
if (paymentMethod != '') {
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: 'Payment',
|
||||
width: 8,
|
||||
styles: const PosStyles(align: PosAlign.left),
|
||||
),
|
||||
PosColumn(
|
||||
text: paymentMethod,
|
||||
width: 4,
|
||||
styles: const PosStyles(align: PosAlign.right),
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
bytes += generator.text(
|
||||
paper == 80
|
||||
@@ -866,7 +868,7 @@ class PrintDataoutputs {
|
||||
? '------------------------------------------------'
|
||||
: '--------------------------------',
|
||||
styles: const PosStyles(bold: false, align: PosAlign.center));
|
||||
for (final product in (products ?? <ProductQuantity>[])) {
|
||||
for (final product in (products)) {
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: '${product.quantity} x ${product.product.name}',
|
||||
@@ -1057,7 +1059,7 @@ 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),
|
||||
),
|
||||
@@ -1112,7 +1114,7 @@ class PrintDataoutputs {
|
||||
),
|
||||
]);
|
||||
|
||||
for (final product in (productItemVoid ?? <OrderItem>[])) {
|
||||
for (final product in (productItemVoid)) {
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: '${product.quantity} x ${product.productName}',
|
||||
@@ -1326,7 +1328,7 @@ 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),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user