Skip to content

Commit

Permalink
Swap ValDt and BookgDt
Browse files Browse the repository at this point in the history
  • Loading branch information
deedf authored Feb 23, 2025
1 parent 63d03a8 commit dea61ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ofxstatement/plugins/iso20022.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ def _parse_line(self, ntry: ET.Element) -> Optional[StatementLine]:
sline.amount = amt

dt = self._find(ntry, "ValDt")
sline.date = self._parse_date(dt)
sline.date_user = self._parse_date(dt)

bookdt = self._find(ntry, "BookgDt")
sline.date_user = self._parse_date(bookdt)
sline.date = self._parse_date(bookdt)

svcref = self._find(ntry, "NtryDtls/TxDtls/Refs/AcctSvcrRef")
if svcref is None:
Expand Down

0 comments on commit dea61ff

Please sign in to comment.