fix: print split bill

This commit is contained in:
efrilm
2025-09-01 22:25:15 +07:00
parent dcd739e4a4
commit 0d91d43866
6 changed files with 30 additions and 24 deletions
+10 -9
View File
@@ -246,15 +246,16 @@ class _SalesPageState extends State<SalesPage> {
),
],
if (widget.status == 'completed')
Button.outlined(
onPressed: () {
context.push(RefundPage(
selectedOrder: orderDetail!,
));
},
label: 'Refund',
icon: Icon(Icons.autorenew),
),
if (orderDetail?.isRefund == false)
Button.outlined(
onPressed: () {
context.push(RefundPage(
selectedOrder: orderDetail!,
));
},
label: 'Refund',
icon: Icon(Icons.autorenew),
),
],
),
Expanded(