I have setup the multicurrency several years ago and always updated it manually, I found a post to update them with an API key from https://currencylayer.com/ but I could only press the sync once, then it disappeared.
Under Home->Setup->Other Setup we added the following as a precautionary measure:
MAIN_MULTICURRENCY_ALLOW_SYNCHRONIZATION (set to 1)
MULTICURRENCY_DISABLE_SYNC_CURRENCYLAYER (set to 0)
directly in the code, in module: multicurrency/class/multicurrency.class.php, we commented out the global variable: MULTICURRENCY_DISABLE_SYNC_CURRENCYLAYER as it seems to break the sync features of the module. As the same variable was defined in the “Other Setup” section of Dolibarr, these feature is still available.
Thanks for the detailed information, I checked the Multicurrency field and it was there.
I upgraded a while ago to 20.0.0, and the sync button was there; maybe a fix I didn’t notice in the commits. Credits are being used from the API platform. https://currencylayer.com/ now, every time I hit Sync. The sync did not work yet, and will try your suggestion to comment out the global variable: MULTICURRENCY_DISABLE_SYNC_CURRENCYLAYER
Same here with version 20.0.3
Now clicking in the sync button, a message is displayed explaining the sync with Currencylayer is correclty performed. Also in the dashboard of currency layer we see that the counter of API calls is incremented. If is used an API call using the browser, also works fine.
But the problem is that the new entry in the db of dolibar with the new exchange rate is not created.
Any iedea how to fix it ?