Subject changed from bugs fix on create request calcualtion for a specific service to bugs fix on create request calcualtion for a specific service, download data fixes, to create a downlad api for vendors
Frontend Changes Summary Created reusable GlobalFilterBar component: New component at afc_react_fe/src/global/GlobalFilterBar.tsx Supports search, status, sort, date range, and download filters Responsive (mobile stacked, desktop horizontal) Configurable: hide/show filters, custom widths, alignment options Refactored all list pages to use GlobalFilterBar: Replaced custom filter implementations on: Invoices (/invoices) Services (/services) Product Categories (/products/categories) Products (/products) Users (/users) Requests (/requests) Quotes (/quotes) Jobs (/jobs) Enquiry (/enquiry) Customers (/customers) Standardized filter UI/UX across pages Added date filter to Users page: Integrated date range filtering in Users list Connected to backend API with dateFrom/dateTo parameters Included in export functionality Updated Dashboard: Replaced DateRangeFilter with GlobalFilterBar Configured to show only date filter, left-aligned Fixed SelectField component: Resolved "Allatus" display issue when "All" is selected Properly handles empty values with displayEmpty prop
Backend Changes Summary Added date filtering support to Users API: Updated getAllUsers endpoint in user-controller.js Added dateFrom and dateTo query parameter support Filters users by createdAt field within specified date range Supports both date range and single date filtering Sets end date to end of day (23:59:59.999) for inclusive filtering Fixed invoice paid filter: Updated invoice status filter to include "complete" status when filtering for "paid" Ensures fully paid invoices (status="complete") are included in paid filter results