Skip to content

[$250] [Download receipts] Add "Download receipts" to the individual report page #95356

Description

@mollfpr

Problem

The receipts export can be started from the Expenses and Reports search pages, but not from an individual report. A user viewing a single report should be able to download that report's receipts from the report's actions menu.

Solution

Add a "Download receipts" option to the single-report secondary-actions menu, next to the existing "Download as PDF". It reuses the exportReceiptsAsZip action and the export status modal from the first FE issue, so this is mostly wiring up the report-page entry point.

What to build:

  • Add the constant REPORT.SECONDARY_ACTIONS.DOWNLOAD_RECEIPTS.
  • Include DOWNLOAD_RECEIPTS in the report's secondary actions (src/libs/ReportSecondaryActionUtils.ts), alongside DOWNLOAD_PDF.
  • Add the DOWNLOAD_RECEIPTS implementation in src/hooks/useExportActions.ts: keep the online-only behavior (show the offline modal when offline), then call exportReceiptsAsZip with the single report's ID (reportIDs: [reportID]) and track the export.
  • Wire the export status modal into the report header (src/components/MoneyReportHeaderActions/MoneyReportHeaderSecondaryActions.tsx). The report header currently uses ReportPDFDownloadModal for the PDF download, so this adds the shared useExportDownloadStatusModal for the receipts export.
  • Add DOWNLOAD_RECEIPTS to the export section in src/libs/PopoverMenuSections.ts so it groups with the existing download/export items.

Depends on:

  • The first FE issue (shared code: the exportReceiptsAsZip action, EXPORT_DOWNLOAD.TYPE.RECEIPTS, the modal empty-state, and translations).
  • The backend ExportReceiptsToZip command.

Out of scope:

  • No change to the existing "Download as PDF" option.
Issue OwnerCurrent Issue Owner: @daledah
Upwork Automation - Do Not Edit

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions