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

balance --budget should respect -H/--historical, --cumulative #1879

Closed
simonmichael opened this issue Jul 8, 2022 · 2 comments
Closed

balance --budget should respect -H/--historical, --cumulative #1879

simonmichael opened this issue Jul 8, 2022 · 2 comments
Assignees
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. balance budget The balance command's --budget report

Comments

@simonmichael
Copy link
Owner

Reported by dentalfloss on chat: balance --budget respects -H/--historical and --cumulative for actual amounts but not for goal amounts. We'd like to fix this, I am looking into it.

@simonmichael simonmichael added A-WISH Some kind of improvement request, hare-brained proposal, or plea. balance budget The balance command's --budget report labels Jul 8, 2022
@simonmichael simonmichael reopened this Jul 12, 2022
@simonmichael
Copy link
Owner Author

A new failing example from dentalfloss. The date span within the periodic rule should also be enforced:

~ every february 2nd from 2020/01
    Expenses:Operating:CME      414.00 CAD
    Assets:Chequing
    
#  hledger -fbudget.acct balance --budget -MH -b2020/01 -e2020/04
# Budget performance in 2020Q1:
# 
#                         ||            2020-01-31             2020-02-29             2020-03-31
# ========================++=====================================================================
#  Assets:Chequing        || 0 [0% of -414.00 CAD]  0 [0% of -828.00 CAD]  0 [0% of -828.00 CAD]
#  Expenses:Operating:CME || 0 [0% of  414.00 CAD]  0 [0% of  828.00 CAD]  0 [0% of  828.00 CAD]
# ------------------------++---------------------------------------------------------------------
#                         || 0 [                0]  0 [                0]  0 [                0]
                        
# hledger -fbudget.acct balance --budget -DH -b2020/02/01 -e2020/02/07
# Budget performance in 2020-02-01..2020-02-06:
# 
#                         ||            2020-02-01             2020-02-02             2020-02-03             2020-02-04             2020-02-05             2020-02-06
# ========================++==========================================================================================================================================
#  Assets:Chequing        || 0 [0% of -414.00 CAD]  0 [0% of -828.00 CAD]  0 [0% of -828.00 CAD]  0 [0% of -828.00 CAD]  0 [0% of -828.00 CAD]  0 [0% of -828.00 CAD]
#  Expenses:Operating:CME || 0 [0% of  414.00 CAD]  0 [0% of  828.00 CAD]  0 [0% of  828.00 CAD]  0 [0% of  828.00 CAD]  0 [0% of  828.00 CAD]  0 [0% of  828.00 CAD]
# ------------------------++------------------------------------------------------------------------------------------------------------------------------------------
#                         || 0 [                0]  0 [                0]  0 [                0]  0 [                0]  0 [                0]  0 [                0]

@simonmichael
Copy link
Owner Author

Fixed by 7068517.

@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-WISH Some kind of improvement request, hare-brained proposal, or plea. balance budget The balance command's --budget report
Projects
No open projects
Development

No branches or pull requests

1 participant