whitespace tidy up on invoice code
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 15 Jun 2015 02:26:10 +0000 (14:26 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 15 Jun 2015 04:20:00 +0000 (16:20 +1200)
templates/CRM/Member/Form/Membership.tpl

index 59f64ef730cc0f7f98283d81b584dc3f73575eee..22ad031f76d3ca0394b7af731fba436dd34e4166 100644 (file)
         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));
         }