Files
tehran_tala/apps/user-app-v2/dist/assets/ReportView-B1Nee0rD.css
T
s.esmaeiliandClaude Opus 5 3f549f1749 parity(apps+api): report + report/detail on the internal ledger [ref: henza_pwa views/report]
Ports "گزارش" end to end (D24), the last missing app page.

In the reference this feature computes nothing: Customer\TahesabController
proxies an external accounting system (hesab.henzagold.com and a bare IP at
31.7.68.147:3030) with TLS verification disabled, a bearer token hardcoded in
the source and a URL-embedded secret, keyed on Customer.mcode. The target has
no such system and no mcode, so per the owner's option الف this is built on our
own ledger with no external connection.

API — customer/me/report{,/detail,/balances,/:id}
- one row per CONFIRMED ledger entry with the running gold and rial balance
  after it, newest first as the reference displayed it
- only confirmed entries count, the same rule the cached
  Customer.goldDebtGrams/fiatDebtRial follow, so the statement's closing
  balance agrees with the figure shown everywhere else in the app
- fields the target has no source for (foreign currency, نام کارساخته,
  جنس فلز, the external system's internal ids) are null/zero and the UI OMITS
  the row rather than rendering a fabricated value (REP-01)

SEC-16, NOT ported: the reference's detail($id) took the factor code from the
URL and performed no ownership check at all — it never consults auth() — so any
signed-in customer could read any other customer's document by guessing a code.
Here the id is only a filter on top of a customerId scope from the token.
Tested in both directions.

Apps (both, template+script byte-identical, per-app styling only)
- ReportView with the reference's two tabs, its card rows and its «جزئیات»
  modal; ReportDocument for one document
- routes /report and /report/detail, the latter opening the second tab
- dashboard entry (v1 tile, v2 row), shown to every signed-in customer since
  the reference's hasMCode() gate has no target equivalent

Verified: build 5/5 · jest 45/45 · report 40/40 (new) ·
complete-profile 38/38 · apps smoke 43/43 · typecheck clean on all four apps.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-23 01:49:49 +03:30

2 lines
3.3 KiB
CSS

.doc[data-v-8de7ea07]{padding:18px 2px;background:transparent;border:none;border-bottom:1px solid #ECEDEF}.doc[data-v-8de7ea07]:last-child{border-bottom:none}.doc__head[data-v-8de7ea07]{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:13px;font-weight:600}.doc__muted[data-v-8de7ea07]{color:#5b616e;font-weight:500;margin-left:4px}.doc__rows[data-v-8de7ea07]{margin:0;display:flex;flex-direction:column}.doc__row[data-v-8de7ea07]{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px dashed #F4F5F6}.doc__row[data-v-8de7ea07]:last-child{border-bottom:none}.doc__row dt[data-v-8de7ea07]{font-size:12.5px;color:#5b616e;white-space:nowrap}.doc__row dd[data-v-8de7ea07]{margin:0;font-size:13.5px;font-weight:600;text-align:left}.doc__gold[data-v-8de7ea07]{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding-top:10px;border-top:1px dashed #ECEDEF;font-size:13px;font-weight:700}.doc__stack[data-v-8de7ea07]{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.is-in[data-v-8de7ea07]{color:#16a34a}.is-out[data-v-8de7ea07]{color:#dc2626}.rep__tabs[data-v-9457295a]{display:flex;gap:24px;padding:0 16px 10px}.rep__tab[data-v-9457295a]{padding:8px 0;border:none;border-bottom:2px solid transparent;background:transparent;font-family:inherit;font-size:14px;font-weight:600;color:#8a909c;cursor:pointer}.rep__tab.is-on[data-v-9457295a]{color:#14161a;border-bottom-color:#7a1b33}.rep__body[data-v-9457295a]{padding-top:126px;padding-bottom:90px}.rep__list[data-v-9457295a]{display:flex;flex-direction:column;padding-top:8px}.rep__card[data-v-9457295a]{padding:18px 2px;background:transparent;border:none;border-bottom:1px solid #ECEDEF}.rep__card[data-v-9457295a]:last-child{border-bottom:none}.rep__head[data-v-9457295a]{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:13px;font-weight:600}.rep__muted[data-v-9457295a]{color:#5b616e;font-weight:500;margin-left:4px}.rep__pair[data-v-9457295a]{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:13px;color:#5b616e}.rep__pair.is-balance[data-v-9457295a]{padding-top:10px;border-top:1px dashed #ECEDEF;color:#14161a;font-weight:700}.rep__stack[data-v-9457295a]{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-weight:600}.is-in[data-v-9457295a]{color:#16a34a}.is-out[data-v-9457295a]{color:#dc2626}.rep__more[data-v-9457295a],.rep__sentinel[data-v-9457295a]{padding:12px 0;text-align:center;font-size:12px;color:#5b616e}.rep__more[data-v-9457295a]{width:100%;margin-top:6px;border:none;background:transparent;font-family:inherit;font-weight:700;color:#7a1b33;cursor:pointer}.rep__empty[data-v-9457295a]{margin-top:40px;padding:34px 20px;display:flex;flex-direction:column;align-items:center;gap:10px;color:#5b616e;font-size:13px}.rep__retry[data-v-9457295a]{padding:8px 18px;border-radius:999px;border:1px solid #ECEDEF;background:#fff;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}.rep__modal[data-v-9457295a]{padding:20px 16px 24px}.rep__modalEmpty[data-v-9457295a]{padding:24px 0;text-align:center;font-size:13px;color:#5b616e}.rep__close[data-v-9457295a]{margin-top:18px;width:100%;padding:14px;border:none;border-radius:999px;background:#7a1b33;color:#fff;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}