mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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...');
|
$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);
|
$data = json_decode($data);
|
||||||
|
|
||||||
Currency::whereCode('EUR')->update(['exchange_rate' => 1]);
|
Currency::whereCode('EUR')->update(['exchange_rate' => 1]);
|
||||||
|
@ -19,4 +19,7 @@ return [
|
|||||||
'coupon_75_off' => env('COUPON_75_OFF', false),
|
'coupon_75_off' => env('COUPON_75_OFF', false),
|
||||||
'coupon_free_year' => env('COUPON_FREE_YEAR', false),
|
'coupon_free_year' => env('COUPON_FREE_YEAR', false),
|
||||||
|
|
||||||
|
// data services
|
||||||
|
'exchange_rates_url' => env('EXCHANGE_RATES_URL', 'https://api.fixer.io/latest'),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user