mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Fixes another introduced bug so that readonly is only on for paid members for Memberships transactions.
This commit is contained in:
		
							parent
							
								
									7b84256a39
								
							
						
					
					
						commit
						2b5c07665b
					
				| @ -867,12 +867,14 @@ $(function() { | |||||||
| 					$("#membership_discount_price").empty(); | 					$("#membership_discount_price").empty(); | ||||||
| 					amount.val(""); | 					amount.val(""); | ||||||
| 
 | 
 | ||||||
| 					//make an exception for an actual member
 | 					//make an exception for an actual member for a Membership transaction
 | ||||||
| 					amount.removeAttr("readonly"); | 					if ($("#transaction_type").val() === "Memberships") { | ||||||
|  | 						amount.removeAttr("readonly"); | ||||||
|  | 					} | ||||||
| 					if (membership_obj.expiration_date) { | 					if (membership_obj.expiration_date) { | ||||||
| 						var exp = membership_obj.expiration_date; | 						var exp = membership_obj.expiration_date; | ||||||
| 						expiration_date = new Date(exp.split("-").toString()); | 						expiration_date = new Date(exp.split("-").toString()); | ||||||
| 						if (d < expiration_date) {	 | 						if (d < expiration_date && $("#transaction_type").val() === "Memberships") {	 | ||||||
| 							membership_transaction = true; | 							membership_transaction = true; | ||||||
| 							amount.attr("readonly", "readonly"); | 							amount.attr("readonly", "readonly"); | ||||||
| 						} | 						} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user