<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
* Id of the entity usually the contactID.
*
* @return array
- * array of catagory id's the contact belongs to.
+ * array of category id's the contact belongs to.
*
*/
public static function getFinancialTrxnTotal($entity_id) {
* Name of the entity table usually 'civicrm_contact'.
*
* @return array
- * array of catagory id's the contact belongs to.
+ * array of category id's the contact belongs to.
*
*/
public static function getFinancialTrxnLineTotal($entity_id, $entity_table = 'civicrm_contribution') {
/**
* Create financial transaction for premium.
*
+ * @param array $params
+ * - oldPremium
+ * - financial_type_id
+ * - contributionId
+ * - isDeleted
+ * - cost
+ * - currency
*/
public static function createPremiumTrxn($params) {
if ((empty($params['financial_type_id']) || empty($params['contributionId'])) && empty($params['oldPremium'])) {