Skip to content
Snippets Groups Projects
Unverified Commit be0d3635 authored by Simon Schmidt's avatar Simon Schmidt Committed by GitHub
Browse files

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
parent c2e648c9
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -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);
}
......
---
category: Bugfix
authors: [simonschmidt]
---
Fix crash on CAMT.053 imports with missing ValDt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment