Skip to content

Commit

Permalink
Money requires a memo
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolif committed Jan 27, 2019
1 parent c79da64 commit c416b74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/FixCA.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public static void main(String[] args) throws IOException, OFXParseException, Pa
// new CA IDX OFX missing FITID, building one from the hashes of the transaction parameters
int hash = Objects.hash(transaction.getDatePosted(), transaction.getAmount(), transaction.getName());
transaction.setId(Integer.toString(hash));
if (transaction.getMemo() == null) {
transaction.setMemo("AUTRE");
}
});
}
}
Expand Down

0 comments on commit c416b74

Please sign in to comment.