From 2d0d9bc243d950ca5367d4e4176312fd40acdd1a Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 25 Aug 2016 21:19:18 +0530 Subject: [PATCH] CRM-16189, fee amount is not a payment ---------------------------------------- * CRM-16189: Improve support for Accrual Method bookkeeping https://issues.civicrm.org/jira/browse/CRM-16189 --- CRM/Core/BAO/FinancialTrxn.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Core/BAO/FinancialTrxn.php b/CRM/Core/BAO/FinancialTrxn.php index 5269aee35163..b0db26447b20 100644 --- a/CRM/Core/BAO/FinancialTrxn.php +++ b/CRM/Core/BAO/FinancialTrxn.php @@ -427,6 +427,7 @@ public static function recordFees($params) { $params['trxnParams']['fee_amount'] = $params['trxnParams']['net_amount'] = 0; $params['trxnParams']['status_id'] = $params['contribution_status_id']; $params['trxnParams']['contribution_id'] = $contributionId; + $params['trxnParams']['is_payment'] = FALSE; $trxn = self::create($params['trxnParams']); if (empty($params['entity_id'])) { $financialTrxnID = CRM_Core_BAO_FinancialTrxn::getFinancialTrxnId($params['trxnParams']['contribution_id'], 'DESC');