Commit a4cf9573 authored by Monish Deb's avatar Monish Deb

minor fixes

parent 250ac84a
......@@ -222,6 +222,10 @@ class CRM_Syncintacct_Util {
}
public static function createGLEntries($batchEntries) {
foreach ($batchEntries['ENTRIES'] as $key => &$entry) {
$batchEntries['ENTRIES'][$key] = $syncIntacctConfig->createGLEntry($entry);
}
return CRM_Syncintacct_API::singleton()->createGLBatch($batchEntries);
}
......
......@@ -110,10 +110,10 @@ function syncintacct_civicrm_buildForm($formName, &$form) {
function syncintacct_civicrm_post($op, $objectName, $objectId, &$objectRef) {
if ($objectName == 'FinancialAccount' && $op == 'del') {
CRM_Core_DAO::executeQuery("DLEETE FROM civicrm_intacct_financial_account_data WHERE financial_account_id = " . $objectId);
CRM_Core_DAO::executeQuery("DELETE FROM civicrm_intacct_financial_account_data WHERE financial_account_id = " . $objectId);
}
elseif ($objectName == 'Batch' && $op == 'delete') {
CRM_Core_DAO::executeQuery("DLEETE FROM civicrm_intacct_batches WHERE batch_id = " . $objectId);
CRM_Core_DAO::executeQuery("DELETE FROM civicrm_intacct_batches WHERE batch_id = " . $objectId);
}
}
......
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