This fixes #9 by allowing two behaviors via REDEEM_ONE_TO_ONE:

* based on the SWEAT_EQUITY_LIMIT with discounts applied,
* based on 1 to 1 (1hr of volunteering === 1hr of free stand time) regardless of the SWEAT_EQUITY_LIMIT
This commit is contained in:
Jonathan Rosenbaum
2017-10-19 04:27:44 +00:00
parent 28ff8f5fd6
commit 3c5eea235a
3 changed files with 12 additions and 0 deletions
+6
View File
@@ -629,6 +629,12 @@ $(function() {
discount = obj.volunteer_discount;
}
if ($("#transaction_type").val() === "Stand Time") {
if (obj.redeem_one_to_one === true) {
discount = 100;
}
}
// figure out remaining hours that can be redeemed if some, but not all, volunteer hours have been redeemed.
var remaining, year = d.getFullYear(), exceeded_sweat_equity_limit = false, price_after_redeeming, spinner_difference;
if (volunteer) {