Apply same filtering logic to sales view page