Apply Tahesab account balances to wallets with admin overwrite control.

Add inbound mande sync on customer import plus per-customer and bulk wallet-sync endpoints so previously linked accounts can catch up.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 14:16:36 +03:30
co-authored by Cursor
parent 050bd26318
commit e059a4709e
4 changed files with 585 additions and 0 deletions
@@ -184,6 +184,9 @@ class WalletController extends Controller
if ((int) ($record->type ?? 0) === 22) {
$record->title = 'تعدیل حسابداری پرگار';
$record->unit = 'گرم';
} elseif ((int) ($record->type ?? 0) === 23) {
$record->title = 'تعدیل حسابداری ته‌حساب';
$record->unit = 'گرم';
} elseif ((int) ($record->type ?? 0) === 12) {
$record->title = 'برداشت وجه نقد';
$record->unit = 'ریال';
@@ -883,6 +886,10 @@ class WalletController extends Controller
return 'تعدیل حسابداری پرگار';
}
if ((int) $record->type === 23) {
return 'تعدیل حسابداری ته‌حساب';
}
return $record->type_str;
}