Repository navigation
feat(reports): owner-only customer sales export - #1357
Conversation
One row per item sold over a business-date range, with the bill's customer repeated on each row, as XLSX or CSV. Gated by the new reports.customer-sales.export permission (owner by default). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
@coderabbitai review |
|
Summary
GET /api/reports/customer-sales/export(xlsxorcsv): one row per item sold over a business-date range (max 366 days), with the bill's customer name/phone/email repeated on every row.reports.customer-sales.export(owner by default), kept separate from the no-PII daily sales export.bill_totalis set on the first row of each bill only, so a column sum equals bill totals.Verification
npm run test:customer-sales-export(35/35),test:daily-sales-export,test:authorization-permissions,test:staff-authz,test:script-coveragenpm run lint,npm run build,npm run build:frontend,npm run i18n:check,npm run docs:checkNot run: full
npm test, Playwright E2E, visual check of the dashboard menu.🤖 Generated with Claude Code