Closed twomice closed 3 years ago
Hi @twomice - when we switched from tracking contributions via the contributions table to tracking it via line items, we left a backwards compatible option. Under field settings, you should see a checkbox called "Show simplified fields". If you check this option, then every contribution summary field as a version with "simplified" in parentheses. The simplified version should only consult the contribution table, not the line items table.
Does that work for you?
@jmcclelland That sounds like it would be the right thing, but the string "simpl" doesn't appear anywhere on the "Summary Fields Administration" page at /civicrm/admin/setting/sumfields I'm running Summary Fields version 4.0.2 under CiviCRM 5.24.3 / Drupal 8. Is that "simplified" option only available under master
?
Yes - try master if you don't mind. The last release broke a lot of things so I've been a bit shy. I really should do a new official release.
The release is out.
In modern CiviCRM versions, every contribution has at least one line item, as well as entries in other tables, e.g., as Jamie notes in https://github.com/progressivetech/net.ourpowerbase.sumfields/issues/66#issue-504758267:
But in older versions of CiviCRM (in my case, version 4.2.17), simple single-value contributions were recorded in
civicrm_contribution
with no corresponding record incivicrm_line_item
(and probably not in most of the other tables mentioned above, either).Of course the past is passed, and we can't expect to keep supporting old CiviCRM version. But, when we upgraded civicrm 4.2.17 to modern 5.x, the old data still has the old data structures: contributions recorded before that upgrade still have no entries in
civicrm_line_item
. Therefore, because it expects a line_item for every contribution, Summary Fields fails to count these contributions correctly, in various fields including but not limited to:It seems there are two options:
@jmcclelland or others: any thoughts on this?