fix payment struck
This commit is contained in:
@@ -865,7 +865,9 @@ class PrintDataoutputs {
|
||||
? '------------------------------------------------'
|
||||
: '--------------------------------',
|
||||
styles: const PosStyles(bold: false, align: PosAlign.center));
|
||||
for (final product in (order.orderItems ?? <OrderItem>[])) {
|
||||
for (final product
|
||||
in (order.orderItems?.where((item) => item.status != 'cancelled') ??
|
||||
<OrderItem>[])) {
|
||||
bytes += generator.row([
|
||||
PosColumn(
|
||||
text: '${product.quantity} x ${product.productName}',
|
||||
|
||||
@@ -372,7 +372,8 @@ class _PaymentPageState extends State<PaymentPage> {
|
||||
success: (data) {
|
||||
context.pushReplacement(SuccessPaymentPage(
|
||||
productQuantity: widget.order.orderItems
|
||||
?.map(
|
||||
?.where((item) => item.status == "pending")
|
||||
.map(
|
||||
(item) => ProductQuantity(
|
||||
product: Product(
|
||||
name: item.productName,
|
||||
|
||||
Reference in New Issue
Block a user