fear: rev 2
This commit is contained in:
@@ -12,7 +12,7 @@ import 'package:intl/intl.dart';
|
||||
|
||||
import 'package:enaklo_pos/core/extensions/build_context_ext.dart';
|
||||
import 'package:enaklo_pos/presentation/home/bloc/qris/qris_bloc.dart';
|
||||
import 'package:enaklo_pos/presentation/home/widgets/success_payment_dialog.dart';
|
||||
// import 'package:enaklo_pos/presentation/home/widgets/success_payment_dialog.dart';
|
||||
import 'package:widgets_to_image/widgets_to_image.dart';
|
||||
import 'package:enaklo_pos/core/utils/printer_service.dart';
|
||||
|
||||
@@ -124,36 +124,36 @@ class _PaymentQrisDialogState extends State<PaymentQrisDialog> {
|
||||
));
|
||||
});
|
||||
}, success: (message) async {
|
||||
context.read<OrderBloc>().add(OrderEvent.order(
|
||||
widget.items,
|
||||
widget.discount,
|
||||
widget.discountAmount,
|
||||
widget.tax,
|
||||
widget.serviceCharge,
|
||||
widget.paymentAmount,
|
||||
widget.customerName,
|
||||
widget.tableNumber,
|
||||
'completed',
|
||||
'paid',
|
||||
'Qris',
|
||||
widget.price,
|
||||
OrderType.dineIn));
|
||||
await showDialog(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
builder: (context) => SuccessPaymentDialog(
|
||||
isTablePaymentPage: widget.isTablePaymentPage,
|
||||
data: widget.items,
|
||||
totalQty: widget.totalQty,
|
||||
totalPrice: widget.price,
|
||||
totalTax: widget.tax,
|
||||
totalDiscount: widget.discountAmount,
|
||||
subTotal: widget.subTotal,
|
||||
normalPrice: widget.price,
|
||||
totalService: widget.serviceCharge,
|
||||
draftName: widget.customerName,
|
||||
),
|
||||
);
|
||||
// context.read<OrderBloc>().add(OrderEvent.order(
|
||||
// widget.items,
|
||||
// widget.discount,
|
||||
// widget.discountAmount,
|
||||
// widget.tax,
|
||||
// widget.serviceCharge,
|
||||
// widget.paymentAmount,
|
||||
// widget.customerName,
|
||||
// widget.tableNumber,
|
||||
// 'completed',
|
||||
// 'paid',
|
||||
// 'Qris',
|
||||
// widget.price,
|
||||
// OrderType.dineIn));
|
||||
// await showDialog(
|
||||
// context: context,
|
||||
// barrierDismissible: false,
|
||||
// builder: (context) => SuccessPaymentDialog(
|
||||
// isTablePaymentPage: widget.isTablePaymentPage,
|
||||
// data: widget.items,
|
||||
// totalQty: widget.totalQty,
|
||||
// totalPrice: widget.price,
|
||||
// totalTax: widget.tax,
|
||||
// totalDiscount: widget.discountAmount,
|
||||
// subTotal: widget.subTotal,
|
||||
// normalPrice: widget.price,
|
||||
// totalService: widget.serviceCharge,
|
||||
// draftName: widget.customerName,
|
||||
// ),
|
||||
// );
|
||||
});
|
||||
},
|
||||
child: BlocBuilder<QrisBloc, QrisState>(
|
||||
|
||||
Reference in New Issue
Block a user