Overview
The Transaction Components library provides comprehensive React components for managing financial transactions, orders, payment methods, and payout accounts in the TradeMaster Transactions platform.TransactionsTable
A data table component for displaying and managing financial transactions with search and filter capabilities.Props
This component doesn’t accept props as it connects directly to Redux state and uses authentication context.Features
- User-filtered Transactions: Automatically filters by authenticated user
- Event Association: Links transactions to specific events
- Payment Method Display: Shows payment method used
- Office/Terminal Tracking: Displays which office/terminal processed the transaction
- Amount Formatting: Currency-formatted transaction amounts
- Search Functionality: Global search across event name, payment method, and office
- Theme-aware Styling: Dark mode support with custom table styles
Usage Example
Data Structure
Columns
| Column | Field | Sortable | Description |
|---|---|---|---|
| Nombre del Evento | event_name | ✓ | Event name with transfer icon |
| Método de Pago | payment_name | ✓ | Payment method used |
| Taquilla | office_name | ✓ | Office/terminal name |
| Monto | amount | - | Formatted currency amount |
| Acciones | - | - | View details button |
Styling
The component includes custom table styling:OrdersTable
Comprehensive data table for managing customer orders with status tracking.Props
This component doesn’t accept props as it connects directly to Redux state.Features
- Order Status: Visual status badges (Activo/Inactivo)
- Event Association: Links orders to events
- Amount Display: Order total with currency formatting
- Status Styling: Color-coded status indicators with blur effects
- User Filtering: Filters orders by authenticated user
- Search & Filter: Global search functionality
- Pagination: Configurable rows per page
Usage Example
Data Structure
Status Template
The component includes a custom status display:Columns
| Column | Field | Sortable |
|---|---|---|
| Nombre del Evento | event_name | ✓ |
| Monto | amount | ✓ |
| Estatus | status | - |
| Acciones | - | - |
PayoutTable
Manages payout accounts with currency and type information.Props
This component doesn’t accept props but uses query parameters for filtering.Features
- Payout Account Management: Display payout account details
- Currency Display: Shows account currency
- Account Type: Displays payout account type
- Status Indicators: Active/Inactive status badges
- CSV Export: Export payout data
- Create Functionality: Add new payout accounts
- Search & Filter: Global search across account properties
Usage Example
Data Structure
Columns
| Column | Field | Sortable |
|---|---|---|
| Nombre | name | ✓ |
| Tipo | type | ✓ |
| Moneda | currency | ✓ |
| Estatus | status | - |
Export Functionality
PaymentMethodTable
Manages payment methods available in the system.Props
This component doesn’t accept props as it connects directly to Redux state.Features
- Payment Method Types: Displays method type (cash, card, transfer, etc.)
- Currency Support: Shows supported currency for each method
- Wallet Icons: Visual icons for payment methods
- Status Management: Active/Inactive status tracking
- Create New Methods: Add payment methods with permissions
- Search Functionality: Filter payment methods
Usage Example
Data Structure
Name Template
The component includes a custom name display with icon:Columns
| Column | Field | Sortable |
|---|---|---|
| Nombre Método de Pago | name | ✓ |
| Moneda | currency | ✓ |
| Estatus | status | ✓ |
| Acciones | - | - |