mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
6
upcoming-release-notes/3086.md
Normal file
6
upcoming-release-notes/3086.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [simonschmidt]
|
||||
---
|
||||
|
||||
Fix crash on CAMT.053 imports with missing ValDt
|
||||
Reference in New Issue
Block a user