This commit is contained in:
Bel LaPointe
2023-10-24 07:25:55 -06:00
parent 3ea29abf8b
commit 2495e06d53
2 changed files with 32 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
package ledger
import "fmt"
type Currency string
const (
@@ -32,3 +34,7 @@ func (delta Delta) Plus(other Delta) Delta {
Currency: other.Currency,
}
}
func (delta Delta) Debug() string {
return fmt.Sprintf("{@%s %s:\"%s\" %.2f %s}", delta.Date, delta.Account, delta.Description, delta.Value, delta.Currency)
}