Project

General

Profile

Actions

Bug #262

closed

SWIFT 940 parsing substitutes wrong entry date if the :61 field contains none.

Added by jralls@ceridwen.us over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
AqBanking
Start date:
07/28/2022
Due date:
Betriebssystem:
Linux, MacOSX, Windows
AqBanking-Version:
6.5
Anwendung:
GnuCash
Version der Anwendung:
4.11

Description

The SWIFT 940 format's transaction field provides for two dates, a mandatory value date and an optional entry date. It further specifies (https://www2.swift.com/knowledgecentre/publications/us9m_20220722/1.0?topic=con_sfld_HVXYFelYEeuYlf8G2SgDog_-694543811fld.htm) "Subfield 2, Entry Date, is normally only used when different from the value date.", implying that if it's missing the value date should be used for the entry date.

When importing the attached file that has only value dates, AB_Transaction_GetDate() returns the date of the beginning balance (60) field instead of the date returned by AB_Transaction_GetValutaDate().


Files

mt940testdates.txt (1.61 KB) mt940testdates.txt jralls@ceridwen.us, 07/28/2022 11:36 PM
Actions

Also available in: Atom PDF