-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwallet.txt
57 lines (47 loc) · 1.67 KB
/
wallet.txt
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
This app helps to control your own finances, your wallet.
It contains accounts, period of the your money spends,
transactions with date, value and categories of spends.
Also it contains functions with count your spends on average.
App connects to database and makes a manipulation with data, after that returns the data to db.
Class Period
date field with start of period date, default value is today, set date with celendar
date field with end period date,set the date with celendar
function current ,date returns the current date,
function current day return current day of period
Class Account:
func set_account(name)
field account
fielf marker
Class Transaction
func choose category
func choose account from Account
func set spent.value()
char field description(text_field)
date = Period.current_date()
func set_transaction
Class SpendCategory:
func add_cat():
name = setCatName()
plan = setValue()
spent = 0(default)
fact_cat(count spents of category):
fact = count all spends in cat()
return fact
total spends planed(count all spends in categories from plan)
total spends fact(count all from fact_cat)
class Account:
field account_name
field account_value
class Transaction:
transaction_name
transaction_value
transaction_account = Account
transaction_date
func set_spend:
spend = transaction_account.value-transaction_value
return spend
class Wallet:
account = Account
transaction = Transaction
transaction.transaction_account = account
account.account_value = transaction.set_spend()