Skip to content

Commit

Permalink
CRM-19585, added minor changes
Browse files Browse the repository at this point in the history
----------------------------------------
* CRM-19585: Sales tax issue
  https://issues.civicrm.org/jira/browse/CRM-19585
  • Loading branch information
pradpnayak committed Dec 19, 2016
1 parent c261adb commit e1e3c3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Contribute/BAO/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -3601,7 +3601,7 @@ public static function updateFinancialAccounts(&$params, $context = NULL, $skipT
$params['line_item'][$fieldId][$fieldValueId]['deferred_line_total'] = $amount;
$params['line_item'][$fieldId][$fieldValueId]['financial_item_id'] = $financialItem->id;

$taxAmount = $fieldValues['tax_amount'];
$taxAmount = CRM_Utils_Array::value('tax_amount', $fieldValues);
$taxFinancialType = $fieldValues['financial_type_id'];
if ($context == 'changeFinancialType') {
$taxAmount = $previousLineItem[$fieldValues['id']]['tax_amount'];
Expand Down
2 changes: 1 addition & 1 deletion CRM/Financial/BAO/FinancialItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public static function getPreviousFinancialItem($entityId, $entityTable = 'civic
THEN 0
ELSE 1
END
GROUP BY cfi.id ORDER BY cfi.id DESC LIMIT 1';
ORDER BY cfi.id DESC LIMIT 1';
$prevFinancialItem = CRM_Core_DAO::executeQuery($query, $queryParams);
$prevFinancialItem->fetch();
return $prevFinancialItem;
Expand Down

0 comments on commit e1e3c3a

Please sign in to comment.