From: Eileen McNaughton Date: Mon, 15 Jun 2015 02:26:10 +0000 (+1200) Subject: whitespace tidy up on invoice code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4f7df6580e74c2b133ada24112d18d0feb04a102;p=civicrm-core.git whitespace tidy up on invoice code --- 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)); }