non usd 3 decimal places
cicd / ci (push) Successful in 48s Details

main
Bel LaPointe 2025-04-11 09:29:13 -06:00
parent 0b4d78796e
commit 9681050a46
1 changed files with 2 additions and 0 deletions

View File

@ -201,8 +201,10 @@ func FPrintBalances(w io.Writer, linePrefix string, balances, cumulatives ledger
for _, currency := range currencies {
printableCurrency := currency
format := format
if printableCurrency != "$" {
printableCurrency += " "
format = strings.ReplaceAll(format, "%.2f", "%.3f")
}
if usdOnly && printableCurrency != "$" {
continue