Skip to content

Commit

Permalink
Fixed booking date not set in SWIFT.
Browse files Browse the repository at this point in the history
  • Loading branch information
mschindler committed Sep 2, 2016
1 parent 3ab41c9 commit 1e6fa03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Fhp/Parser/MT940.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e6fa03

Please sign in to comment.