----------------------------------------
* CRM-16189: Improve support for Accrual Method bookkeeping
https://issues.civicrm.org/jira/browse/CRM-16189
}
foreach ($values as &$line) {
- $line['entity_table'] = $entityTable;
+ if (empty($line['entity_table'])) {
+ $line['entity_table'] = $entityTable;
+ }
if (empty($line['entity_id'])) {
$line['entity_id'] = $entityId;
}
//need to pass action to handle related memberships.
$params['action'] = $action;
- if (empty($params['line_item']) && !empty($params['membership_type_id'])) {
+ if (empty($params['line_item']) && !empty($params['membership_type_id']) && empty($params['skipLineItem'])) {
CRM_Price_BAO_LineItem::getLineItemArray($params, NULL, 'membership', $params['membership_type_id']);
}