Bug #2796
Add an Export CSV feature to the Partner Payout page so users can download the displayed payout summary data as a CSV file.
Description
- Summary
Add an Export CSV feature to the Partner Payout page so users can download the displayed payout summary data as a CSV file.
- Requirement
- Add an "Export CSV" button on the Partner Payout page.
- Place the button beside the existing Apply and Reset buttons.
- The exported CSV should contain the same data currently displayed in the Summary by Partner table.
- Export should respect all applied filters:
- Partner Name
- Station
- Year
- Month
- If no filters are applied, export all records for the selected period.
- Download should start automatically after clicking the Export CSV button.
- CSV Columns
- Partner
- Period
- Carry Forward
- Share Amount
- Final Payout
- TDS (%)
- TDS Amount
- Sessions
- Energy (kWh)
- Payout Status
- Acceptance Criteria
- Export CSV button is visible on the Partner Payout page.
- CSV contains all filtered records.
- Column headers match the table.
- Data format matches the UI.
- Downloaded file name format:
Partner_Payout_YYYY_MM.csv