From bd00d498f1ae70425b1a61a6b5a933e5c2c6a3b9 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Wed, 2 Aug 2017 20:27:13 +0000 Subject: [PATCH] Corrects a bug, by returning a deleted value. --- js/transaction.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/transaction.js b/js/transaction.js index bd00ec4..ea57ea1 100644 --- a/js/transaction.js +++ b/js/transaction.js @@ -674,6 +674,7 @@ $(function() { (hours_applied_with_value * (discount / 100).toFixed(2)); } else { difference = price - obj.sweat_equity_limit; + value_to_apply_discount = price - sweat_equity_limit; hours_applied_with_value = difference - value_to_apply_discount; console.log(value_to_apply_discount + " + " + " ( " + difference + " - (" + hours_applied_with_value + " * ." + discount + ") )");