ledger123 / runmyaccounts

SQL-Ledger Customizations by Run My Accounts
GNU General Public License v2.0
16 stars 9 forks source link

[Support production / IBP-832] - SQL-Ledger - Exchange rate is calculated differently #485

Closed MariaHashimi closed 5 months ago

MariaHashimi commented 7 months ago

Detailed Description:

From: https://runmyaccounts.zendesk.com/agent/tickets/54437

Here we have the case that the EUR exchange rate is calculated twice differently with the same amount.

Example:

1) Exemple 1

Exchange rate at 01.02.2024: 0.9458 CHF / EUR (https://my.runmyaccounts.com/#/settings/goodform/accounting/currencies/EUR )

EUR 339.05 = CHF 320.67 → exchange rate difference of CHF 18.38.

12871-240208-0002 has an exchange rate difference of CHF 18.38 which is correct.

UBS CH450023023080570960L 11.2023 (4728941-999) has an exchange rate difference of CHF 10.85 which is wrong.

The problem seems to lie here: image-20240327-064611

For the exchange rate difference, the exchange rate of the invoice (0.9680) is taken instead of the exchange rate of the payment (0.9458).

Impact:

Manual adjustments needed from accountant.

Steps to Reproduce:

Unknown as these bookings were made by the system.

Affected Components:

General ledger.

Steps Taken (if any):

Analysed bookings. There’s also a second example:

12871-231023-0103 vs. 12871-240212-0022

ledger123 commented 7 months ago

Hi @MariaHashimi ,

I will be grateful if you can reproduce this bug on our demo server at https://app.ledger123.com/rma

Regards

MariaHashimi commented 5 months ago

Hi @ledger123, I've received the following comment from Philip

Cannot reproduce on Armaghan’s server. We booked it manually there with the same amounts and fx rates and everything was fine. We assume the root cause lies in the automatic booking from Booka that takes another fx rate than SQL Ledger.

image-20240606-123421

So I will close this ticket and check with Suzana