Skip to content

Payment Orders

Access prerequisites

  • Permission (module): viewPayments
  • License/Feature: None specific.
  • Menu container: GENERAL → Operations group (route /manage-orders)

Route without a menu item

This screen exists in the application (/manage-orders) but has no fixed menu item. It is maintained for the payment orders flow (court-ordered debts and allocations). Before exposing it to operators, confirm with the coordinator whether it remains active in this tenant.

What it is / when to use

These are orders created by allocation or court-ordered debts (precatórios), where a value NFT is released. The user, knowing they have an amount to receive, may wait for payment or trade their NFT for any price they set; at the end, whoever holds the NFT receives the full amount of the court-ordered debt/allocation. This screen lists those orders, allows monitoring their status, viewing the detail of each order, and exporting the list as a PDF.

Prerequisites

  • Permission: viewPayments (dual permission — CPM enum + dynamic module in the DB).
  • License/Feature: None specific.
  • Dependencies on other screens: the value order/NFT must have already been issued (allocation or court-ordered debt).

Step by step

  1. Go to /manage-orders (Payment Orders).
  2. Search by order ID or customer e-mail.
  3. Click view to open the order details; use send (truck icon) to advance the status; use Generate PDF to export the list.

Filters and columns

Filter/ColumnWhat it showsData source
SearchLocal filter by order ID or e-mailid / userEmail
OrderOrder number (with message indicator)id, hasMessage, hasNewMessage
DateCreation date/timecreatedAt
E-mail / CustomerBuyer and nameuserEmail, user.data.firstName/lastName
DocumentCPF/CNPJ/passport (with automatic mask)user.data.identifier
TotalOrder amounttotalAmount (tenant fiat currency)
StatusOrder state (red = cancelled, green = delivered)status (orderStatus)

Possible states: awaiting payment, in progress, delivered, processing cancellation, cancelled, separating stock.

Actions and modals

  • View (visibility): opens the DialogOrderViewComponent modal with the order details.
  • Mark as sent (local_shipping): calls changeOrderStatus('finished', id) — advances the order to finished. Immediate action, with snackbar feedback.
  • Generate PDF: exports the order list to pedidos.pdf (jsPDF/autoTable).

Business rules / caveats

Attention

  • The filter/search is local over the loaded list (ID or e-mail).
  • The status change is immediate (no confirmation bottom-sheet) — confirm the order before clicking.
  • Financial amounts: handled as BigNumber — no rounding; the total is displayed in the tenant's fiat currency.
  • Idempotency: settlements associated with the order follow FinLib idempotency by externalId (E00021 = already processed = success).
  • APPROVED status: financial movements presuppose an APPROVED user.