Debug
This commit is contained in:
parent
a1703b53d7
commit
61547a4012
21
main.py
21
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(
|
||||
@ -4827,6 +4817,17 @@ class App:
|
||||
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':
|
||||
tk.Button(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user