Skip to content

This extension adds some functionality involving financial batches.

License

Notifications You must be signed in to change notification settings

Chirojeugd-Vlaanderen/contributionbatchhelper

Repository files navigation

contributionbatchhelper

This CiviCRM extension adds some contribution related functionality that I find useful for our CiviCRM instance.

  • If you search contributions with the contribution search form, and you select one or more results, you can add those results to a new or an existing financial batch. If you want to use this, you might want to patch CiviCRM, so that you can search for contributions that are not yet contained in any batch.
  • It provides an api action BatchedContribution.get, that does the same as Contribution.get, but also returns the ID of the batch the contribution is contained in (if any). It allows filtering on batch ID as well.

dependencies

If you want to use this extension, you need to install queryapitools as well.

Compatibility warning!

In CiviCRM 4.7.13 or CiviCRM 4.7.14, something changed in the CiviCRM API, which broke version 0.1-alpha1 of the queryapitools extensions. This version of contributionbatchhelper works with queryapitools 1.0-alpha1, and it shoud therefore work with CiviCRM 4.7.15 and (hopefully) later.

API example

The example below returns the requested fields for all contributions in financial batch 22.

$result = civicrm_api3('BatchedContribution', 'get', array(
  'return' => array("contribution_id", "contact_id", "total_amount", "batch_id"),
  'batch_id' => 22,
));

About

This extension adds some functionality involving financial batches.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published