feat: order item
This commit is contained in:
@@ -125,9 +125,13 @@ class _RefundDialogState extends State<RefundDialog> {
|
||||
successMsg: () {
|
||||
context.pop();
|
||||
AppFlushbar.showSuccess(context, 'Refund Berhasil!');
|
||||
context
|
||||
.read<OrderLoaderBloc>()
|
||||
.add(OrderLoaderEvent.getByStatus('completed'));
|
||||
context.read<OrderLoaderBloc>().add(
|
||||
OrderLoaderEvent.getByStatus(
|
||||
'completed',
|
||||
dateFrom: DateTime.now(),
|
||||
dateTo: DateTime.now(),
|
||||
),
|
||||
);
|
||||
},
|
||||
error: (msg) {
|
||||
AppFlushbar.showError(context, msg);
|
||||
|
||||
@@ -125,9 +125,13 @@ class _VoidDialogState extends State<VoidDialog> {
|
||||
successMsg: () {
|
||||
context.pop();
|
||||
AppFlushbar.showSuccess(context, 'Void berhasil!');
|
||||
context
|
||||
.read<OrderLoaderBloc>()
|
||||
.add(OrderLoaderEvent.getByStatus('pending'));
|
||||
context.read<OrderLoaderBloc>().add(
|
||||
OrderLoaderEvent.getByStatus(
|
||||
'pending',
|
||||
dateFrom: DateTime.now(),
|
||||
dateTo: DateTime.now(),
|
||||
),
|
||||
);
|
||||
},
|
||||
error: (msg) {
|
||||
AppFlushbar.showError(context, msg);
|
||||
|
||||
Reference in New Issue
Block a user