-
Notifications
You must be signed in to change notification settings - Fork 1
/
month-stat.html
83 lines (64 loc) · 2.51 KB
/
month-stat.html
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
{{ define "trans_list_table"}}
{{if gt (len $.TransList) 0 }}
<table class="table">
<tr>
<th>时间</th>
<th>交易方</th>
<th>商品</th>
<th>金额</th>
</tr>
{{range $trans := $.TransList}}
{{if $trans.IsShowInList}}
<tr>
<td>{{$trans.GetCreatedTime}}</td>
<td>{{$trans.GetTarget}}</td>
<td>{{$trans.GetProduct}}</td>
<td>{{$trans.GetFormatAmount}}</td>
</tr>
{{end}}
{{end}}
</table>
{{end}}
{{ end }}
{{ define "content" }}
<h1>{{$.YearMonth}} 收支统计报告</h1>
<hr>
<h2>1. 收入</h2>
<h3>2.1 转账收入明细 ({{$.IncomeTransfer.FormatTotal}})</h3>
{{ template "trans_list_table" $.IncomeTransfer }}
<h3>1.2 其他收入明细 ({{$.Income.FormatTotal}})</h3>
{{ template "trans_list_table" $.Income }}
<hr>
<h2>2. 投资 ({{$.Investment.FormatTotal}})</h2>
{{ template "trans_list_table" $.Investment }}
<hr>
<h2>3. 贷款</h2>
<h3>3.1 贷款明细 ({{$.Loan.FormatTotal}})</h3>
{{ template "trans_list_table" $.Loan }}
<h3>3.2 贷款还款明细 ({{$.LoanRepayment.FormatTotal}})</h3>
{{ template "trans_list_table" $.LoanRepayment }}
<hr>
<h2>4. 支出</h2>
<h3>4.1 信用还款明细 ({{$.CreditRepayment.FormatTotal}})</h3>
{{ template "trans_list_table" $.CreditRepayment }}
<h3>4.2 交通明细 ({{$.ExpenseTravel.FormatTotal}})</h3>
{{ template "trans_list_table" $.ExpenseTravel }}
<h3>4.3 餐饮明细 ({{$.ExpenseEat.FormatTotal}})</h3>
{{ template "trans_list_table" $.ExpenseEat }}
<h3>4.4 水电明细 ({{$.ExpenseWaterElectGas.FormatTotal}})</h3>
{{ template "trans_list_table" $.ExpenseWaterElectGas }}
<h3>4.5 话费明细 ({{$.ExpenseTel.FormatTotal}})</h3>
{{ template "trans_list_table" $.ExpenseTel }}
<h3>4.6 其他明细 ({{$.ExpenseOther.FormatTotal}})</h3>
{{ template "trans_list_table" $.ExpenseOther }}
<hr>
<h2>6. 转账收支</h2>
<h3>5.1 转账收入明细 ({{$.IncomeTransfer.FormatTotal}})</h3>
{{ template "trans_list_table" $.IncomeTransfer }}
<h3>5.2 转账支出明细 ({{$.ExpenseTransfer.FormatTotal}})</h3>
{{ template "trans_list_table" $.ExpenseTransfer }}
<hr>
<h2>6. 其他</h2>
<h3>6.1 内部转账明细 ({{$.InnerTransfer.FormatTotal}})</h3>
{{ template "trans_list_table" $.InnerTransfer }}
{{ end }}