From ca84ac7af08b7302f7e08f669bc8520ee57aa4dd Mon Sep 17 00:00:00 2001 From: Ricardo Vicente Date: Sat, 10 Jan 2015 18:24:22 -0200 Subject: [PATCH] Included the item agencyNumber referring to BRANCHID node in the method buildBankAccount --- lib/OfxParser/Ofx.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/OfxParser/Ofx.php b/lib/OfxParser/Ofx.php index 7b06d84..b77ee34 100644 --- a/lib/OfxParser/Ofx.php +++ b/lib/OfxParser/Ofx.php @@ -118,6 +118,7 @@ private function buildBankAccount($xml) { $Bank = new BankAccount(); $Bank->transactionUid = $xml->TRNUID; + $Bank->agencyNumber = $xml->STMTRS->BANKACCTFROM->BRANCHID; $Bank->accountNumber = $xml->STMTRS->BANKACCTFROM->ACCTID; $Bank->routingNumber = $xml->STMTRS->BANKACCTFROM->BANKID; $Bank->accountType = $xml->STMTRS->BANKACCTFROM->ACCTTYPE;