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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Struggling with Financial Transactions
Pages: [1]

Author Topic: Struggling with Financial Transactions  (Read 406 times)

qjensen

  • I post frequently
  • ***
  • Posts: 141
  • Karma: 11
    • Scaled Solutions
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Struggling with Financial Transactions
January 01, 2015, 12:30:21 pm
One of my customers wants to generate a deposit report from transactions in CiviCRM. They receive a number of payments via check (older membership) and would like to be able to use the data they already have to eliminate the pain of manually filling out deposit reports. I am now trying to develop this as an extension.

What I need to do is get a list of transactions, along with the related contact's info, to generate the UI for selecting transactions. I see there are 2 tables that hold different pieces of information (civicrm_financial_item and civicrm_financial_trxn), and there isn't a shared key to link them, nor does there appear to be enough other common data to look things up manually. The DAO/BAO objects for FinancialItem and FinancialTransaction don't share information, and those classes seem to be developed for specific use cases in CiviCRM, not general use.

TLDR -- is there a way to get unified transaction info, maybe even including the originating entity (ie membership, event), in CiviCRM? Is there documentation I am missing?

Thanks for your help,
Quint
Quint Jensen
Web Developer
Scaled Solutions
--" Remove the 'I want you to like me' notes from your forehead and place them where they truly will do the most good -- on your mirror!" Author Unknown

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Struggling with Financial Transactions
January 01, 2015, 02:28:46 pm
This is a feature that I am interested in as you can see at http://forum.civicrm.org/index.php/topic,33473.msg141963.html#msg141963. (You probably wouldn't have found it as we have 'cheques' in Australia).

I can't help you directly with the information you ask for, but I will outline what I have achieved through the UI in case it is of help to you and perhaps to nudge you in a slightly different direction for your extension. Our current solution is slightly different from the one I indicated in the above topic.

Basically I can get what we need via three custom fields, a new payment type and a report based on Extended Report - Price Set Line Items - Template.

In Australia a bank deposit listing ( ie the piece of paper you need to submit to the bank with your bundle of cheques) needs to include the following for each cheque in the order given:
  • Cheque drawer (not always the same as Contact name)
  • Bank code (to identify the bank and branch where the account is held)
  • Cheque number
  • Amount

The current check payment instrument does not provide enough fields for recording the data and adding just the one extra custom field means that the check fields don't appear in the correct order in the report. 

Instead I created a new payment type called Cheque and three contribution custom fields for it called Cheque drawer, Bank code and Cheque number.  Once the information is in those fields, it is straight forward to get the cheque deposit listing using the Extended Report - Price Set Line Items - Template.

The problem lies in getting the data in.

For straight contributions there is no problem, the contribution custom fields are there to be filled in when the contribution is processed.

When membership payments are being processed however contribution custom fields do not appear when the payment is recorded.  This means that the person entering the check payment has to process the membership join up/renewal first, then edit the contribution to add the information into the custom fields.

Have you investigated whether or not Extended Report - Price Set Line Items - Template lets you get out the information you need for your deposit reports?  (You will need to install the native CiviCRM extension  ExtendedReport. )

If it nearly gets you there, but you need more custom fields, then perhaps creating an extension that exposes contribution custom fields when recording payments for memberships would be the way to go. It may only take the same amount of time as the extension you are currently working on and may be of more use to the greater CiviCRM community.  (I don't have the skills to do it myself and have no money for hiring a developer.)
« Last Edit: January 01, 2015, 03:14:10 pm by joanne »

qjensen

  • I post frequently
  • ***
  • Posts: 141
  • Karma: 11
    • Scaled Solutions
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Struggling with Financial Transactions
January 02, 2015, 06:48:24 am
I'll have to see if my customer would be happy with a report like that. Our deposit reports are a bit simpler, so we may not need the extra fields, but the idea of using a standard report might work.

Thanks for sharing the idea.
Quint Jensen
Web Developer
Scaled Solutions
--" Remove the 'I want you to like me' notes from your forehead and place them where they truly will do the most good -- on your mirror!" Author Unknown

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Struggling with Financial Transactions

This forum was archived on 2017-11-26.