I do have
P records for 5 currencies including EUR indeed but no EUR valued assets in this specific account. Here is the debug output with account / file names masked:
$ hledger -f .......j bal -V account --debug=1
trying reader: "journal"
reader result: "Journal ............ with 108 transactions, 19 accounts"
trying reader: "journal"
reader result: "Journal .......... with 0 transactions, 0 accounts"
balanceReport accts:
[ Account
account
( boring : n
, postings : 0
, ebalance : 0
, ibalance :
CAD (-86746.1177845870807500000000000000) EUR41 .
1042 USD81530 .
6700000000000000000000000000
)
, Account
account_OPT
( boring : n
, postings : 67
, ebalance : USD81530 . 6700000000000000000000000000
, ibalance : USD81530 . 6700000000000000000000000000
)
, Account
account_Cash
( boring : n
, postings : 107
, ebalance : CAD (-86746.1177845870807500000000000000) EUR41 . 1042
, ibalance : CAD (-86746.1177845870807500000000000000) EUR41 . 1042
)
]
balanceReport items:
[ ( "account"
, "account"
, 0
, Mixed
[ Amount
{ acommodity = "CAD"
, aquantity = -86746.11778458708075
, aprice = NoPrice
, astyle = AmountStylePP "L False 28 Just '.' Nothing.."
, amultiplier = False
}
, Amount
{ acommodity = "EUR"
, aquantity = 41.104211329
, aprice = NoPrice
, astyle = AmountStylePP "L False 4 Just '.' Nothing.."
, amultiplier = False
}
, Amount
{ acommodity = "USD"
, aquantity = 81530.67
, aprice = NoPrice
, astyle = AmountStylePP "L False 28 Just '.' Nothing.."
, amultiplier = False
}
]
)
, ( "account:OPT"
, "OPT"
, 1
, Mixed
[ Amount
{ acommodity = "USD"
, aquantity = 81530.67
, aprice = NoPrice
, astyle = AmountStylePP "L False 28 Just '.' Nothing.."
, amultiplier = False
}
]
)
, ( "account:Cash"
, "Cash"
, 1
, Mixed
[ Amount
{ acommodity = "CAD"
, aquantity = -86746.11778458708075
, aprice = NoPrice
, astyle = AmountStylePP "L False 28 Just '.' Nothing.."
, amultiplier = False
}
, Amount
{ acommodity = "EUR"
, aquantity = 41.104211329
, aprice = NoPrice
, astyle = AmountStylePP "L False 4 Just '.' Nothing.."
, amultiplier = False
}
]
)
]
CAD-86746.1177845870807500000000000000
EUR41.1042
USD81530.6700000000000000000000000000 account
CAD-86746.1177845870807500000000000000
EUR41.1042 Cash
USD81530.6700000000000000000000000000 OPT
--------------------
balanceReport total:
Mixed
[ Amount
{ acommodity = "CAD"
, aquantity = -86746.11778458708075
, aprice = NoPrice
, astyle = AmountStylePP "L False 28 Just '.' Nothing.."
, amultiplier = False
}
, Amount
{ acommodity = "EUR"
, aquantity = 41.104211329
, aprice = NoPrice
, astyle = AmountStylePP "L False 4 Just '.' Nothing.."
, amultiplier = False
}
, Amount
{ acommodity = "USD"
, aquantity = 81530.67
, aprice = NoPrice
, astyle = AmountStylePP "L False 28 Just '.' Nothing.."
, amultiplier = False
}
]
CAD-86746.1177845870807500000000000000
EUR41.1042
USD81530.6700000000000000000000000000