mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user