Doc
This commit is contained in:
parent
8c99c91015
commit
ec8a87a3cb
2 changed files with 5 additions and 5 deletions
|
|
@ -152,7 +152,7 @@ class modMultiCurrency extends DolibarrModules
|
|||
'objectname'=>'MultiCurrency',
|
||||
'method'=>'syncRates',
|
||||
'parameters'=>'0,0,cron',
|
||||
'comment'=>'Update all the currencies using the currencylayer API. An API key needs to be given in the multi-currency module config page',
|
||||
'comment'=>'Update all the currencies using the currencylayer API. An API key needs to be given in the multi-currency module config page to have this job working.<br>First param is not used, Second parameter is 0 to update only already existing currency defined into the Multicurrency module or 1 to add any currency. Third parameter must be "cron".',
|
||||
'frequency'=>1,
|
||||
'unitfrequency'=>2678400,
|
||||
'status'=>$statusatinstall,
|
||||
|
|
|
|||
|
|
@ -657,10 +657,10 @@ class MultiCurrency extends CommonObject
|
|||
/**
|
||||
* Sync rates from API
|
||||
*
|
||||
* @param string $key No more used
|
||||
* @param int $addifnotfound Add if not found
|
||||
* @param string $mode "" for standard use, "cron" to use it in a cronjob
|
||||
* @return int Return integer <0 if KO, >0 if OK, if mode = "cron" OK is 0
|
||||
* @param int|string $key No more used
|
||||
* @param int $addifnotfound Add if not found
|
||||
* @param string $mode "" for standard use, "cron" to use it in a cronjob
|
||||
* @return int Return integer <0 if KO, >0 if OK, if mode = "cron" OK is 0
|
||||
*/
|
||||
public function syncRates($key = '', $addifnotfound = 0, $mode = "")
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue