Skip to content

Commit

Permalink
KFSPTS-31154 CheckRecon Set Active Flag true (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajd299 authored and cah292 committed Mar 5, 2024
1 parent 1f7c57a commit c6b4e9f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ private CheckReconciliation setCheckReconciliationAttributes(Map<Integer, String
issueDate = dateParser.apply(issueDateRawValue);

CheckReconciliation cr = new CheckReconciliation();
cr.setActive(true);
cr.setAmount(amount);
cr.setCheckDate(new java.sql.Date(issueDate.getTime()));
cr.setCheckNumber(new KualiInteger(checkNumber));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class CheckReconciliation extends PersistableBusinessObjectBase implement

private Bank bank;

private boolean active;
private boolean active = true;

/**
* Constructs a CheckBase business object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public Collection<CheckReconciliation> getNewCheckReconciliations(Collection<Ban

while(rs.next()) {
cr = new CheckReconciliation();
cr.setActive(true);
cr.setCheckNumber(new KualiInteger(rs.getInt(1)));
cr.setCheckDate(new java.sql.Date(rs.getDate(2).getTime())); //This is last status change date.
cr.setAmount(new KualiDecimal(rs.getDouble(3)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ private void assertCheckReconciliationImportHadExpectedUpdates(
assertEquals(checkReconFixture.newCheckStatus, checkRecon.getStatus(), "Wrong check status");
assertEquals(checkReconFixture.getParsedStatusChangeDate(), checkRecon.getStatusChangeDate(),
"Wrong status change date");
assertTrue(checkRecon.isActive());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public CheckReconciliation toCheckReconciliationUsingCurrentStatus() {
private CheckReconciliation toCheckReconciliation() {
CheckReconciliation checkReconciliation = new CheckReconciliation();
checkReconciliation.setId(ordinal());
checkReconciliation.setActive(true);
checkReconciliation.setBankCode(bankCode);
checkReconciliation.setBankAccountNumber(getExpectedBankAccountNumber());
checkReconciliation.setCheckNumber(checkNumber);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ private MaintenanceDocument prepareMaintenanceDocument(String checkNumberString,
document.setDocumentHeader(dh);

CheckReconciliation newCr = new CheckReconciliation();
newCr.setActive(true);
KualiInteger checkNumber = new KualiInteger(checkNumberString);
newCr.setCheckNumber(checkNumber);

Expand Down

0 comments on commit c6b4e9f

Please sign in to comment.