change accounting-number
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* تفصیلی = کد کل + کد کاربری ۷رقمی. مثال: 121 و مشتری 1 → 1210000001.
|
||||
* مقدار تنظیمات عوض نمیشود.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if (! Schema::hasTable('settings')) {
|
||||
return;
|
||||
}
|
||||
|
||||
DB::table('settings')->where('key', 'shayegan_kol_customer')->update([
|
||||
'description' => 'ابتدای ثابت کد تفصیلی. کد = این مقدار + کد کاربری ۷رقمی با صفر. مثال: 121 و مشتری 1 → 1210000001.',
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
|
||||
DB::table('settings')->where('key', 'shayegan_moin_customer')->update([
|
||||
'description' => 'معین مشتریان. به شماره تفصیلی چسبانده نمیشود؛ شماره = کد کل + کد کاربری ۷رقمی.',
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user