Bug #3042
Add refund audit fields to Wallet Status
Description
Add Refund Date, Refund Reason, and Processed By columns to the Wallet Status & Adjustment table to track refund details.
Updated by Shreya Agarwal about 2 months ago
Updated the GET /api/v1/reporting/tenant/customer-wallet endpoint to dynamically include three new refund audit fields (notes, createdAt, and createdBy) in the response payload. Extended CustomerWalletItemDto and updated CustomerWalletRepository to perform a SQL LEFT JOIN on wallet_refund_transactions and the users table for the refund initiator. createdBy now dynamically resolves to the creator’s actual full name (or username) instead of a numeric ID
Also worked frontend enhancements were implemented on the "Wallet status and Adjustment" report page to dynamically display refund audit details. The TypeScript interface RefundAdjustmentTransaction was updated to support three newly added backend API fields: notes, createdAt, and createdBy from GET /api. Three new columns (Notes, Created At, and Created By) were integrated into the UI table header and data rows with automatic UTC-to-local timezone formatting and zero hardcoded values. Additionally, these three audit fields were incorporated into the CSV Export feature and the Transaction Details Modal for complete end-to-end consistency across the application. All UI data bindings, pagination controls, and timezone conversions were thoroughly verified.