deltas now accept currency, description, and break payee from all recipients

This commit is contained in:
Bel LaPointe
2023-10-24 05:57:42 -06:00
parent 79effffc47
commit cafb40514c
3 changed files with 54 additions and 21 deletions

View File

@@ -11,18 +11,20 @@ const (
)
type Delta struct {
Date time.Time
Account string
Value float64
Currency Currency
Date time.Time
Account string
Value float64
Currency Currency
Description string
}
func newDelta(d time.Time, a string, v float64) Delta {
func newDelta(d time.Time, desc, acc string, v float64, c string) Delta {
return Delta{
Date: d,
Account: a,
Value: v,
Currency: USD, // TODO
Date: d,
Account: acc,
Value: v,
Currency: Currency(c),
Description: desc,
}
}