settings
This commit is contained in:
parent
777e780f74
commit
1f28cdfa1c
@ -36,6 +36,12 @@ class VuexyStoreManagerServiceProvider extends ServiceProvider
|
||||
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
|
||||
|
||||
|
||||
// Publicar los archivos necesarios
|
||||
$this->publishes([
|
||||
__DIR__.'/../database/seeders/CurrencySeeder.php' => database_path('seeders/CurrencySeeder.php'),
|
||||
], 'vuexy-store-manager-seeders');
|
||||
|
||||
|
||||
// Registrar Livewire Components
|
||||
$components = [
|
||||
'company-index' => CompanyIndex::class,
|
||||
|
@ -17,11 +17,11 @@ return new class extends Migration
|
||||
$table->char('c_currency', 3)->charset('ascii')->collation('ascii_general_ci')->unique();
|
||||
$table->string('symbol', 10)->nullable();
|
||||
|
||||
$table->boolean('auto_update_exchange_rates')->default(true);
|
||||
$table->unsignedInteger('refresh_interval')->default(24); // Tiempo de actualización en horas
|
||||
$table->decimal('adjustment_percent', 5, 2)->default(0); // Ajuste porcentual opcional
|
||||
$table->boolean('auto_update_exchange_rates')->default(false);
|
||||
$table->unsignedInteger('refresh_interval')->default(24)->nullable(); // Tiempo de actualización en horas
|
||||
$table->decimal('adjustment_percent', 5, 2)->default(0)->nullable(); // Ajuste porcentual opcional
|
||||
|
||||
$table->boolean('status');
|
||||
$table->boolean('status')->index();
|
||||
|
||||
// Auditoria
|
||||
$table->timestamps();
|
||||
|
@ -11,61 +11,16 @@ class CurrencySeeder extends Seeder
|
||||
* Lista de divisas a insertar.
|
||||
*/
|
||||
protected static array $divisas = [
|
||||
[
|
||||
'c_currency' => 'MXN',
|
||||
'symbol' => '$',
|
||||
'used_in_purchases' => true,
|
||||
'used_in_sales' => true,
|
||||
'used_in_ecommerce' => false,
|
||||
'main_currency' => true,
|
||||
'auto_update_exchange_rates' => true,
|
||||
'update_interval' => 24,
|
||||
'status' => Currency::STATUS_ENABLED,
|
||||
],
|
||||
[
|
||||
'c_currency' => 'USD',
|
||||
'symbol' => '$',
|
||||
'used_in_purchases' => true,
|
||||
'used_in_sales' => true,
|
||||
'used_in_ecommerce' => false,
|
||||
'main_currency' => false,
|
||||
'auto_update_exchange_rates' => true,
|
||||
'update_interval' => 24,
|
||||
'status' => Currency::STATUS_ENABLED,
|
||||
],
|
||||
[
|
||||
'c_currency' => 'EUR',
|
||||
'symbol' => '€',
|
||||
'used_in_purchases' => true,
|
||||
'used_in_sales' => true,
|
||||
'used_in_ecommerce' => false,
|
||||
'main_currency' => false,
|
||||
'auto_update_exchange_rates' => true,
|
||||
'update_interval' => 24,
|
||||
'status' => Currency::STATUS_ENABLED,
|
||||
],
|
||||
[
|
||||
'c_currency' => 'GBP',
|
||||
'symbol' => '£',
|
||||
'used_in_purchases' => true,
|
||||
'used_in_sales' => false,
|
||||
'used_in_ecommerce' => false,
|
||||
'main_currency' => false,
|
||||
'auto_update_exchange_rates' => true,
|
||||
'update_interval' => 24,
|
||||
'status' => Currency::STATUS_ENABLED,
|
||||
],
|
||||
[
|
||||
'c_currency' => 'JPY',
|
||||
'symbol' => '¥',
|
||||
'used_in_purchases' => true,
|
||||
'used_in_sales' => false,
|
||||
'used_in_ecommerce' => false,
|
||||
'main_currency' => false,
|
||||
'auto_update_exchange_rates' => true,
|
||||
'update_interval' => 24,
|
||||
'status' => Currency::STATUS_ENABLED,
|
||||
],
|
||||
['c_currency' => 'MXN', 'name' => 'Peso mexicano', 'symbol' => '$', 'status' => 1],
|
||||
['c_currency' => 'USD', 'name' => 'Dólar estadounidense', 'symbol' => '$', 'status' => 1],
|
||||
['c_currency' => 'EUR', 'name' => 'Euro', 'symbol' => '€', 'status' => 1],
|
||||
['c_currency' => 'GBP', 'name' => 'Libra esterlina', 'symbol' => '£', 'status' => 1],
|
||||
['c_currency' => 'JPY', 'name' => 'Yen japonés', 'symbol' => '¥', 'status' => 1],
|
||||
['c_currency' => 'CAD', 'name' => 'Dólar canadiense', 'symbol' => 'C$', 'status' => 1],
|
||||
['c_currency' => 'AUD', 'name' => 'Dólar australiano', 'symbol' => 'A$', 'status' => 1],
|
||||
['c_currency' => 'CHF', 'name' => 'Franco suizo', 'symbol' => 'CHF', 'status' => 1],
|
||||
['c_currency' => 'CNY', 'name' => 'Yuan chino', 'symbol' => '¥', 'status' => 1],
|
||||
['c_currency' => 'GTQ', 'name' => 'Quetzal guatemalteco', 'symbol' => 'Q', 'status' => 1],
|
||||
];
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user