-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbill.py
More file actions
executable file
·90 lines (87 loc) · 2.19 KB
/
bill.py
File metadata and controls
executable file
·90 lines (87 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python2
from billsplit import billsplit
all = ["MR", "JS", "MH", "PT", "JR"]
bills = [
{
'name': "Geschenk Micha",
'lender': "MR",
'debtors': all,
'amount': 38.99+1.37,
'comment': "Ardberg + Chinaplastik",
'date': '2013-10-01',
'currency': 'EUR'
},
{
'name': "Tanken Berlin",
'lender': "MR",
'debtors': ["MR", "JS", "PT", "JR"],
'amount': 68.63,
'comment': "",
'date': '2013-10-01',
'currency': 'EUR'
},
{
'name': "Tanken Weinsberg 1",
'lender': "MR",
'debtors': all,
'amount': 87.17,
'comment': "",
'date': '2013-10-01',
'currency': 'EUR'
},
{
'name': "Tanken Weinsberg 2",
'lender': "MR",
'debtors': all,
'amount': 30.03,
'comment': "Weinsberg - KA - Weinsberg",
'date': '2013-10-01',
'currency': 'EUR'
},
{
'name': "Kaufland Weinsberg",
'lender': "MR",
'debtors': all,
'amount': 0.55+1.25+2.49+1.05+0.45,
'comment': "Baguette, Salat, ...",
'date': '2013-10-01',
'currency': 'EUR'
},
{
'name': "Kaufland Weinsberg",
'lender': "MR",
'debtors': ["PT"],
'amount': 14.8/10.0+2.4+0.57+3.77/4.0,
'comment': "Bier, Milch, Bananen, Steak",
'date': '2013-10-01',
'currency': 'EUR'
},
{
'name': "Kaufland Weinsberg",
'lender': "MR",
'debtors': ["MH"],
'amount': 14.8/20.0+3.77/2.0,
'comment': "Bier, Steaks",
'date': '2013-10-01',
'currency': 'EUR'
},
{
'name': "Kaufland Weinsberg",
'lender': "MR",
'debtors': ["MR", "JS"],
'amount': 14.8*17.0/20.0+3.10,
'comment': "Bier, Pfand",
'date': '2013-10-01',
'currency': 'EUR'
},
{
'name': "KVV Ticket",
'lender': "JS",
'debtors': ["MR", "JS", "JR"],
'amount': 25.00,
'comment': "",
'date': '2013-10-01',
'currency': 'EUR'
},
]
billsplit(bills)