Files
opensourcepos/app
objecttothisandClaude Sonnet 5 a02461b407 feat(taxes): add tax rate export endpoint
Add ability to export searched/filtered tax rates to file
(CSV/PDF/etc) from management table, matching existing export
patterns used elsewhere in app.

- Taxes controller: add getExportAll($format) action that
  reuses existing search params (search/limit/offset/sort/order),
  builds export rows via tax_helper, and streams result as
  download (special-cased content type/headers for pdf)
- Inject BaseConnection via Config\Database in controller
  constructor, needed to resolve prefixed table name passed to
  generateExportFile()
- tax_helper.php: add taxRateExportHeaders() defining export
  column set (mirrors manage table columns minus edit-icon
  column) and getTaxRateExportRow() mapping a tax_rate row to
  export columns, including rounding code name lookup via
  Rounding_mode

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-10-19 22:02:32 +04:00
..
2024-06-15 17:19:15 +02:00
2024-06-15 17:19:15 +02:00