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
+2 -2
View File
@@ -121,8 +121,8 @@ class ShayeganSyncService
$name = 'مشتری ' . $customer->id;
}
// تفصیلی = کد کاربری + معین. مثال: مشتری 530 و معین 12101 → 53012101
$requestedAccountNumber = ((string) (int) $customer->id) . $moinRaw;
// تفصیلی = معین + کد کاربری. مثال: معین 12101 و مشتری 530 → 12101530
$requestedAccountNumber = $moinRaw . ((string) (int) $customer->id);
$guid = (string) Str::uuid();
$put = [[