mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-11-04 01:15:35 -05:00 
			
		
		
		
	Adds transactions_with_volunteer_benefits and transactions_with_membership_benefits.
* Allows transactions to provide volunter and/or membership benefits * Volunteer benefits take precedent for patrons with both types of benefits if a tranaction offers both.
This commit is contained in:
		
							parent
							
								
									c214c48a3d
								
							
						
					
					
						commit
						d4cb86b3c0
					
				@ -80,18 +80,18 @@ define("STAND_TIME_VALUE",10);
 | 
			
		||||
// Determines the behaviour of Bicycles (transaction_type_id) for volunteer to earn-a-bike purchases
 | 
			
		||||
define("EARN_A_BIKE_LIMIT",1);
 | 
			
		||||
 | 
			
		||||
// Map transaction_type_id for transaction to the type of benefits desired
 | 
			
		||||
/*
 | 
			
		||||
$gnucash_accounts = array(	"Bicycles" => "",
 | 
			
		||||
									"Used Parts" => "",
 | 
			
		||||
									"New Parts" => "",
 | 
			
		||||
									"Stand Time" => "",
 | 
			
		||||
									"Inventory Parts" => "",
 | 
			
		||||
									"Inventory Parts" => ""
 | 
			
		||||
									
 | 
			
		||||
								);
 | 
			
		||||
								*/
 | 
			
		||||
// Map transaction_type_id for transaction to benefits; 
 | 
			
		||||
// Bicycles and Stand Time are special transaction types for volunteers, but they should still be mapped if benefits are desired.
 | 
			
		||||
$transactions_with_volunteer_benefits = array( 	"Bicycles",
 | 
			
		||||
																"Stand  Time",
 | 
			
		||||
																"Used Parts"
 | 
			
		||||
															);
 | 
			
		||||
 | 
			
		||||
// Volunteer benefits take priority over membership benefits if patron qualifies for both															
 | 
			
		||||
$transactions_with_membership_benefits = array( "Used Parts",
 | 
			
		||||
																"New Parts"
 | 
			
		||||
															 );
 | 
			
		||||
					
 | 
			
		||||
/*******
 | 
			
		||||
CONTACTS
 | 
			
		||||
********/
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user