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

@ -18,7 +18,7 @@ func (n Numeric) GetFloat64() float64 {
return balance
}
func (n Numeric) GetPositive() bool {
func (n Numeric) IsPositive() bool {
if n.Status != pgtype.Present {
return true
}