andreasgerstmayr / fava-portfolio-returns

fava-portfolio-returns shows portfolio returns in Fava
GNU General Public License v2.0
36 stars 2 forks source link

Error with multi-currency groups #7

Closed c-vigo closed 6 months ago

c-vigo commented 7 months ago

The plugin raises an exception when a group is defined with multiple cash currencies. Following the example included, if one defines a group

group {    currency: "USD"    name: "Portfolio"    investment: "Assets:US:*" }

then an exception is raised: AssertionError: Inventory has more than one expected position: (90176.08 USD, 110.00 EUR) On the other hand, beangrow-returns is able to produce the expected reports without issues.

andreasgerstmayr commented 6 months ago

@c-vigo: can you try again with the latest changes? it should work now with multiple currencies in the same group.