Laporan Kasir

This commit is contained in:
Bluwww 2025-12-15 09:50:58 +07:00
parent 05b65471d1
commit f1aea178a2
8 changed files with 43 additions and 7 deletions

View File

@ -25,3 +25,5 @@ id,transaksi_id,menu_id,qty,harga_satuan,subtotal_item
24,14,10,1,20000.0,20000.0
25,15,3,1,30000.0,30000.0
26,15,7,1,21000.0,21000.0
27,16,7,1,21000.0,21000.0
28,16,8,1,25000.0,25000.0

1 id transaksi_id menu_id qty harga_satuan subtotal_item
25 24 14 10 1 20000.0 20000.0
26 25 15 3 1 30000.0 30000.0
27 26 15 7 1 21000.0 21000.0
28 27 16 7 1 21000.0 21000.0
29 28 16 8 1 25000.0 25000.0

View File

@ -7,7 +7,7 @@ user_id,menu_id,order_count,last_ordered
4,4,3,2025-12-14 10:35:35
4,3,5,2025-12-14 22:09:34
4,11,1,2025-12-14 01:44:46
4,7,4,2025-12-14 22:09:34
4,8,2,2025-12-14 21:14:46
4,7,5,2025-12-15 09:35:44
4,8,3,2025-12-15 09:35:45
4,9,1,2025-12-14 09:50:02
4,10,1,2025-12-14 21:43:51

1 user_id menu_id order_count last_ordered
7 4 4 3 2025-12-14 10:35:35
8 4 3 5 2025-12-14 22:09:34
9 4 11 1 2025-12-14 01:44:46
10 4 7 4 5 2025-12-14 22:09:34 2025-12-15 09:35:44
11 4 8 2 3 2025-12-14 21:14:46 2025-12-15 09:35:45
12 4 9 1 2025-12-14 09:50:02
13 4 10 1 2025-12-14 21:43:51

View File

@ -1746,6 +1746,9 @@ class App:
self.tab_meja = ttk.Frame(main)
main.add(self.tab_meja, text="🪑 Kelola Meja")
self.tab_report = ttk.Frame(main)
main.add(self.tab_report, text="📊 Laporan")
# ==========================================
# ROLE: PEMILIK (Laporan SAJA)
# ==========================================
@ -1801,6 +1804,7 @@ class App:
self.build_order_tab(self.tab_order)
self.build_payment_tab(self.tab_payment)
self.build_meja_tab(self.tab_meja)
self.build_report_tab(self.tab_report)
# Pemilik
if self.session['role'] == 'pemilik':

View File

@ -1,11 +1,11 @@
nomor_meja,status,transaksi_id
1,terisi,
2,terisi,
1,kosong,
2,kosong,
3,kosong,
4,kosong,
5,kosong,
6,kosong,
7,terisi,
7,kosong,
8,kosong,
9,kosong,
10,kosong,

1 nomor_meja status transaksi_id
2 1 terisi kosong
3 2 terisi kosong
4 3 kosong
5 4 kosong
6 5 kosong
7 6 kosong
8 7 terisi kosong
9 8 kosong
10 9 kosong
11 10 kosong

View File

@ -5,8 +5,8 @@ id,nama,kategori,harga,stok,foto,tersedia,item_discount_pct
4,Nasi Goreng,Makanan,25000.0,9,img/nasi_goreng.jpg,1,0.0
5,Nasi Kuning,Makanan,18000.0,7,img/Nasi-Kuning.jpg,1,5.0
6,Strawberry Milkshake,Minuman,19000.0,5,img/strawberry_milkshake.jpg,1,0.0
7,Coconut Matcha,Minuman,21000.0,10,img/coconut_matcha.jpg,1,5.0
8,Beef Yakiniku,Makanan,25000.0,11,img/Beef-Yakiniku.jpg,1,4.0
7,Coconut Matcha,Minuman,21000.0,9,img/coconut_matcha.jpg,1,5.0
8,Beef Yakiniku,Makanan,25000.0,10,img/Beef-Yakiniku.jpg,1,4.0
9,Osaka Curry,Makanan,30000.0,14,img/osaka_curry.jpg,1,10.0
10,Choco Pudding,Dessert,20000.0,15,img/chocolate-pudding.jpg,1,8.0
11,Totoro Dango,Dessert,18000.0,9,img/dango.jpg,1,4.0

