Browse Source

Adds a new definition, stand_time_value.

devel
Jonathan Rosenbaum 7 years ago
parent
commit
6a89e5d675
  1. 1
      Connections/database_functions.php
  2. 2
      json/transaction.php

1
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);

2
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);

Loading…
Cancel
Save