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

Hesabgar kept generating a number when UpdateKind was 3. Insert with account type 1 and send 53012101.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-02 11:35:33 +03:30
co-authored by Cursor
parent 8ccdea99c8
commit 77a448e4e1
3 changed files with 7 additions and 6 deletions
@@ -5,7 +5,7 @@ use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
/**
* سه سطح: کل 121، معین 12101، تفصیلی = معین + کد کاربری (12101530).
* سه سطح: کل 121، معین 12101، تفصیلی = کد کاربری + معین (53012101).
* مقدار 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. کل ۱۲۱ داخل همین کد است. شماره تفصیلی = این مقدار + کد کاربری. مثال: 12101 و مشتری 530 → 12101530.',
'description' => 'معین Account/Put. شماره تفصیلی = کد کاربری + این مقدار. مثال: مشتری 530 و 12101 → 53012101.',
'updated_at' => now(),
];
if ($current === '' || $current === '1210101') {