From d4cb86b3c0e5488d50f62f1132bc909e80c0262b Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Wed, 2 Aug 2017 22:27:39 +0000 Subject: [PATCH] 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. --- Connections/database_functions.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Connections/database_functions.php b/Connections/database_functions.php index bbe7186..8f7b4a6 100644 --- a/Connections/database_functions.php +++ b/Connections/database_functions.php @@ -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 ********/