This commit is contained in:
Bluwww 2025-12-14 11:54:22 +07:00
parent a1703b53d7
commit 61547a4012

21
main.py
View File

@ -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':