WIACPSite theme 0.2.0-alpha.92
Türkçe

§5.4

Finance screens

  • Phase 10.5
  • theme 1.4.0

The panel shell and shared variables are as in §5.3. Template names are the existing names in the contract: invoices.wcp in the specification → clientinvoices.wcp, invoice.wcp → viewinvoice.wcp, balance.wcp → clientbalance.wcp, payment-methods.wcp → clientpaymentmethods.wcp, payments.wcp → clientpayments.wcp, orders.wcp / order.wcp → clientorders.wcp / vieworder.wcp, quotes.wcp / quote.wcp → clientquotes.wcp / viewquote.wcp. Without a template the core view is drawn with the same data.

File Page Main variables
clientinvoices.wcp invoices (one page with tabs) $tabs (key — all, unpaid, pending, paid, refunded, cancelled —, label, count, url, active), $tab, $summary (outstanding and overdue by currency), $invoices (id, number, date, due, total, paid, remaining, status, status_label, tone, url, pdf_url, pay_url), $blocks['pagination_html']
viewinvoice.wcp invoice and payment panel $invoice, $seller, $buyer, $items, $totals (including taxes), $payments, $refunds, $transfers, $pay (payable, to_pay, review, card_pending, saved_cards, new_card, wallet, transfer, no_methods), $wallet, $back, $blocks: result_html, saved_card_html, new_card_html, transfer_form_html, wallet_html
clientbalance.wcp balance $balance (summary, pending top-ups), $movements, $filters, $filtered, $kinds, $topup, $statement, $auto, $blocks: auto_apply_html, topup_html, pagination_html
clientpaymentmethods.wcp payment methods $cards (id, brand, label — last 4 digits —, expires, expired, default, autopay, status_label, tone, actions_html, autopay_html), $enabled, $test, $card_error, $autocharge (latest attempts), $blocks['add_html']
clientpayments.wcp my payments $payments (key, date, type — invoice_payment, balance_payment, topup, refund, reversal, transfer_notice, refund_pending —, type_label, amount, currency, direction — in, out, internal —, method, invoice, status, status_label, tone), $filters, $filtered, $options, $action, $balance_url
clientorders.wcp · vieworder.wcp my orders (read only) $orders (id, number, date, total, status, status_label, tone, url, pay_url), $order, $items (service / domain), $back
clientquotes.wcp · viewquote.wcp my quotes $quotes (id, number, subject, date, valid_until, total, status — including revision —, status_label, tone, url), $quote, $items, $totals, $revisions, $can_respond, $expired, $offline, $blocks['respond_html']

Rules

  • Amounts are formatted in the core; the theme does no maths and does not add or convert currencies. My payments is a single source (movements + pending transfer notices + pending refunds); refunds and reversals arrive with direction: out and are not counted as income.
  • Card number, CVV, provider token and the provider's raw response never reach the theme; a card is shown only with its brand and last 4 digits.
  • Paying with a saved card, paying with a new card (3-D Secure, provider page), the transfer notice and balance forms are core blocks; field names, addresses, CSRF and sensitive action verification are not changed in the theme. pay_url is only set for a payable invoice.
  • Automatic balance use is the client's choice (off by default); $auto / $wallet only carry the state and the settings link.
  • The quote link (/account/quotes/{ref}) cannot be guessed; only the client who owns the quote can respond. An administrator allowed to view quotes sees the same link read-only (core preview).