feat(админка): баланс счёта на кнопке «Внести»; выпуск с открытием пополнения всем

Кнопка «Внести» в карточке клиента показывает текущий баланс («Внести · 1 975,09 ₽»),
у владельца и служебных учёток суммы нет — счёт им не ведётся. План и разбор —
docs/PLAN_2026-11-21_enable_topup_all_and_balance_button.md, docs/DESIGN_LOG.md.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-21 01:13:16 +10:00
co-authored by Claude Code
parent 9871889821
commit 91fdb516ca
6 changed files with 85 additions and 10 deletions
+2 -1
View File
@@ -187,7 +187,8 @@ export function CustomerDrawer({ email, onClose, onDeleted, onChanged }) {
<button type="button" disabled=${busy} onClick=${() => act('agent_access',
{agent_access: !card.profile.agent_access}, card.profile.agent_access ? 'Доступ снят' : 'Доступ выдан')}>
${card.profile.agent_access ? 'Снять агента' : 'Выдать агента'}</button>
<button type="button" disabled=${busy} onClick=${topup}>Внести</button>
<button type="button" disabled=${busy} onClick=${topup}>Внести${card.account
? ' · ' + rub(card.account.balance_rub) : ''}</button>
<button type="button" disabled=${busy} onClick=${exportData}>Выгрузить</button>
<button type="button" disabled=${busy} onClick=${del}>Удалить</button>
</div>` : html`<div class="actions-bar">