Skip to content

feat: payroll CSV export endpoint#26

Open
EricGrill wants to merge 1 commit into
mainfrom
justobot/payroll-export
Open

feat: payroll CSV export endpoint#26
EricGrill wants to merge 1 commit into
mainfrom
justobot/payroll-export

Conversation

@EricGrill
Copy link
Copy Markdown
Contributor

Summary

  • Adds GET /farm/:id/export endpoint that returns CSV payroll data (worker name, phone, shift date, check-in time, payment amount/status)
  • Supports ?shift_id= filter for single-shift exports
  • Returns proper Content-Disposition header for file download
  • Handles empty data (header-only CSV), unknown farms (404), unsupported formats (400)

Closes

Closes #11 (Payroll CSV/PDF export)

Test plan

  • 5 new integration tests added (44 total, all passing)
  • CSV with payment data returns correct columns
  • shift_id filter works
  • 404 for unknown farm
  • 400 for unsupported format
  • Empty farm returns header-only CSV

🤖 Generated with Claude Code

Returns CSV with worker name, phone, shift date, check-in time,
payment amount/status for labor compliance reporting. Supports
optional shift_id filter. Includes 5 new tests (44 total).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Payroll CSV/PDF export

1 participant