diff --git a/src/ledger/delta.go b/src/ledger/delta.go index 929e5e9..3769719 100644 --- a/src/ledger/delta.go +++ b/src/ledger/delta.go @@ -41,6 +41,10 @@ func newDelta(transaction string, payee bool, d, desc, name string, v float64, c } } +func (delta Delta) ID() string { + return fmt.Sprintf("%.2f", delta.Value) +} + func (delta Delta) withWith(other Delta) Delta { other.with = nil delta.with = append(delta.with, other)