Reports
Source: pharmanet-web/src/pages/Reports/Reports.jsx
Tabs
| Tab |
Component |
Description |
| Sales Report |
SalesReport |
Date-range sales with chart and summary |
| Product Performance |
ProductPerformance |
Top selling, low stock, most viewed |
Service
Source: pharmanet-web/src/services/reports.js
| Function |
Description |
getSalesReport({startDate, endDate}) |
Sales totals, daily breakdown, chart data |
getProductPerformance({limit, sortBy}) |
Product metrics (top/low/most viewed) |
getProductAnalytics(id) |
Single product: revenue, trend, recent orders |
exportReport(type, params) |
Export to CSV/PDF |
Components
| Component |
File |
Description |
SalesReport |
components/reports/SalesReport.jsx |
Date picker, chart, totals |
ProductPerformance |
components/reports/ProductPerformance.jsx |
Product ranking tables |