Skip to content

Commit

Permalink
FINERACT-720
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwasbabu committed Mar 4, 2019
1 parent ab09ba8 commit 906fedf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.apache.poi.ss.usermodel.Workbook;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

import javax.ws.rs.core.HttpHeaders;
Expand All @@ -59,6 +60,7 @@ public void setup() {
}

@Test
@Ignore
public void testClientImport() throws InterruptedException, IOException, ParseException {

//in order to populate helper sheets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,15 @@ public CommandProcessingResult applyAnnualFee(final Long savingsAccountChargeId,
final SavingsAccountCharge savingsAccountCharge = this.savingsAccountChargeRepository
.findOneWithNotFoundDetection(savingsAccountChargeId, accountId);

final LocalDate todaysDate = DateUtils.getLocalDateOfTenant();
final DateTimeFormatter fmt = DateTimeFormat.forPattern("dd MM yyyy");

this.payCharge(savingsAccountCharge, savingsAccountCharge.getDueLocalDate(), savingsAccountCharge.amount(), fmt, user);
fmt.withZone(DateUtils.getDateTimeZoneOfTenant());

while (todaysDate.isAfter(savingsAccountCharge.getDueLocalDate())) {
this.payCharge(savingsAccountCharge, savingsAccountCharge.getDueLocalDate(), savingsAccountCharge.amount(),
fmt, user);
}

return new CommandProcessingResultBuilder() //
.withEntityId(savingsAccountCharge.getId()) //
.withOfficeId(savingsAccountCharge.savingsAccount().officeId()) //
Expand Down

0 comments on commit 906fedf

Please sign in to comment.