register and balances accept bpi

This commit is contained in:
Bel LaPointe
2023-10-25 14:02:44 -06:00
parent f2ec1233d7
commit 6b666c7220
5 changed files with 54 additions and 26 deletions

View File

@@ -28,15 +28,6 @@ func newDelta(d, desc, name string, v float64, c string, isSet bool) Delta {
}
}
func (delta Delta) Plus(other Delta) Delta {
return Delta{
Date: other.Date,
Name: delta.Name,
Value: delta.Value + other.Value,
Currency: other.Currency,
}
}
func (delta Delta) Debug() string {
return fmt.Sprintf("{@%s %s:\"%s\" %s%.2f %s}", delta.Date, delta.Name, delta.Description, func() string {
if !delta.isSet {