deltas now accept currency, description, and break payee from all recipients
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user