hungarodo / odoohu-plus

Odoo HU
https://hungarodo.hu/odoohu
Other
1 stars 0 forks source link

invoice document rate #6

Open gezzzan opened 3 months ago

gezzzan commented 3 months ago

“document_rate” field to account.move

Rationale: the exchange rate is determined by the company. It is fine for customer invoices.

However for vendor bills the maximum VAT HUF amount you can declare is what is indicated on the document by the issuer. The exchange rate used by the issuer can be different from what is used by the res.company in Odoo (res.currency.rate). A well-known problem in Hungary is that the MNB (Hungarian National Bank) announces its daily middle exchange rate around 12:00 every day. So if a foreign currency invoice is issued before noon it has a different rate when the other party puts it into accounting. Also companies can choose to use other rates, not just the MNB rate.

gezzzan commented 3 months ago

Odoo reply: (already done in 17.3) Yes, you’re right - for a long time this was a problem in many localizations and the team has been working on it. We merged the stored, editable exchange rate on invoices and vendor bills in 17.3, though I don’t think it’s possible to back-port it to 17.0.

gezzzan commented 3 months ago

invoice_currency_rate (float, computed): Multiplying a value in company currency with this value yields the value in document currency.

https://github.com/odoo/odoo/commit/bedffa80beb61c134e8f476ef2ca71f2bd66f554

gezzzan commented 3 weeks ago

Odoo's solution is complicated, we need a simple float field to enter document rate as it is visible on the document (or calculated by the accountant). Also provide a small calculator wizard to quickly compute and set the field from figures visible on the pdf/paper document

gezzzan commented 3 weeks ago

can be tested image image