Entry points > Module Supervisor > Standard script AINICOURS 

RECHTCH: Forcing the rate

This entry point makes it possible to force a currency rate. For example, it makes it possible to initialize the currency rate according to the invoicing site.

Context and operating method

Variables COURMUL and COURDIV are respectively initialized in this subprogram by the reverse exchange rate and the divisor.

This entry point is used to give a new value to these variables.

In V5, TRTDEV (and consequently, EP RECHTCH) processing is called upon entering the currency on journal entry; therefore, it was possible to modify the recovered currency rate.
In V6, AINICOURS processing is called in SUBSCL, so it is not necessary to carry out anything in RECHTCH on journal entry.