Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-c command line option doesn't style the budget amounts #1907

Closed
elfehr opened this issue Aug 3, 2022 · 1 comment
Closed

-c command line option doesn't style the budget amounts #1907

elfehr opened this issue Aug 3, 2022 · 1 comment
Assignees
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. balance budget The balance command's --budget report

Comments

@elfehr
Copy link

elfehr commented Aug 3, 2022

Here's a basic file with a posting and a budget with one display style:

decimal-mark .
D 1 000.00

~ monthly from 2022-08-01
   expenses        5 500.00
   budget

2022-08-03
    expenses         1 000.50
    assets 

I tried to get rid of the thousands separator in the budget report with the -c option so another software down the line doesn't choke on the space, but it only applies to the expenses part and not the budget part:

LEDGER_FILE=test.journal hledger bal --budget expenses -M -c '1.000,0'
Budget performance in 2022-08:

          ||                       Aug 
==========++===========================
 expenses || 1.000,5 [18% of 5 500.00] 
----------++---------------------------
          || 1.000,5 [18% of 5 500.00] 

In the csv export too, which is where it mostly caused problems in my case:

LEDGER_FILE=test.journal hledger bal --budget expenses -M -c '1.000,0' -O csv
"Account","2022-08","budget"
"expenses","1.000,5","5 500.00"
"Total:","1.000,5","5 500.00"
@elfehr elfehr added the A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. label Aug 3, 2022
@simonmichael simonmichael added balance budget The balance command's --budget report labels Aug 3, 2022
@simonmichael
Copy link
Owner

Thanks! Fixed in master.

@simonmichael simonmichael self-assigned this Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. balance budget The balance command's --budget report
Projects
No open projects
Development

No branches or pull requests

2 participants