diff --git a/detail_transaksi.csv b/detail_transaksi.csv index c5fc900..a64ef64 100644 --- a/detail_transaksi.csv +++ b/detail_transaksi.csv @@ -23,3 +23,5 @@ id,transaksi_id,menu_id,qty,harga_satuan,subtotal_item 22,13,2,1,25000.0,25000.0 23,13,3,1,30000.0,30000.0 24,14,10,1,20000.0,20000.0 +25,15,3,1,30000.0,30000.0 +26,15,7,1,21000.0,21000.0 diff --git a/favorite.csv b/favorite.csv index 1fae188..17af026 100644 --- a/favorite.csv +++ b/favorite.csv @@ -5,9 +5,9 @@ user_id,menu_id,order_count,last_ordered 1,6,1,2025-12-13 20:12:35 4,2,3,2025-12-14 21:14:46 4,4,3,2025-12-14 10:35:35 -4,3,4,2025-12-14 21:14:46 +4,3,5,2025-12-14 22:09:34 4,11,1,2025-12-14 01:44:46 -4,7,3,2025-12-14 21:12:55 +4,7,4,2025-12-14 22:09:34 4,8,2,2025-12-14 21:14:46 4,9,1,2025-12-14 09:50:02 4,10,1,2025-12-14 21:43:51 diff --git a/main.py b/main.py index 6c7b917..2f9cd69 100644 --- a/main.py +++ b/main.py @@ -2766,6 +2766,8 @@ class App: del self.cart_items[idx] self.update_cart_display() + + self.reload_order_menu_cards() def clear_cart(self): """Kosongkan keranjang""" @@ -2775,6 +2777,8 @@ class App: if messagebox.askyesno("Konfirmasi", "Kosongkan keranjang?"): self.cart_items = [] self.update_cart_display() + + self.reload_order_menu_cards() def checkout_order(self): """Simpan pesanan ke database""" diff --git a/meja.csv b/meja.csv index 2fe4157..9553425 100644 --- a/meja.csv +++ b/meja.csv @@ -1,11 +1,11 @@ nomor_meja,status,transaksi_id -1,kosong, -2,kosong, +1,terisi, +2,terisi, 3,kosong, 4,kosong, 5,kosong, 6,kosong, -7,kosong, +7,terisi, 8,kosong, 9,kosong, 10,kosong, diff --git a/menu.csv b/menu.csv index 200e799..4c8ac74 100644 --- a/menu.csv +++ b/menu.csv @@ -1,11 +1,11 @@ id,nama,kategori,harga,stok,foto,tersedia,item_discount_pct 1,Americano,Minuman,20000.0,7,img/americano.jpg,1,0.0 2,Latte,Minuman,25000.0,3,img/latte.jpg,1,10.0 -3,Banana Cake,Dessert,30000.0,7,img/banana_cake.jpg,1,4.0 +3,Banana Cake,Dessert,30000.0,6,img/banana_cake.jpg,1,4.0 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,11,img/coconut_matcha.jpg,1,5.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 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 diff --git a/pembayaran.csv b/pembayaran.csv index 96908bf..e2bb2de 100644 --- a/pembayaran.csv +++ b/pembayaran.csv @@ -7,3 +7,4 @@ id,transaksi_id,metode_pembayaran,jumlah_bayar,status_pembayaran,tanggal_bayar,s 6,13,qris,75300.0,sukses,2025-12-14 21:17:59, 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, diff --git a/promo.csv b/promo.csv index 19b8735..c0f6863 100644 --- a/promo.csv +++ b/promo.csv @@ -3,3 +3,4 @@ OPENING,percent,10,0 ANNIVERSARY,fixed,5000,20000 MERDEKA,percent,45.0,30000.0 CAFETOTORO,fixed,7000.0,10000.0 +ANGIN,percent,5.0,15000.0 diff --git a/struk/STR-15-20251215_085251.txt b/struk/STR-15-20251215_085251.txt new file mode 100644 index 0000000..a01d940 --- /dev/null +++ b/struk/STR-15-20251215_085251.txt @@ -0,0 +1,28 @@ +═════════════════════════════════════════ + TOTORO CAFE + Jl. Raya Totoro No. 123, Surabaya + Telp: 031-123456 +═════════════════════════════════════════ + +No. Struk : STR-15-20251215 +Tanggal : 14/12/2025 22:09 +Meja : 4 +Kasir : kasir +Pembayaran : QRIS +───────────────────────────────────────── +ITEM PESANAN: +───────────────────────────────────────── +Banana Cake + 1 x Rp 30,000 Rp 30,000 +Coconut Matcha + 1 x Rp 21,000 Rp 21,000 +───────────────────────────────────────── +Subtotal : Rp 51,000 +Diskon Item : Rp 2,250 +Diskon Promo : Rp 2,438 +───────────────────────────────────────── +TOTAL BAYAR : Rp 46,312 +═════════════════════════════════════════ + TERIMA KASIH ATAS KUNJUNGAN ANDA + SAMPAI JUMPA LAGI! +═════════════════════════════════════════ diff --git a/transaksi.csv b/transaksi.csv index 7e79130..de86766 100644 --- a/transaksi.csv +++ b/transaksi.csv @@ -13,3 +13,4 @@ id,user_id,nomor_meja,total,status,promo_code,subtotal,item_discount,promo_disco 12,4,1,19950.0,dibayar,,21000.0,1050.0,0.0,2025-12-14 21:12:55 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