You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was thrilled to find this extension.
I am wondering if the table (and total) can be filters to eliminate both test and pending/incomplete transaction records. Right now all records are included. I would like to have only Completed records of type non-test.
Something like:
"is_test = 0";
"contribution_status" = "Completed";
The text was updated successfully, but these errors were encountered:
I added two lines starting on line 28 and I think it worked:
foreach ($cids as $cid) {
$dao = &CRM_Core_DAO::executeQuery("
SELECT con.total_amount, (con.total_amount - con.non_deductible_amount) as deductible_amount, con.total_amount, con.receive_date, cc.display_name
FROM civicrm_contribution con
LEFT JOIN civicrm_contact cc on con.contact_id=cc.id
LEFT JOIN civicrm_financial_type ft on con.financial_type_id=ft.id
WHERE contact_id = ".$cid
.
" AND con.receive_date BETWEEN '".$last_year."-01-01' AND '".$year."-01-01'
AND ft.is_deductible=1
AND con.is_test = FALSE
AND con.contribution_status_id = 1
;"
);
I was thrilled to find this extension.
I am wondering if the table (and total) can be filters to eliminate both test and pending/incomplete transaction records. Right now all records are included. I would like to have only Completed records of type non-test.
Something like:
"is_test = 0";
"contribution_status" = "Completed";
The text was updated successfully, but these errors were encountered: