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'
|
bg_color = '#E0E0E0'
|
||||||
status_color = '#757575'
|
status_color = '#757575'
|
||||||
status_text = '⚪ UNKNOWN'
|
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
|
# BUAT CARD
|
||||||
card = tk.Frame(
|
card = tk.Frame(
|
||||||
@ -4826,6 +4816,17 @@ class App:
|
|||||||
# Tombol action
|
# Tombol action
|
||||||
btn_frame = tk.Frame(card, bg=bg_color)
|
btn_frame = tk.Frame(card, bg=bg_color)
|
||||||
btn_frame.pack(pady=(10, 0))
|
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 status == 'terisi' and transaksi_info:
|
||||||
if transaksi_info['status'] == 'dibayar':
|
if transaksi_info['status'] == 'dibayar':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user