fix(tahesab): sync gateway and admin cash deposits as VKHBank charge

Route online wallet deposits to Tahesab/Zarin wallet() instead of leaving
staff to post gold buy docs; keep «شارژ حساب» in accounting notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-31 14:58:20 +03:30
co-authored by Cursor
parent 142cfd7661
commit c5fd6608bf
3 changed files with 40 additions and 1 deletions
@@ -262,6 +262,9 @@ class WalletController extends Controller
try {
$data['direction'] = $deposit ? 0 : 1;
$data['withdraw_id'] = $Withdraw->id;
if ($deposit && trim((string) ($data['note'] ?? '')) === '') {
$data['note'] = 'شارژ حساب';
}
app(TahesabController::class)->wallet($data);
} catch (\Exception $e) {
report($e);