fix(shayegan): build the account number as moin plus customer id

Customer 530 with moin 12101 is sent as 12101530 again.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-02 11:49:47 +03:30
co-authored by Cursor
parent 77a448e4e1
commit 3b689a24f6
3 changed files with 6 additions and 5 deletions
@@ -5,7 +5,7 @@ use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
/**
* سه سطح: کل 121، معین 12101، تفصیلی = کد کاربری + معین (53012101).
* سه سطح: کل 121، معین 12101، تفصیلی = معین + کد کاربری (12101530).
* مقدار 1210101 اشتباه بود و به 12101 برمی‌گردد. مقدار دیگر دست نمی‌خورد.
*/
return new class extends Migration
@@ -23,7 +23,7 @@ return new class extends Migration
$current = trim((string) ($row->value ?? ''));
$update = [
'description' => 'معین Account/Put. شماره تفصیلی = کد کاربری + این مقدار. مثال: مشتری 530 و 12101 → 53012101.',
'description' => 'معین Account/Put. شماره تفصیلی = این مقدار + کد کاربری. مثال: 12101 و مشتری 530 → 12101530.',
'updated_at' => now(),
];
if ($current === '' || $current === '1210101') {