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

issue : the total amount shown was 'n/a' (NULL) on the layout page as the sql query used for its calculation didn't consist of appropriate receive date value in WHERE clause. (i.e. end point value for receive date was 20130930)

 But proper WHERE clause was getting build for contribution search page (i.e. end point value for receive date was 20130930235959)

Due to this the records varied for contribution dashboard and search page that opens up after clicking the 'view details..' link mentioned in image attached to the issue.

fixed the issue by passing proper end point date value for calculating contribution total amount and count .