From 17684f6e10625f60e9153cfdd28fb53e2c553344 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Fri, 11 May 2018 05:18:22 +0000 Subject: [PATCH] Fixes #61. Redundant named constant. --- Connections/database_functions.php | 5 +---- json/transaction.php | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Connections/database_functions.php b/Connections/database_functions.php index df84f6d..c127274 100644 --- a/Connections/database_functions.php +++ b/Connections/database_functions.php @@ -49,15 +49,12 @@ define("MEMBERSHIP_DISCOUNT",10); // PERCENTAGE /********* STAND TIME **********/ -// Determines the behaviour of Stand Time (transaction_type_id) +// Determines the hourly cost for Stand Time (transaction_type_id) define("STAND_TIME_HOURLY_RATE",10); // IN DOLLARS // Define how much time over 1hr is allowed before charging for the next hour. define("STAND_TIME_GRACE_PERIOD",15); // IN MINUTES 1 - 59 -// Define hourly cost for stand time -define("STAND_TIME_VALUE",10); // IN DOLLARS - // Define how many free days of stand time are allotted after purchase of a bike define("FREE_STAND_TIME_PERIOD",30); // IN DAYS diff --git a/json/transaction.php b/json/transaction.php index 281d17a..d4ef496 100644 --- a/json/transaction.php +++ b/json/transaction.php @@ -14,7 +14,6 @@ $change_fund = CHANGE_FUND; $csv_directory = CSV_DIRECTORY; $stand_time_hourly_rate = STAND_TIME_HOURLY_RATE; $stand_time_grace_period = STAND_TIME_GRACE_PERIOD; -$stand_time_value = STAND_TIME_VALUE; $free_stand_time_period = FREE_STAND_TIME_PERIOD; $timezone = TIMEZONE; $sweat_equity_limit = SWEAT_EQUITY_LIMIT; @@ -160,7 +159,7 @@ $membership_discount = MEMBERSHIP_DISCOUNT; $result["volunteer_discount"] = $volunteer_discount; $result["special_volunteer_hours_qualification"] = $special_volunteer_hours_qualification; $result["special_volunteer_discount"] = $special_volunteer_discount; - $result["stand_time_value"] = $stand_time_value; + $result["stand_time_value"] = $stand_time_hourly_rate; $result["redeem_one_to_one"] = $redeem_one_to_one; $volunteers[] = $result; }