|
|
@@ -25,6 +25,7 @@ import ( |
|
|
|
"github.com/golang-jwt/jwt/v4" |
|
|
|
"github.com/disintegration/gift" |
|
|
|
"github.com/brianvoe/gofakeit/v6" |
|
|
|
"github.com/dustin/go-humanize" |
|
|
|
"image" |
|
|
|
"image/png" |
|
|
|
_ "image/jpeg" |
|
|
@@ -264,7 +265,7 @@ func cache(name string, title string) Page { |
|
|
|
func cachePdf(name string) Page { |
|
|
|
// Money is stored in cents, so it must be converted to dollars in reports |
|
|
|
dollars := func(cents int) string { |
|
|
|
return strconv.FormatFloat(float64(cents)/100, 'f', 2, 32) |
|
|
|
return humanize.Commaf(float64(cents)/100) |
|
|
|
} |
|
|
|
|
|
|
|
// For calculating down payments |
|
|
|