Commit d62716cc authored by Monish Deb's avatar Monish Deb

minor fix

parent 4f6ffb20
......@@ -100,6 +100,7 @@ class CRM_Syncintacct_Util {
'BATCH_TITLE' => $batch['title'],
'ENTRIES' => [],
];
$queryResults = [];
while ($dao->fetch()) {
$accountCode = $dao->credit_account ?: $dao->from_credit_account;
$values = self::getAccountDataByCode($accountCode);
......@@ -138,8 +139,11 @@ class CRM_Syncintacct_Util {
'url' => CRM_Utils_System::url('civicrm/contact/view/contribution', "reset=1&id={$dao->entity_id}&cid={$dao->contact_id}&action=view", TRUE),
],
];
$queryResults[] = get_object_vars($dao);
}
CRM_Utils_Hook::batchItems($queryResults, $GLBatch);
return $GLBatch;
}
......
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