YAY
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user