From 6c0c895ccd1c3a03e3e7baac8acdc89b984163ea Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 28 Aug 2024 17:31:19 +1000 Subject: [PATCH] Updates for BGN --- .../migrations/2024_08_26_055523_add_qb_product_hash.php | 7 +++++++ database/seeders/CurrenciesSeeder.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/database/migrations/2024_08_26_055523_add_qb_product_hash.php b/database/migrations/2024_08_26_055523_add_qb_product_hash.php index 41de33759a8d..5bbd59e8e30c 100644 --- a/database/migrations/2024_08_26_055523_add_qb_product_hash.php +++ b/database/migrations/2024_08_26_055523_add_qb_product_hash.php @@ -18,6 +18,13 @@ return new class extends Migration Schema::table('companies', function (Blueprint $table){ $table->bigInteger('legal_entity_id')->nullable(); }); + + + if($currency = \App\Models\Currency::find(39)) + { + $currency->symbol = 'лв'; + $currency->save(); + } } /** diff --git a/database/seeders/CurrenciesSeeder.php b/database/seeders/CurrenciesSeeder.php index 2ea762c575e7..83f69318659e 100644 --- a/database/seeders/CurrenciesSeeder.php +++ b/database/seeders/CurrenciesSeeder.php @@ -61,7 +61,7 @@ class CurrenciesSeeder extends Seeder ['id' => 36, 'name' => 'Trinidad and Tobago Dollar', 'code' => 'TTD', 'symbol' => 'TT$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 37, 'name' => 'East Caribbean Dollar', 'code' => 'XCD', 'symbol' => 'EC$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], ['id' => 38, 'name' => 'Ghanaian Cedi', 'code' => 'GHS', 'symbol' => '', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'], - ['id' => 39, 'name' => 'Bulgarian Lev', 'code' => 'BGN', 'symbol' => '', 'precision' => '2', 'thousand_separator' => ' ', 'decimal_separator' => '.'], + ['id' => 39, 'name' => 'Bulgarian Lev', 'code' => 'BGN', 'symbol' => 'лв', 'precision' => '2', 'thousand_separator' => ' ', 'decimal_separator' => '.'], ['id' => 40, 'name' => 'Aruban Florin', 'code' => 'AWG', 'symbol' => 'Afl. ', 'precision' => '2', 'thousand_separator' => ' ', 'decimal_separator' => '.'], ['id' => 41, 'name' => 'Turkish Lira', 'code' => 'TRY', 'symbol' => 'TL ', 'precision' => '2', 'thousand_separator' => '.', 'decimal_separator' => ','], ['id' => 42, 'name' => 'Romanian New Leu', 'code' => 'RON', 'symbol' => '', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'],