Implement cleaning to set all historic negative balances to zero

This commit is contained in:
2021-12-07 21:59:06 +00:00
parent edd1319222
commit a0ebdd01aa
7 changed files with 107 additions and 9 deletions

View File

@ -1,11 +1,11 @@
{{define "amount"}}
<span class="right {{if .IsZero}}zero{{else if not .GetPositive}}negative{{end}}">
<span class="right {{if .IsZero}}zero{{else if not .IsPositive}}negative{{end}}">
{{printf "%.2f" .GetFloat64}}
</span>
{{end}}
{{define "amount-cell"}}
<td class="right {{if .IsZero}}zero{{else if not .GetPositive}}negative{{end}}">
<td class="right {{if .IsZero}}zero{{else if not .IsPositive}}negative{{end}}">
{{printf "%.2f" .GetFloat64}}
</td>
{{end}}