From 4f7df6580e74c2b133ada24112d18d0feb04a102 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 15 Jun 2015 14:26:10 +1200 Subject: [PATCH] whitespace tidy up on invoice code --- templates/CRM/Member/Form/Membership.tpl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Member/Form/Membership.tpl b/templates/CRM/Member/Form/Membership.tpl index 59f64ef730..22ad031f76 100644 --- a/templates/CRM/Member/Form/Membership.tpl +++ b/templates/CRM/Member/Form/Membership.tpl @@ -290,14 +290,15 @@ var taxRates = JSON.parse(taxRates); var taxRate = taxRates[allMemberships[memType]['financial_type_id']]; var currency = '{/literal}{$currency}{literal}'; - var taxAmount = (taxRate/100)*allMemberships[memType]['total_amount_numeric']; - taxAmount = isNaN (taxAmount) ? 0:taxAmount; - if ( term ) { + var taxAmount = (taxRate/100)*allMemberships[memType]['total_amount_numeric']; + taxAmount = isNaN (taxAmount) ? 0:taxAmount; + if (term) { if (!taxRate) { var feeTotal = allMemberships[memType]['total_amount_numeric'] * term; } else { - var feeTotal = Number((taxRate/100) * (allMemberships[memType]['total_amount_numeric'] * term))+Number(allMemberships[memType]['total_amount_numeric'] * term ); + var feeTotal = Number((taxRate/100) * (allMemberships[memType]['total_amount_numeric'] * term))+Number + (allMemberships[memType]['total_amount_numeric'] * term ); } cj("#total_amount").val(CRM.formatMoney(feeTotal, true)); } -- 2.25.1