Closed Fmartinsz closed 9 months ago
Hi @dreispt, some modules you are maintaining are being modified, check this out!
Hi, the balance is total amount, not per unit amount, right? Also, I worry about the case where price can be tax inclusive (b2c).
@dreispt thanks for your help, you are correct. I'm going to assume that the company's currency is EUR as I also assume it should be the case when using InvoiceXpress (it doesn't necessarily need to be like this but it simplifies since we can grab the currency from the company instead of getting the external id of euro currency).
If the line's currency is different than company's currency, we are now converting the unit price to company's currency.
Found out that when sending the invoice amount using another currency than Euro, the conversion would be wrong. This is due to invoicexpress expecting to receive the amount in Euro and proceeding to exchange to whatever currency we sent. Using the balance field, Odoo will automatically exchange the amount to the currency that is set in the users Company, which needs to be set to Euro.