update order detail
This commit is contained in:
parent
d37a4993df
commit
ef23839761
@ -85,6 +85,17 @@ class OrderRightPanel extends StatelessWidget {
|
||||
icon: Icon(Icons.print),
|
||||
),
|
||||
SpaceWidth(8),
|
||||
if (state.selectedOrder?.status == 'completed')
|
||||
if (state.selectedOrder?.isRefund == false)
|
||||
AppElevatedButton.outlined(
|
||||
onPressed: () {
|
||||
// context.push(RefundPage(
|
||||
// selectedOrder: orderDetail!,
|
||||
// ));
|
||||
},
|
||||
label: 'Refund',
|
||||
icon: Icon(Icons.autorenew),
|
||||
),
|
||||
if (state.selectedOrder?.status == 'pending') ...[
|
||||
AppElevatedButton.outlined(
|
||||
onPressed: () => context.router.push(
|
||||
@ -103,6 +114,7 @@ class OrderRightPanel extends StatelessWidget {
|
||||
label: 'Split Bill',
|
||||
icon: Icon(Icons.calculate_outlined),
|
||||
),
|
||||
|
||||
SpaceWidth(8),
|
||||
if (state.selectedOrder?.paymentStatus != 'partial')
|
||||
AppElevatedButton.filled(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user