MIFOSX-627: closing balance is calculated wrongly for same day transactions which can results in negative interest been calculated.
Merge branch 'mifosplatform-1.8.2' into develop