I tried „booking“ branch to use the „@ EUR“ syntax.
grammar.py, around line 740:
# If the price is specified for the entire amount, compute the effective
# price here and forget about that detail of the input syntax.
if istotal:
if position.units.number == ZERO:
number = ZERO
else:
if __allow_negative_prices__:
number = price.number/position.units.number
else:
number = price.number/abs(position.units.number)
price = Amount(number, price.currency)
But price.number is <class 'beancount.core.number.MISSING'> EUR, so line 740 fails with:
/w/beancount/src/python/beancount/parser/grammar.py:741: TypeError: unsupported operand type(s) for /: 'type' and 'decimal.Decimal'
Original report by clemente (Bitbucket: clemente, GitHub: clemente).
I tried „booking“ branch to use the „@ EUR“ syntax. grammar.py, around line 740:
But price.number is
<class 'beancount.core.number.MISSING'> EUR
, so line 740 fails with: