From c64b189c834f7992ef8fcec096e56765e3316bcb Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 31 Mar 2021 02:16:23 +0100 Subject: [PATCH] Donot over-ride total amount incase contribution has more than one line item --- CRM/Price/BAO/LineItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index dfaf89f063..0f0b3815ca 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -529,7 +529,7 @@ WHERE li.contribution_id = %1"; $params['is_quick_config'] = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $setID, 'is_quick_config'); } if (!empty($params['is_quick_config']) && array_key_exists('total_amount', $params) - && $totalEntityId == 1 + && $totalEntityId == 1 && count($lineItems) == 1 ) { $values['line_total'] = $values['unit_price'] = $params['total_amount']; } -- 2.25.1