1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-23 09:13:23 -05:00

Corrects a bug, by returning a deleted value.

This commit is contained in:
Jonathan Rosenbaum 2017-08-02 20:27:13 +00:00
parent 1c6508abd0
commit bd00d498f1

View File

@ -674,6 +674,7 @@ $(function() {
(hours_applied_with_value * (discount / 100).toFixed(2)); (hours_applied_with_value * (discount / 100).toFixed(2));
} else { } else {
difference = price - obj.sweat_equity_limit; difference = price - obj.sweat_equity_limit;
value_to_apply_discount = price - sweat_equity_limit;
hours_applied_with_value = difference - value_to_apply_discount; hours_applied_with_value = difference - value_to_apply_discount;
console.log(value_to_apply_discount + " + " + " ( " + difference + " - (" + hours_applied_with_value + " * ." + discount + ") )"); console.log(value_to_apply_discount + " + " + " ( " + difference + " - (" + hours_applied_with_value + " * ." + discount + ") )");