mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-11-03 17:05:35 -05:00 
			
		
		
		
	Handles anonymous correctly in history.
1) 1 if checked 2) undefined if unchecked.
This commit is contained in:
		
							parent
							
								
									82a2159fd4
								
							
						
					
					
						commit
						b54cfe2312
					
				@ -631,6 +631,13 @@ $(function() {
 | 
			
		||||
							} 
 | 
			
		||||
						} ); 
 | 
			
		||||
				}	
 | 
			
		||||
				
 | 
			
		||||
				var anonymous;
 | 
			
		||||
				if ($("#anonymous").prop("checked")) { 
 | 
			
		||||
					anonymous = 1; 
 | 
			
		||||
				} else {
 | 
			
		||||
					anonymous = undefined;				
 | 
			
		||||
				}
 | 
			
		||||
	
 | 
			
		||||
				// store the transaction's history
 | 
			
		||||
				var transaction_history = [];
 | 
			
		||||
@ -648,7 +655,7 @@ $(function() {
 | 
			
		||||
										shop_id: $("#shop_id").val(),
 | 
			
		||||
										payment_type: payment_type,
 | 
			
		||||
										check_number: check_number,
 | 
			
		||||
										anonymous: $("#anonymous").val()							
 | 
			
		||||
										anonymous: anonymous				
 | 
			
		||||
								};
 | 
			
		||||
	
 | 
			
		||||
				// check for prior transactions
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user