Skip to content

1.30: Strange assertion error #2150

Description

@ipvych

Originally reported in mailing list: https://groups.google.com/g/hledger/c/UXBTSuTB-6s

My hledger --version is hledger 1.30.1, linux-x86_64

I noticed this at the end of the year when closing my balances that there was one posting that was being reported as not balanced by assertions even though it is balanced according what hledger reg -I and hledger bal -I reports and after a few tries managed to reproduce it down to following journal file:

2023-02-12 Withdraw
    assets:cash:mono:saved:rent  400 UAH
    equity:test

2023-06-17 Exchange
    assets:cash:petty:saved:rent  4.00 EUR @@ 400 UAH
    assets:cash:mono:saved:rent  = 0 UAH

2023-12-31 closing balances
    assets:cash:petty:saved:rent  -4.00 EUR = 0.00 EUR
    equity:opening/closing balances

When running hledger with this it reports balances as unbalanced. Removing the currency from assertion in "closing balances" transaction or removing assertion entirely from "Exchange" transaction removes the error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects3-fewAffects just a few users.annoyance4-majorMajor usability/doc bug, or any regression or crash.bountyThar's some kind o' loot on offer..duplicatejournalThe journal file format, and its features.regressionA backwards step, indicating a weakness in our QA. We don't like these.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions