Skip to content

Commit

Permalink
remove 'checked' comments because everything should be checked agains…
Browse files Browse the repository at this point in the history
…t specs and comments should only indicate when something is unchecked or guessed or so
  • Loading branch information
Hendrik Jäger committed Jul 11, 2023
1 parent 2e7084e commit ae114ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ofxstatement/plugins/iso20022.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@ def _get_statement_el(self, tree: ET.ElementTree) -> ET.Element:
def _parse_statement_properties(self, tree: ET.ElementTree) -> None:
stmt = self._get_statement_el(tree)

bnk = stmt.find("./s:Acct/s:Svcr/s:FinInstnId/s:BICFI", self.xmlns) # checked
bnk = stmt.find("./s:Acct/s:Svcr/s:FinInstnId/s:BICFI", self.xmlns)
if bnk is None:
bnk = stmt.find("./s:Acct/s:Svcr/s:FinInstnId/s:Nm", self.xmlns) # checked
bnk = stmt.find("./s:Acct/s:Svcr/s:FinInstnId/s:Nm", self.xmlns)

ibanfind = stmt.find(
"./s:Ntry/s:NtryDtls/s:TxDtls/s:RltdPties/s:CdtrAcct/s:Id/s:IBAN",
self.xmlns,
) # checked, appears to not be included in every camt.053 statement?
# assert iban is not None
ccy = stmt.find("./s:Acct/s:Ccy", self.xmlns) # checked
bals = stmt.findall("./s:Bal", self.xmlns) # checked
)

ccy = stmt.find("./s:Acct/s:Ccy", self.xmlns)
bals = stmt.findall("./s:Bal", self.xmlns)

acctCurrency = ccy.text if ccy is not None else None
if acctCurrency:
Expand Down

0 comments on commit ae114ee

Please sign in to comment.