This commit is contained in:
2024-10-14 19:01:38 +05:00
parent 00de426a85
commit c09456ec87
2 changed files with 32 additions and 2 deletions

View File

@@ -99,10 +99,10 @@ class Branch extends Resource
->rules('nullable', 'string', 'max:255') ->rules('nullable', 'string', 'max:255')
->hideFromIndex(), ->hideFromIndex(),
Text::make(__('Billing username (Swift)'), 'billing_swift_username') Text::make(__('Billing username (Sber)'), 'billing_sber_username')
->rules('nullable', 'string', 'max:255'), ->rules('nullable', 'string', 'max:255'),
Text::make(__('Billing password (Swift)'), 'billing_swift_password') Text::make(__('Billing password (Sber)'), 'billing_sber_password')
->rules('nullable', 'string', 'max:255') ->rules('nullable', 'string', 'max:255')
->hideFromIndex(), ->hideFromIndex(),

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('branches', function (Blueprint $table) {
$table->string('billing_sber_username')->nullable();
$table->string('billing_sber_password')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('branches', function (Blueprint $table) {
$table->dropColumn('billing_sber_username');
$table->dropColumn('billing_sber_password');
});
}
};