Skip to content

Commit

Permalink
Merge pull request #6520 from mlutfy/4.6-crm17034
Browse files Browse the repository at this point in the history
CRM-17034 : PriceField tax_amount should not be rounded
  • Loading branch information
davecivicrm committed Sep 22, 2015
2 parents 5c28565 + ac9def5 commit 763d135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Price/BAO/PriceField.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ public static function getOptions($fieldId, $inactiveNeeded = FALSE, $reset = FA
if (isset($priceFieldValues['financial_type_id']) && array_key_exists($priceFieldValues['financial_type_id'], $taxRates)) {
$options[$fieldId][$priceFieldId]['tax_rate'] = $taxRates[$priceFieldValues['financial_type_id']];
$taxAmount = CRM_Contribute_BAO_Contribution_Utils::calculateTaxAmount($priceFieldValues['amount'], $options[$fieldId][$priceFieldId]['tax_rate']);
$options[$fieldId][$priceFieldId]['tax_amount'] = round($taxAmount['tax_amount'], 2);
$options[$fieldId][$priceFieldId]['tax_amount'] = $taxAmount['tax_amount'];
}
}
}
Expand Down

0 comments on commit 763d135

Please sign in to comment.