Skip to content

Commit

Permalink
DKB2 now parses name correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Jul 11, 2024
1 parent 1c899b1 commit 78f2928
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/link/biosmarcel/baka/bankimport/DKB2CSV.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ public static List<Payment> parse(final Account account, final File file) {
case "" -> bookingDate;
default -> LocalDate.parse(record.get(1), DATE_FORMAT).atStartOfDay();
};
final String name = record.get(3);

String name;
if ("ausgang".equalsIgnoreCase(record.get(6))) {
name = record.get(4);
} else {
name = record.get(3);
}

final Payment payment = new Payment(
account,
Expand Down

0 comments on commit 78f2928

Please sign in to comment.