dates can be strings i dont care

This commit is contained in:
Bel LaPointe
2023-10-24 06:19:26 -06:00
parent 459bc54760
commit 392036f2b0
4 changed files with 43 additions and 30 deletions

View File

@@ -1,9 +1,5 @@
package ledger
import (
"time"
)
type Currency string
const (
@@ -11,14 +7,14 @@ const (
)
type Delta struct {
Date time.Time
Date string
Account string
Value float64
Currency Currency
Description string
}
func newDelta(d time.Time, desc, acc string, v float64, c string) Delta {
func newDelta(d, desc, acc string, v float64, c string) Delta {
return Delta{
Date: d,
Account: acc,