CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Offline contributions not logged; configurable?
Pages: [1]

Author Topic: Offline contributions not logged; configurable?  (Read 783 times)

hirbys

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
    • ESTHER
Offline contributions not logged; configurable?
May 30, 2010, 06:03:23 pm
Trying to build a reconciliation list of contributions (to match against bank deposits), I discovered that, at least for my installation, no record of off-line contribution entry is written to civicrm_log table (unlike contacts, activities, etc.). Is this behavior configurable through the UI or settings file? If so how? If not, any suggestions as to how to enable it?

hirbys

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
    • ESTHER
Re: Offline contributions not logged; configurable?
June 03, 2010, 06:34:12 pm
I see this post is being read but not responded to. Am I perhaps not being clear?  Or is the answer obvious to everyone but this newby? Or?

Let me try again: As shipped, CiviCRM logs (to civicrm_log) database activity related to contacts, but not to contributions. For contribution reconciliation purposes at least, it is highly desirable to be able to generate a record of contributions entered by a user and/or a datetime range showing amount, timestamp and user. Assuming that whether to log or not is not user-configurable, how would someone who's reasonably comfortable with PHP but still struggling to understand the CiviCRM object model go about adding logging capabilities to CiviContribute? Extend an existing object?  Use the post_form hook? Etc.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Offline contributions not logged; configurable?
June 03, 2010, 08:47:27 pm

use hook_civicrm_post on the Contribution object and do the logging there

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

hirbys

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
    • ESTHER
Re: Offline contributions not logged; configurable?
June 04, 2010, 07:51:40 pm
Thanks for the tip. Seems doable; will report back.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Offline contributions not logged; configurable?

This forum was archived on 2017-11-26.