CAMT.053: Handle missing ValDt on entries with Sts Book (#3086)

* Replicate seen-in-the-wild camt.053 example

* Handle missing ValDt in camt

* Release notes for #3086
This commit is contained in:
Simon Schmidt
2024-07-17 20:41:06 +00:00
committed by GitHub
parent c2e648c9d5
commit be0d363576
3 changed files with 10 additions and 3 deletions

View File

@@ -129,9 +129,7 @@
<BookgDt>
<Dt>2013-12-30</Dt>
</BookgDt>
<ValDt>
<Dt>2013-12-30</Dt>
</ValDt>
<!-- ValDt deliberately omitted -->
<AcctSvcrRef>2013123001153870001</AcctSvcrRef>
<BkTxCd />
<NtryDtls>

View File

@@ -86,6 +86,9 @@ function convertToNumberOrNull(value: string): number | null {
}
function getDtOrDtTm(Date: DateRef | null): string | null {
if (!Date) {
return null;
}
if ('DtTm' in Date) {
return Date.DtTm.slice(0, 10);
}

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [simonschmidt]
---
Fix crash on CAMT.053 imports with missing ValDt