Skip to content
Permalink
Browse files
refactored default date range
  • Loading branch information
mgeiss committed Jun 11, 2017
1 parent c3a63e3 commit c851ae086bbe7a3fb748603a98cce388a2cfd5de
Showing 1 changed file with 2 additions and 1 deletion.
@@ -16,6 +16,7 @@
package io.mifos.teller.service.internal.service;

import io.mifos.accounting.api.v1.domain.AccountEntryPage;
import io.mifos.core.lang.DateConverter;
import io.mifos.teller.ServiceConstants;
import io.mifos.teller.api.v1.domain.Teller;
import io.mifos.teller.api.v1.domain.TellerBalanceSheet;
@@ -76,7 +77,7 @@ public TellerBalanceSheet getBalance(final String tellerCode) {
final LocalDateTime startDate = lastModifiedOn.withHour(0).withMinute(0).withSecond(0).withNano(0);
final LocalDateTime endDate = lastModifiedOn.withHour(23).withMinute(59).withSecond(59).withNano(999);
final String dateRange =
startDate.format(DateTimeFormatter.BASIC_ISO_DATE) + ".." + endDate.format(DateTimeFormatter.BASIC_ISO_DATE);
DateConverter.toIsoString(startDate) + ".." + DateConverter.toIsoString(endDate);

final List<TellerEntry> tellerEntries = this.fetchTellerEntries(accountIdentifier, dateRange, 0);

0 comments on commit c851ae0

Please sign in to comment.