mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-17 10:14:08 +00:00
New currency: Qatari Riyal (#476)
* add qatari riyal currency to migration and seeder * run pint
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Currency;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
|
||||
Currency::firstOrCreate(
|
||||
['code' => 'QAR'],
|
||||
[
|
||||
'name' => 'Qatari Riyal',
|
||||
'symbol' => 'QR',
|
||||
'precision' => '2',
|
||||
'thousand_separator' => ',',
|
||||
'decimal_separator' => '.',
|
||||
]);
|
||||
}
|
||||
};
|
||||
@@ -638,6 +638,14 @@ class CurrenciesTableSeeder extends Seeder
|
||||
'thousand_separator' => '.',
|
||||
'decimal_separator' => ',',
|
||||
],
|
||||
[
|
||||
'name' => 'Qatari Riyal',
|
||||
'code' => 'QAR',
|
||||
'symbol' => 'QR',
|
||||
'precision' => '2',
|
||||
'thousand_separator' => ',',
|
||||
'decimal_separator' => '.',
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($currencies as $currency) {
|
||||
|
||||
Reference in New Issue
Block a user