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 (Moderator: Dave Greenberg) »
  • Recording Purchases of Credits
Pages: [1]

Author Topic: Recording Purchases of Credits  (Read 296 times)

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Recording Purchases of Credits
October 16, 2014, 07:23:16 am
Dear CiviCommunity!

At FF towers we'd like to record when someone has purchased credits for use in our Teacher Dashboard.

At stage 1 we'd very probably prefer to make a record of the purchase, the amount of credits purchased, and then invoice them later all in our office with nothing in the interface.

Stage 2 will be the ability to purchase and view logs through the dashboard.

What system should we use for this? The bare minimum would be a number of credits as a custom field on the institution, but should we be using CiviContribute? Activities?
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Recording Purchases of Credits
October 16, 2014, 10:26:40 am
How about using contribution records of a specific contribution type ("Teacher Dashboard Credits"). Create a custom data set which extends that type of contribution record with a field to store # of credits ?? Contribution can be initially recorded as Pending and an Invoice sent out. Then updated to Completed when payment received. You might ALSO want to store cumulative credits against the contact record (institution or person?) as a read-only custom field - incrementing and decrementing the total available through hooks (incrementing on completed purchase, decrementing as used).

It would be helpful to think through the life-cycle of the credits. How will they be 'drawn down' when used, etc.
Protect your investment in CiviCRM by  becoming a Member!

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: Recording Purchases of Credits
October 16, 2014, 11:04:30 am
Thanks Dave that sounds perfect.

Especially wrt the view only field being updated by hooks.

J
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Recording Purchases of Credits

This forum was archived on 2017-11-26.