mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Convert currencies
This commit is contained in:
parent
c8579660df
commit
3773999ed0
@ -170,7 +170,7 @@ class SendReminders extends Command
|
||||
{
|
||||
$this->info('Loading latest exchange rates...');
|
||||
|
||||
$data = CurlUtils::get('https://api.fixer.io/latest');
|
||||
$data = CurlUtils::get(config('ninja.exchange_rates_url'));
|
||||
$data = json_decode($data);
|
||||
|
||||
Currency::whereCode('EUR')->update(['exchange_rate' => 1]);
|
||||
|
@ -19,4 +19,7 @@ return [
|
||||
'coupon_75_off' => env('COUPON_75_OFF', false),
|
||||
'coupon_free_year' => env('COUPON_FREE_YEAR', false),
|
||||
|
||||
// data services
|
||||
'exchange_rates_url' => env('EXCHANGE_RATES_URL', 'https://api.fixer.io/latest'),
|
||||
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user