Skip to content

Unbalanced multi-commodity transaction after upgrading to 1.32.1 #2135

@stewmehr

Description

@stewmehr

Hi there,

I have trouble with a slightly modified/updated version of the transaction mentioned in #2057. The following ledger file

commodity 1,000.00 €
commodity 1,000.0000 "LYX0Q0"

2023-01-18=2023-01-16
     assets:stewmehr:bnp:giro                                       -304.0 €
     assets:stewmehr:bnp:depot:LYX0Q0:20230116    1.5111 "LYX0Q0" @ 200.65 €
     expenses:depot:gebuehren                                         0.80 €

used to cause no issues on my end until I recently upgraded hledger. It appears that the significant digits that are defined along with the commodities are no longer respected. I am well aware that the transaction is not balanced in a strict sense (there should be a difference of -0,002215 €) but as far as I can remember previous versions of hledger were able to "ignore" this numerical issue.

13 | 2023-01-18=2023-01-16
   |     assets:stewmehr:bnp:giro                                       -304.0 €
   |     assets:stewmehr:bnp:depot:LYX0Q0:20230116    1.5111 "LYX0Q0" @ 200.65 €
   |     expenses:depot:gebuehren                                         0.80 €

This multi-commodity transaction is unbalanced.
The real postings' sum should be 0 but is: 0
Consider adjusting this entry's amounts, adding missing postings,
or recording conversion price(s) with @, @@ or equity postings.
This multi-commodity transaction is unbalanced.
The real postings' sum should be 0 but is: 0
Consider adjusting this entry's amounts, adding missing postings,
or recording conversion price(s) with @, @@ or equity postings.

Version:
hledger 1.32.1, mac-x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects4-manyAffects potentially a significant number of users.annoyance2-minorMinor to moderate usability/doc bug, reasonably easy to avoid or tolerate.docsDocumentation-related.journalThe journal file format, and its features.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions