mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Convert currencies
This commit is contained in:
parent
3773999ed0
commit
f37559a239
@ -5,6 +5,7 @@ namespace App\Console\Commands;
|
||||
use App\Libraries\CurlUtils;
|
||||
use Carbon;
|
||||
use Str;
|
||||
use Cache;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Currency;
|
||||
use App\Ninja\Mailers\ContactMailer as Mailer;
|
||||
@ -178,6 +179,8 @@ class SendReminders extends Command
|
||||
foreach ($data->rates as $code => $rate) {
|
||||
Currency::whereCode($code)->update(['exchange_rate' => $rate]);
|
||||
}
|
||||
|
||||
Cache::forget('currencies');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user