invopop / gobl

Go Business Language
Apache License 2.0
93 stars 8 forks source link

Multiple currencies in multiple items #187

Closed cavalle closed 5 months ago

cavalle commented 1 year ago

At the moment, GOBL allows to specify the currency at item level, if the currency is different than the invoice's one. However, at the time of calculating totals, different lines with different currencies are summed together as if they had the same currency.

We need to review this behaviour as probably the exchange rates information (if present) should be used to calculate totals in the invoice's currency properly (or a validation error be returned if the exchange rates required to calculate the totals are missing)

samlown commented 5 months ago

This one is solved now 👍