feat: select order item
This commit is contained in:
@@ -532,7 +532,8 @@ class _HomePageState extends State<HomePage> {
|
||||
elevation: 1,
|
||||
disabled: items.isEmpty,
|
||||
onPressed: () {
|
||||
if (orderType.name == 'dineIn') {
|
||||
if (orderType.name == 'dineIn' &&
|
||||
widget.table == null) {
|
||||
AppFlushbar.showError(context,
|
||||
'Mohon pilih meja terlebih dahulu');
|
||||
return;
|
||||
@@ -544,7 +545,7 @@ class _HomePageState extends State<HomePage> {
|
||||
table: widget.table,
|
||||
));
|
||||
},
|
||||
label: 'Lanjutkan Pembayaran ',
|
||||
label: 'Lanjutkan Pembayaran',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user