feat(деньги): валовая прибыль начислено минус себестоимость

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-10 01:43:14 +10:00
co-authored by Claude Code
parent 33c289845d
commit c4f53def0e
8 changed files with 27 additions and 11 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ export function DayPage() {
<div class="grid">
<${Card} title="Деньги за 30 дней" value=${rub(m.revenue_rub)}
badge=${m.topups_included === false ? 'предварительно' : null}
note=${'поток ' + rub(m.flow_rub) + ' · на счетах ' + rub(m.accounts_total_rub)} />
note=${'поток ' + rub(m.flow_rub) + ' · прибыль ' + rub(m.profit_rub)
+ ' · на счетах ' + rub(m.accounts_total_rub)} />
<${Card} title="Требует внимания" value=${String(items.length)}
note=${items.length ? 'очередь ниже' : 'ничего срочного'} />
<${Card} title="Сервис за сутки" value=${String(w.requests)}
+2
View File
@@ -90,6 +90,8 @@ export function MoneyPage() {
note=${'цена клиентам ' + rub(data.charged_rub)} />
<${Card} title="Поток" value=${rub(data.flow_rub)}
note="поступления − себестоимость" />
<${Card} title="Прибыль" value=${rub(data.profit_rub)}
note="начислено клиентам − себестоимость ИИ" />
<${Card} title="На счетах" value=${rub(data.accounts_total_rub)}
note=${'клиентов ' + data.accounts_count + ' · без цены ' + (data.unpriced ?? '—')} />
</div>