This commit is contained in:
@@ -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 {
|
func (delta Delta) withWith(other Delta) Delta {
|
||||||
other.with = nil
|
other.with = nil
|
||||||
delta.with = append(delta.with, other)
|
delta.with = append(delta.with, other)
|
||||||
|
|||||||
Reference in New Issue
Block a user