----------------------------------------
* CRM-13472: Contribution Dashboard "Table Layout" query inaccurate
http://issues.civicrm.org/jira/browse/CRM-13472
$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"
);