Commit c89d0d08 authored by betz's avatar betz

public bookkeeping 0.2

parent eec9eade
Pipeline #42278953 failed with stage
in 54 seconds
2018:
donation:
title: Donations
in: !!float 40
out: 0
fooddrinks:
title: 'Food and drinks'
in: 6319.8
out: -2411.4
gas:
title: 'Gas for heating'
in: 0
out: !!float -900
membership:
title: 'Membership fees'
in: !!float 7940
out: 0
other:
title: Other
in: 0
out: !!float -155
rent:
title: Rent
in: 0
out: !!float -9350
services:
title: Services
in: 0
out: -96.38
tools:
title: Tools
in: 516.22
out: -653.51
unknown:
title: Unknown
in: 0
out: -191.18
2017:
fooddrinks:
title: 'Food and drinks'
in: !!float 4493
out: -723.3
gas:
title: 'Gas for heating'
in: 0
out: !!float -1168
membership:
title: 'Membership fees'
in: !!float 8075
out: 0
rent:
title: Rent
in: 0
out: !!float -9350
services:
title: Services
in: 0
out: -95.43
unknown:
title: Unknown
in: 188.5
out: 0
2016:
donation:
title: Donations
in: !!float 155
out: 0
fooddrinks:
title: 'Food and drinks'
in: 5352.05
out: -3265.88
gas:
title: 'Gas for heating'
in: 0
out: -1203.44
membership:
title: 'Membership fees'
in: !!float 8045
out: 0
other:
in: !!float 30
out: 0
rent:
title: Rent
in: 0
out: -11150.7
services:
title: Services
in: 0
out: -95.43
tools:
title: Tools
in: !!float 50
out: 0
unknown:
title: Unknown
in: 1.48
out: 0
2015:
fooddrinks:
title: 'Food and drinks'
in: 2468.1
out: -1112.35
gas:
title: 'Gas for heating'
in: 0
out: -2289.38
membership:
title: 'Membership fees'
in: 7065.5
out: !!float -96
other:
title: Other
in: !!float 80
out: 0
rent:
title: Rent
in: 0
out: !!float -3925
services:
title: Services
in: 0
out: -288.46
tools:
title: Tools
in: !!float 1638
out: -2247.44
unknown:
title: Unknown
in: !!float 220
out: 0
2014:
fooddrinks:
title: 'Food and drinks'
in: !!float 3590
out: -1372.41
gas:
title: 'Gas for heating'
in: 0
out: -1773.49
membership:
title: 'Membership fees'
in: !!float 5390
out: 0
other:
in: 0
out: -119.9
rent:
title: Rent
in: 0
out: !!float -3000
services:
title: Services
in: 0
out: -428.39
unknown:
title: Unknown
in: 0
out: -236.4
2013:
donation:
title: Donations
in: !!float 10
out: 0
fooddrinks:
title: 'Food and drinks'
in: !!float 5647
out: -3391.04
gas:
title: 'Gas for heating'
in: 0
out: !!float -350
membership:
title: 'Membership fees'
in: !!float 4300
out: 0
rent:
title: Rent
in: 0
out: !!float -3000
services:
title: Services
in: 0
out: -217.16
tools:
title: Tools
in: !!float 222
out: 0
unknown:
title: Unknown
in: !!float 3
out: 0
2012:
donation:
title: Donations
in: !!float 50
out: 0
fooddrinks:
title: 'Food and drinks'
in: !!float 2948
out: -809.26
gas:
title: 'Gas for heating'
in: 0
out: -541.63
membership:
title: 'Membership fees'
in: !!float 3280
out: 0
rent:
title: Rent
in: 0
out: !!float -1000
services:
title: Services
in: 0
out: !!float -70
unknown:
title: Unknown
in: 1.79
out: 0
2011:
fooddrinks:
title: 'Food and drinks'
in: !!float 350
out: -1225.61
gas:
title: 'Gas for heating'
in: 0
out: -245.2
membership:
title: 'Membership fees'
in: !!float 2800
out: 0
other:
title: Other
in: 0
out: -1549.77
services:
title: Services
in: 0
out: -89.4
tools:
title: Tools
in: 0
out: !!float -100
unknown:
title: Unknown
in: 0
out: -176.38
2010:
fooddrinks:
title: 'Food and drinks'
in: 1498.54
out: -1685.56
membership:
title: 'Membership fees'
in: 1341.6
out: 0
services:
title: Services
in: 0
out: -174.65
unknown:
title: Unknown
in: !!float 25
out: 0
2009:
fooddrinks:
title: 'Food and drinks'
in: !!float 820
out: -118.91
membership:
title: 'Membership fees'
in: 606.66
out: 0
services:
title: Services
in: 0
out: -99.8
unknown:
title: Unknown
in: 29.8
out: 0
items:
- type: membership
year: "2018"
month: "09"
amount: 275
- type: donations
year: "2018"
month: "09"
amount: 100
- type: "Drinks & food"
year: "2018"
month: "09"
amount: 130
- type: membership
year: "2018"
month: "10"
amount: 300
- type: donations
year: "2018"
month: "09"
amount: 100
- type: "Drinks & food"
year: "2018"
month: "10"
amount: 150
items:
- type: "rent"
year: "2018"
month: "09"
amount: 650
- type: "Gas"
year: "2018"
month: "09"
amount: 100
- type: "Electricity"
year: "2018"
month: "09"
amount: 100
- type: "Rent"
year: "2018"
month: "10"
amount: 650
- type: "Gas"
year: "2018"
month: "10"
amount: 100
- type: "Electricity"
year: "2018"
month: "10"
amount: 100
<table style="border: 1px solid white;">
<tr style="border: 1px solid white; background-color: #fb0404; color: white">
<td style="border: 1px solid white; padding: 3px 10px;">Period</td>
<td style="border: 1px solid white; padding: 3px 10px;">Type</td>
<td style="border: 1px solid white; padding: 3px 10px;">Amount</td>
</tr>
{{ $total := newScratch }}
{{ range .Site.Data.books.outgoing}}
{{range .items}}
{{.Scratch.Add "total" 1 }}
{{$date := (print .year "-" .month "-01" ) }}
<tr>
<td style="border: 1px solid white; padding: 3px 10px;">{{ dateFormat "Jan 2006" $date }}</td>
<td style="border: 1px solid white; padding: 3px 10px;">{{.type}}</td>
<td style="border: 1px solid white; padding: 3px 10px;">€{{.amount}}</td>
</tr>
{{ end }}
{{ end }}
</table>
{{ .Scratch.Get "total" }}
\ No newline at end of file
<table style="border: 1px solid white;">
<tr style="border: 1px solid white; background-color: #22ec7c; color: black">
<td style="border: 1px solid white; padding: 3px 10px;">Period</td>
<td style="border: 1px solid white; padding: 3px 10px;">Type</td>
<td style="border: 1px solid white; padding: 3px 10px;">Amount</td>
</tr>
{{ $total := newScratch }}
{{ range .Site.Data.books.incoming }}
{{range .items}}
{{.Scratch.Add "total" 1 }}
{{$date := (print .year "-" .month "-01" ) }}
<tr>
<td style="border: 1px solid white; padding: 3px 10px;">{{ dateFormat "Jan 2006" $date }}</td>
<td style="border: 1px solid white; padding: 3px 10px;">{{.type}}</td>
<td style="border: 1px solid white; padding: 3px 10px;">€{{.amount}}</td>
</tr>
{{ end }}
{{ end }}
</table>
{{ .Scratch.Get "total" }}
\ No newline at end of file
{{ $argyear := .Get "year"}}
{{ $.Scratch.Set "total" 0 }}
{{ range $year, $yearstats := .Site.Data.books.books }}
{{ if eq $argyear $year }}
<ul>
{{ range $category, $value := $yearstats }}
{{ if ne $value.in 0 }}
<li><strong>{{ $value.title }}:</strong> {{ $value.in }}€</li>
{{ $.Scratch.Set "total" (add ($.Scratch.Get "total") $value.in) }}
{{ end }}
{{ end }}
</ul>
{{ end }}
{{ end }}
==> <strong>Total:</strong> {{ math.Round ($.Scratch.Get "total") }}€
\ No newline at end of file
{{ $argyear := .Get "year"}}
{{ $.Scratch.Set "total" 0 }}
{{ range $year, $yearstats := .Site.Data.books.books }}
{{ if eq $argyear $year }}
<ul>
{{ range $category, $value := $yearstats }}
{{ if ne $value.out 0 }}
<li><strong>{{ $value.title }}:</strong> {{ $value.out }}€</li>
{{ $.Scratch.Set "total" (add ($.Scratch.Get "total") $value.out) }}
{{ end }}
{{ end }}
</ul>
{{ end }}
{{ end }}
==> <strong>Total:</strong> {{ math.Round ($.Scratch.Get "total") }}€
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment