diff --git a/main.py b/main.py index 4a2df4b..d5bf327 100644 --- a/main.py +++ b/main.py @@ -4760,16 +4760,6 @@ class App: bg_color = '#E0E0E0' status_color = '#757575' status_text = '⚪ UNKNOWN' - if status_text == '⚪ UNKNOWN': - tk.Button( - btn_frame, - text="⚠️ Reset Paksa", - font=("Arial", 8, "bold"), - bg='red', - fg='white', - width=12, - command=lambda n=nomor: self.tutup_meja(n) - ).pack() # BUAT CARD card = tk.Frame( @@ -4826,6 +4816,17 @@ class App: # Tombol action btn_frame = tk.Frame(card, bg=bg_color) btn_frame.pack(pady=(10, 0)) + + if status_text == '⚪ UNKNOWN': + tk.Button( + btn_frame, + text="⚠️ Reset Paksa", + font=("Arial", 8, "bold"), + bg='red', + fg='white', + width=12, + command=lambda n=nomor: self.tutup_meja(n) + ).pack() if status == 'terisi' and transaksi_info: if transaksi_info['status'] == 'dibayar':