}
}
if ($lineItem->financial_type_id) {
- $params['financial_account_id'] = CRM_Contribute_PseudoConstant::getRelationalFinancialAccount(
+ $params['financial_account_id'] = CRM_Financial_BAO_FinancialAccount::getFinancialAccountForFinancialTypeByRelationship(
$lineItem->financial_type_id,
$accountRelName
);
* @param array $error
* Error to display.
*
- * @return array
+ * @return array|bool
*/
public static function checkContactPresent($contactIds, &$error) {
if (empty($contactIds)) {