VAT-569 Code indentation
authordpradeep <pradeep.dorugade@webaccess.co.in>
Wed, 6 Aug 2014 13:21:02 +0000 (18:51 +0530)
committerdpradeep <pradeep.dorugade@webaccess.co.in>
Wed, 6 Aug 2014 13:21:02 +0000 (18:51 +0530)
CRM/Price/BAO/PriceSet.php
templates/CRM/Contribute/Form/Contribution.tpl

index faa35aa1c68a386ddb23de1d6a8ed7197b842d37..b1addc7f3aa7ae11608261d9530a5b431270dbcd 100644 (file)
@@ -680,7 +680,7 @@ WHERE  id = %1";
             if (array_key_exists($params['financial_type_id'], $taxRates)) {
               $field['options'][key($field['options'])]['tax_rate'] = $taxRates[$params['financial_type_id']];
               $taxAmount = CRM_Contribute_BAO_Contribution_Utils::calculateTaxAmount($field['options'][key($field['options'])]['amount'], $field['options'][key($field['options'])]['tax_rate']);
-              $field['options'][key($field['options'])]['tax_amount'] = round($taxAmount['tax_amount'],2);
+              $field['options'][key($field['options'])]['tax_amount'] = round($taxAmount['tax_amount'], 2);
               $lineItem = self::setLineItem($field, $lineItem, key($field['options']));
               $totalTax += $field['options'][key($field['options'])]['tax_amount'] * $lineItem[key($field['options'])]['qty'];
             }
index 1771dd00463ba078199c968e31daa39fccca486b..a8d4ce4dc8331d6da81e636d7bcb351c43c1c878 100644 (file)
@@ -629,7 +629,7 @@ cj("#financial_type_id").on("change",function(){
 })
 
 cj("#currency").on("change",function(){
-    cj('#total_amount').trigger("change");
+  cj('#total_amount').trigger("change");
 })
 
 cj('#total_amount').on("change",function(event) {
@@ -643,11 +643,11 @@ cj('#total_amount').on("change",function(event) {
     var currencySymbol = currencies[currencySelect];
     var re= /\((.*?)\)/g;
     for(m = re.exec(currencySymbol); m; m = re.exec(currencySymbol)){
-       var currencySymbol = m[1];
+      var currencySymbol = m[1];
     }
     var taxRate = taxRates[financialType]; 
     if (!taxRate) {
-       taxRate = 0;
+      taxRate = 0;
     }  
     var totalAmount = cj('#total_amount').val();
     var totalTaxAmount = parseFloat(Number((taxRate/100)*totalAmount)+Number(totalAmount)).toFixed(2);