From 1e6fa03683fcd80830a9cd10de73d85ebf295fa2 Mon Sep 17 00:00:00 2001 From: mschindler Date: Fri, 2 Sep 2016 18:26:19 +0200 Subject: [PATCH] Fixed booking date not set in SWIFT. --- lib/Fhp/Parser/MT940.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Fhp/Parser/MT940.php b/lib/Fhp/Parser/MT940.php index 22cac9a..b53f96d 100755 --- a/lib/Fhp/Parser/MT940.php +++ b/lib/Fhp/Parser/MT940.php @@ -126,7 +126,8 @@ protected function parseToArray() if (preg_match('/^\d{4}$/', $bookingDate)) { $bookingDate = $this->getDate($year . $bookingDate); } else { - $bookingDate = null; + // if booking date not set in :61, then we have to take it from :60F + $bookingDate = $this->soaDate; } $trx[count($trx) - 1]['booking_date'] = $bookingDate;