Skip to content
Snippets Groups Projects
Commit b5700854 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #1719 from pratik-joshi/CRM-13472

CRM-13472 fix for - the total number of amount and count didn't matched with its corresponding search result because the receive date value varied in sql queries for both cases
parents 456fcdd2 106f4f2d
No related branches found
No related tags found
No related merge requests found
......@@ -69,8 +69,12 @@ class CRM_Contribute_Page_DashBoard extends CRM_Core_Page {
$now = $yearNow;
}
// appending end date i.e $now with time
// to also calculate records of end date till mid-night
$nowWithTime = $now . '235959';
foreach ($status as $s) {
${$aName}[$s] = CRM_Contribute_BAO_Contribution::getTotalAmountAndCount($s, $$dName, $now);
${$aName}[$s] = CRM_Contribute_BAO_Contribution::getTotalAmountAndCount($s, $$dName, $nowWithTime);
${$aName}[$s]['url'] = CRM_Utils_System::url('civicrm/contribute/search',
"reset=1&force=1&status=1&start={$$dName}&end=$now&test=0"
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment