diff --git a/Connections/database_functions.php b/Connections/database_functions.php index e18a7ff..bbe7186 100644 --- a/Connections/database_functions.php +++ b/Connections/database_functions.php @@ -75,6 +75,7 @@ define("VOLUNTEER_HOUR_VALUE",8); define("VOLUNTEER_DISCOUNT",25); define("SPECIAL_VOLUNTEER_HOURS_QUALIFICATION",100); define("SPECIAL_VOLUNTEER_DISCOUNT",50); +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); diff --git a/json/transaction.php b/json/transaction.php index 32dec7e..a85bbeb 100644 --- a/json/transaction.php +++ b/json/transaction.php @@ -20,6 +20,7 @@ $max_bike_earned = MAX_BIKE_EARNED; $volunteer_hour_value = VOLUNTEER_HOUR_VALUE; $special_volunteer_hours_qualification = SPECIAL_VOLUNTEER_HOURS_QUALIFICATION; $special_volunteer_discount = SPECIAL_VOLUNTEER_DISCOUNT; +$stand_time_value = STAND_TIME_VALUE; // Is there a current shop? if(isset($_POST['shop_exist'])) { @@ -150,6 +151,7 @@ $special_volunteer_discount = SPECIAL_VOLUNTEER_DISCOUNT; $result3["sweat_equity_limit"] = $sweat_equity_limit; $result3["special_volunteer_hours_qualification"] = $special_volunteer_hours_qualification; $result3["special_volunteer_discount"] = $special_volunteer_discount; + $result3["stand_time_value"] = $stand_time_value; $result = (object)array_merge((array)$result, (array)$result2, (array)$result3); echo json_encode($result);