add wst currency

This commit is contained in:
David Bomba 2025-01-18 12:29:18 +11:00
parent b7a4665117
commit 1b63eb0d20
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
<?php
use App\Models\Currency;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$currency = Currency::find(142);
if(!$currency){
Currency::create([
'id' => 142,
'name' => 'Samoan Tala',
'code' => 'WST',
'symbol' => '$',
'precision' => '2',
'thousand_separator' => ',',
'decimal_separator' => '.',
]);
}
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};

View File

@ -164,6 +164,7 @@ class CurrenciesSeeder extends Seeder
['id' => 139, 'name' => 'Tajikistani Somoni', 'code' => 'TJS', 'symbol' => 'ЅM', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'],
['id' => 140, 'name' => 'Turkmenistani Manat', 'code' => 'TMT', 'symbol' => 'T', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'],
['id' => 141, 'name' => 'Uzbekistani Som', 'code' => 'UZS', 'symbol' => 'so\'m', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'],
['id' => 142, 'name' => 'Samoan Tala', 'code' => 'WST', 'symbol' => '$', 'precision' => '2', 'thousand_separator' => ',', 'decimal_separator' => '.'],
];

View File

@ -5493,6 +5493,7 @@ $lang = array(
'einvoice_token_not_found' => 'E-invoicing token not found. Please go to Settings > E-invoice and regenerate token.',
'regenerate' => 'Regenerate',
'subscription_unavailable' => 'This item is no longer available',
'currency_samoan_tala' => 'Samoan Tala',
);
return $lang;