mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-10-30 16:35:35 -04:00 
			
		
		
		
	Corrects the report math for members.php as pointed out at #42.
This commit is contained in:
		
							parent
							
								
									330735ff61
								
							
						
					
					
						commit
						46f165d13b
					
				| @ -75,7 +75,7 @@ $query = "SELECT contact_id, full_name, normal_full_name, email, phone, sort_vis | ||||
| CONCAT(first_name, ' ', last_name) AS normal_full_name, | ||||
| contacts.email AS email, contacts.phone AS phone,  | ||||
| COUNT(shop_hours.contact_id) as sort_visits,  | ||||
| ROUND(SUM(HOUR(SUBTIME( TIME(time_out), TIME(time_in))) + MINUTE(SUBTIME( TIME(time_out), TIME(time_in)))/60)) AS sort_hours  | ||||
| ROUND(SUM(HOUR(TIMEDIFF( time_out, time_in)) + MINUTE(TIMEDIFF( time_out, time_in))/60)) AS sort_hours   | ||||
| FROM shop_hours  | ||||
| LEFT JOIN contacts ON shop_hours.contact_id = contacts.contact_id  | ||||
| LEFT JOIN shop_user_roles ON shop_hours.shop_user_role = shop_user_roles.shop_user_role_id  | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user