change accounting-number

This commit is contained in:
2026-11-04 11:56:53 +03:30
parent 21da78943c
commit 9ec71efcbb
3 changed files with 47 additions and 3 deletions
@@ -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
{
}
};