1 id nama kategori harga stok foto tersedia item_discount_pct
5 4 Nasi Goreng Makanan 25000.0 9 img/nasi_goreng.jpg 1 0.0
6 5 Nasi Kuning Makanan 18000.0 7 img/Nasi-Kuning.jpg 1 5.0
7 6 Strawberry Milkshake Minuman 19000.0 5 img/strawberry_milkshake.jpg 1 0.0
8 7 Coconut Matcha Minuman 21000.0 10 9 img/coconut_matcha.jpg 1 5.0
9 8 Beef Yakiniku Makanan 25000.0 11 10 img/Beef-Yakiniku.jpg 1 4.0
10 9 Osaka Curry Makanan 30000.0 14 img/osaka_curry.jpg 1 10.0
11 10 Choco Pudding Dessert 20000.0 15 img/chocolate-pudding.jpg 1 8.0
12 11 Totoro Dango Dessert 18000.0 9 img/dango.jpg 1 4.0

View File

@ -8,3 +8,4 @@ id,transaksi_id,metode_pembayaran,jumlah_bayar,status_pembayaran,tanggal_bayar,s
7,12,cash,100000.0,sukses,2025-12-14 21:46:15,
8,14,cash,100000.0,sukses,2025-12-14 21:46:20,
9,15,qris,46312.5,sukses,2025-12-15 08:52:51,
10,16,qris,24172.5,sukses,2025-12-15 09:39:21,

1 id transaksi_id metode_pembayaran jumlah_bayar status_pembayaran tanggal_bayar struk
8 7 12 cash 100000.0 sukses 2025-12-14 21:46:15
9 8 14 cash 100000.0 sukses 2025-12-14 21:46:20
10 9 15 qris 46312.5 sukses 2025-12-15 08:52:51
11 10 16 qris 24172.5 sukses 2025-12-15 09:39:21

View File

@ -0,0 +1,28 @@
═════════════════════════════════════════
TOTORO CAFE
Jl. Raya Totoro No. 123, Surabaya
Telp: 031-123456
═════════════════════════════════════════
No. Struk : STR-16-20251215
Tanggal : 15/12/2025 09:35
Meja : 2
Kasir : kasir
Pembayaran : QRIS
─────────────────────────────────────────
ITEM PESANAN:
─────────────────────────────────────────
Coconut Matcha
1 x Rp 21,000 Rp 21,000
Beef Yakiniku
1 x Rp 25,000 Rp 25,000
─────────────────────────────────────────
Subtotal : Rp 46,000
Diskon Item : Rp 2,050
Diskon Promo : Rp 19,778
─────────────────────────────────────────
TOTAL BAYAR : Rp 24,172
═════════════════════════════════════════
TERIMA KASIH ATAS KUNJUNGAN ANDA
SAMPAI JUMPA LAGI!
═════════════════════════════════════════

View File

@ -14,3 +14,4 @@ id,user_id,nomor_meja,total,status,promo_code,subtotal,item_discount,promo_disco
13,4,2,75300.0,dibayar,,80000.0,4700.0,0.0,2025-12-14 21:14:46
14,4,9,18400.0,dibayar,,20000.0,1600.0,0.0,2025-12-14 21:43:51
15,4,4,46312.5,dibayar,ANGIN,51000.0,2250.0,2437.5,2025-12-14 22:09:34
16,4,2,24172.5,dibayar,MERDEKA,46000.0,2050.0,19777.5,2025-12-15 09:35:44

1 id user_id nomor_meja total status promo_code subtotal item_discount promo_discount tanggal
14 13 4 2 75300.0 dibayar 80000.0 4700.0 0.0 2025-12-14 21:14:46
15 14 4 9 18400.0 dibayar 20000.0 1600.0 0.0 2025-12-14 21:43:51
16 15 4 4 46312.5 dibayar ANGIN 51000.0 2250.0 2437.5 2025-12-14 22:09:34
17 16 4 2 24172.5 dibayar MERDEKA 46000.0 2050.0 19777.5 2025-12-15 09:35:44