This commit is contained in:
Bluwww 2025-12-13 20:14:17 +07:00
parent 306f76bf2e
commit 061a5f6dac
6 changed files with 16 additions and 5 deletions

View File

@ -2,3 +2,6 @@ id,transaksi_id,menu_id,qty,harga_satuan,subtotal_item
1,2,1,1,20000.0,20000.0 1,2,1,1,20000.0,20000.0
2,3,1,1,20000.0,20000.0 2,3,1,1,20000.0,20000.0
3,4,1,1,20000.0,20000.0 3,4,1,1,20000.0,20000.0
4,5,2,1,25000.0,25000.0
5,5,4,1,25000.0,25000.0
6,5,6,1,19000.0,19000.0

1 id transaksi_id menu_id qty harga_satuan subtotal_item
2 1 2 1 1 20000.0 20000.0
3 2 3 1 1 20000.0 20000.0
4 3 4 1 1 20000.0 20000.0
5 4 5 2 1 25000.0 25000.0
6 5 5 4 1 25000.0 25000.0
7 6 5 6 1 19000.0 19000.0

View File

@ -1,2 +1,5 @@
user_id,menu_id,order_count,last_ordered user_id,menu_id,order_count,last_ordered
4,1,3,2025-12-13 17:22:52 4,1,3,2025-12-13 17:22:52
1,2,1,2025-12-13 20:12:35
1,4,1,2025-12-13 20:12:35
1,6,1,2025-12-13 20:12:35

1 user_id menu_id order_count last_ordered
2 4 1 3 2025-12-13 17:22:52
3 1 2 1 2025-12-13 20:12:35
4 1 4 1 2025-12-13 20:12:35
5 1 6 1 2025-12-13 20:12:35

View File

@ -117,8 +117,8 @@ def seed_defaults():
promo_rows = read_all(PROMO_CSV) promo_rows = read_all(PROMO_CSV)
if not promo_rows: if not promo_rows:
promos = [ promos = [
('PARDEDE','percent',10,0), ('OPENING','percent',10,0),
('BOTAK','fixed',5000,20000), ('ANNIVERSARY','fixed',5000,20000),
] ]
rows = [] rows = []
for code,ptype,val,min_total in promos: for code,ptype,val,min_total in promos:

View File

@ -1,10 +1,10 @@
id,nama,kategori,harga,stok,foto,tersedia,item_discount_pct id,nama,kategori,harga,stok,foto,tersedia,item_discount_pct
1,Americano,Minuman,20000.0,7,img/americano.jpg,1,0.0 1,Americano,Minuman,20000.0,7,img/americano.jpg,1,0.0
2,Latte,Minuman,25000.0,4,img/latte.jpg,1,10.0 2,Latte,Minuman,25000.0,6,img/latte.jpg,1,10.0
3,Banana Cake,Dessert,30000.0,12,img/banana_cake.jpg,1,4.0 3,Banana Cake,Dessert,30000.0,12,img/banana_cake.jpg,1,4.0
4,Nasi Goreng,Makanan,25000.0,14,img/nasi_goreng.jpg,1,0.0 4,Nasi Goreng,Makanan,25000.0,13,img/nasi_goreng.jpg,1,0.0
5,Nasi Kuning,Makanan,18000.0,7,img/Nasi-Kuning.jpg,1,5.0 5,Nasi Kuning,Makanan,18000.0,7,img/Nasi-Kuning.jpg,1,5.0
6,Strawberry Milkshake,Minuman,19000.0,6,img/strawberry_milkshake.jpg,1,0.0 6,Strawberry Milkshake,Minuman,19000.0,5,img/strawberry_milkshake.jpg,1,0.0
7,Coconut Matcha,Minuman,21000.0,14,img/coconut_matcha.jpg,1,5.0 7,Coconut Matcha,Minuman,21000.0,14,img/coconut_matcha.jpg,1,5.0
8,Beef Yakiniku,Makanan,25000.0,13,img/Beef-Yakiniku.jpg,1,4.0 8,Beef Yakiniku,Makanan,25000.0,13,img/Beef-Yakiniku.jpg,1,4.0
9,Osaka Curry,Makanan,30000.0,15,img/osaka_curry.jpg,1,10.0 9,Osaka Curry,Makanan,30000.0,15,img/osaka_curry.jpg,1,10.0

1 id nama kategori harga stok foto tersedia item_discount_pct
2 1 Americano Minuman 20000.0 7 img/americano.jpg 1 0.0
3 2 Latte Minuman 25000.0 4 6 img/latte.jpg 1 10.0
4 3 Banana Cake Dessert 30000.0 12 img/banana_cake.jpg 1 4.0
5 4 Nasi Goreng Makanan 25000.0 14 13 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 6 5 img/strawberry_milkshake.jpg 1 0.0
8 7 Coconut Matcha Minuman 21000.0 14 img/coconut_matcha.jpg 1 5.0
9 8 Beef Yakiniku Makanan 25000.0 13 img/Beef-Yakiniku.jpg 1 4.0
10 9 Osaka Curry Makanan 30000.0 15 img/osaka_curry.jpg 1 10.0

View File

@ -1 +1,5 @@
code,type,value,min_total code,type,value,min_total
OPENING,percent,10,0
ANNIVERSARY,fixed,5000,20000
MERDEKA,percent,45.0,30000.0
CAFETOTORO,fixed,7000.0,10000.0

1 code type value min_total
2 OPENING percent 10 0
3 ANNIVERSARY fixed 5000 20000
4 MERDEKA percent 45.0 30000.0
5 CAFETOTORO fixed 7000.0 10000.0

View File

@ -3,3 +3,4 @@ id,user_id,nomor_meja,total,status,promo_code,subtotal,item_discount,promo_disco
2,4,1,20000.0,dibayar,,20000.0,0.0,0.0,2025-12-13 16:17:53 2,4,1,20000.0,dibayar,,20000.0,0.0,0.0,2025-12-13 16:17:53
3,4,3,20000.0,dibayar,,20000.0,0.0,0.0,2025-12-13 16:33:41 3,4,3,20000.0,dibayar,,20000.0,0.0,0.0,2025-12-13 16:33:41
4,4,2,20000.0,dibayar,,20000.0,0.0,0.0,2025-12-13 17:22:52 4,4,2,20000.0,dibayar,,20000.0,0.0,0.0,2025-12-13 17:22:52
5,1,2,59500.0,dibayar,CAFETOTORO,69000.0,2500.0,7000.0,2025-12-13 20:12:35

1 id user_id nomor_meja total status promo_code subtotal item_discount promo_discount tanggal
3 2 4 1 20000.0 dibayar 20000.0 0.0 0.0 2025-12-13 16:17:53
4 3 4 3 20000.0 dibayar 20000.0 0.0 0.0 2025-12-13 16:33:41
5 4 4 2 20000.0 dibayar 20000.0 0.0 0.0 2025-12-13 17:22:52
6 5 1 2 59500.0 dibayar CAFETOTORO 69000.0 2500.0 7000.0 2025-12-13 20:12:35