From cce6ec9fd4e9cc2574a5c19ba991206a807080d8 Mon Sep 17 00:00:00 2001 From: dpradeep Date: Wed, 6 Aug 2014 18:51:02 +0530 Subject: [PATCH] VAT-569 Code indentation --- CRM/Price/BAO/PriceSet.php | 2 +- templates/CRM/Contribute/Form/Contribution.tpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Price/BAO/PriceSet.php b/CRM/Price/BAO/PriceSet.php index faa35aa1c6..b1addc7f3a 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -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']; } diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 1771dd0046..a8d4ce4dc8 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -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); -- 2.25.1