mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-11-08 23:43:32 -05:00
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>