Commit cde857de authored by Monish Deb's avatar Monish Deb

minor fix

parent c6e38a2f
<?php
/**
* Job.ProcessBatchSyncToIntacct API specification
*
* @param array $spec description of fields supported by this API call
* @return void
* @see http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
function _civicrm_api3_job_processbatchsynctointacct_spec(&$spec) {
}
function civicrm_api3_job_processbatchsynctointacct($params) {
function civicrm_api3_intacct_processBatchSyncToIntacct($params) {
$dao = CRM_Core_DAO::executeQuery('SELECT * FROM civicrm_intacct_batches ORDER BY id ASC');
while($dao->fetch()) {
$entityTable = ($dao->mode == 'GL') ? 'civicrm_contribution' : 'civicrm_grant';
......
......@@ -11,7 +11,7 @@ return array (
'name' => 'Sync Batch to Intacct',
'description' => 'Create GL or AP entries in Intacct for respective contribution or grant payments.',
'run_frequency' => 'Daily',
'api_entity' => 'Job',
'api_entity' => 'Intacct',
'api_action' => 'processBatchSyncToIntacct',
'parameters' => '',
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment