Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 79 additions & 61 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/main/java/squier/john/accessControl/BankAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ public String getAccountHoldersName() {
}

public void setAccountHoldersName(String newName) {
if ( accountStatus.equals(BankAccountStatus.OPEN) ) {
if (accountStatus.equals(BankAccountStatus.OPEN)) {
accountHoldersName = newName;

transactionRecord.add(new BankAccountTransaction(TransactionType.NAME_CHANGE, 0.0,
accountStatus, this.accountHoldersName));
accountStatus, this.accountHoldersName));

return;
return;
}
}

public BankAccountStatus getAccountStatus() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ public BankAccountTransaction(TransactionType transactionType, double transactio
public TransactionType getTransactionType() { return transactionType; }
public Double getTransactionAmount() { return transactionAmount; }
public BankAccountStatus getBankAccountStatus() { return newStatus; }
public String getName() { return newName}
public String getName() { return newName; }
}
Binary file modified target/classes/squier/john/accessControl/BankAccount.class
Binary file not shown.