GNOME Bugzilla – Bug 630578
current date instead of posting date in exchange rate, when posting a bill
Last modified: 2018-06-29 22:45:05 UTC
Create a bill from a supplier in foreign currency in the past e.g. 2010-01-02. For the details use expense accounts in domestic currency. Correcly GC informs you: At least one account is in a different currency before the exchange rate dialog appears. But the dialog shows instead of posting date the current date. Consequently it offers the most recent exchange rate instead of closest in time. The rate is also stored with the current date, which makes it hard or impossible, to find it again, if you made an error. N.B. It would be nice, if the dialog were not modal, so you could open the price datebase for researching the right rate.
I have changed the invoice posting code to use the post date from now on in the exchange rate dialog and also for storing the new exchange rate. Making the dialog not modal is not an option in the current code. The dialog appears in the middle of a post operation and the result of this operation depends on the actions taken by the user in the dialog. If it were not modal, the user could for example unpost the invoice again and make changes while the exchange rate dialog is still open. Note: this fix will not be backported to 2.4. The code in this area changed too much between 2.4 and current trunk.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=630578. Please update any external references or bookmarks.