Exchange rates - libracore/erpnextswiss GitHub Wiki
Introduction
For tax purposes, the Swiss government publishes monthly exchange rates. These can be imported into ERPNext.
Implementation
There is a script that automates the import of exchange rates. It can be execute from bench with
$ bench execute erpnextswiss.scripts.swiss_exchange_rates.read_rates
Automation
Automate this with a cron job to execute on the first day of the month.
For example with
$ sudo crontab -e
(add)
# update monthly exchange rates
0 1 1 * * cd /home/frappe/frappe-bench && /usr/local/bin/bench execute erpnextswiss.scripts.swiss_exchange_rates.read_rates