-
-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from njeudy/10-ofx-account-number-saniteze-iban
[10.0] Find correct bank account when account is IBAN
- Loading branch information
Showing
6 changed files
with
262 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
account_bank_statement_import_ofx/tests/test_ofx_file/test_ofx_iban.ofx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<?xml version="1.0" encoding="ASCII"?> | ||
<?OFX OFXHEADER="200" VERSION="211" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE"?> | ||
<OFX> | ||
<SIGNONMSGSRSV1> | ||
<SONRS> | ||
<STATUS> | ||
<CODE>0</CODE> | ||
<SEVERITY>INFO</SEVERITY> | ||
</STATUS> | ||
<DTSERVER>20130831165153.000[-8:PST]</DTSERVER> | ||
<LANGUAGE>ENG</LANGUAGE> | ||
</SONRS> | ||
</SIGNONMSGSRSV1> | ||
<BANKMSGSRSV1> | ||
<STMTTRNRS> | ||
<TRNUID>0</TRNUID> | ||
<STATUS> | ||
<CODE>0</CODE> | ||
<SEVERITY>INFO</SEVERITY> | ||
</STATUS> | ||
<STMTRS> | ||
<CURDEF>USD</CURDEF> | ||
<BANKACCTFROM> | ||
<BANKID>30001</BANKID> | ||
<BRANCHID>00794</BRANCHID> | ||
<ACCTID>12345678901</ACCTID> | ||
<ACCTTYPE>CHECKING</ACCTTYPE> | ||
</BANKACCTFROM> | ||
<BANKTRANLIST> | ||
<DTSTART>20130801</DTSTART> | ||
<DTEND>20130831165153.000[-8:PST]</DTEND> | ||
<STMTTRN> | ||
<TRNTYPE>POS</TRNTYPE> | ||
<DTPOSTED>20130824080000</DTPOSTED> | ||
<TRNAMT>-80</TRNAMT> | ||
<FITID>219378</FITID> | ||
<NAME>Agrolait</NAME> | ||
</STMTTRN> | ||
</BANKTRANLIST> | ||
<BANKTRANLIST> | ||
<DTSTART>20130801</DTSTART> | ||
<DTEND>20130831165153.000[-8:PST]</DTEND> | ||
<STMTTRN> | ||
<TRNTYPE>POS</TRNTYPE> | ||
<DTPOSTED>20130824080000</DTPOSTED> | ||
<TRNAMT>-90</TRNAMT> | ||
<FITID>219379</FITID> | ||
<NAME>China Export</NAME> | ||
</STMTTRN> | ||
</BANKTRANLIST> | ||
<BANKTRANLIST> | ||
<DTSTART>20130801</DTSTART> | ||
<DTEND>20130831165153.000[-8:PST]</DTEND> | ||
<STMTTRN> | ||
<TRNTYPE>POS</TRNTYPE> | ||
<DTPOSTED>20130824080000</DTPOSTED> | ||
<TRNAMT>-100</TRNAMT> | ||
<FITID>219380</FITID> | ||
<NAME>Axelor Scuba</NAME> | ||
</STMTTRN> | ||
</BANKTRANLIST> | ||
<BANKTRANLIST> | ||
<DTSTART>20130801</DTSTART> | ||
<DTEND>20130831165153.000[-8:PST]</DTEND> | ||
<STMTTRN> | ||
<TRNTYPE>POS</TRNTYPE> | ||
<DTPOSTED>20130824080000</DTPOSTED> | ||
<TRNAMT>-90</TRNAMT> | ||
<FITID>219381</FITID> | ||
<NAME>China Scuba</NAME> | ||
</STMTTRN> | ||
</BANKTRANLIST> | ||
<LEDGERBAL> | ||
<BALAMT>2156.56</BALAMT> | ||
<DTASOF>20130831165153</DTASOF> | ||
</LEDGERBAL> | ||
</STMTRS> | ||
</STMTTRNRS> | ||
</BANKMSGSRSV1> | ||
<CREDITCARDMSGSRSV1> | ||
<CCSTMTTRNRS> | ||
<TRNUID>0</TRNUID> | ||
<STATUS> | ||
<CODE>0</CODE> | ||
<SEVERITY>INFO</SEVERITY> | ||
</STATUS> | ||
<CCSTMTRS> | ||
<CURDEF>USD</CURDEF> | ||
<CCACCTFROM> | ||
<ACCTID>123412341234</ACCTID> | ||
</CCACCTFROM> | ||
<BANKTRANLIST> | ||
</BANKTRANLIST> | ||
<LEDGERBAL> | ||
<BALAMT>-562.00</BALAMT> | ||
<DTASOF>20130831165153</DTASOF> | ||
</LEDGERBAL> | ||
</CCSTMTRS> | ||
</CCSTMTTRNRS> | ||
</CREDITCARDMSGSRSV1> | ||
</OFX> |
100 changes: 100 additions & 0 deletions
100
account_bank_statement_import_ofx/tests/test_ofx_file/test_ofx_wrong.ofx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<?xml version="1.0" encoding="ASCII"?> | ||
<?OFX OFXHEADER="200" VERSION="211" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE"?> | ||
<OFX> | ||
<SIGNONMSGSRSV1> | ||
<SONRS> | ||
<STATUS> | ||
<CODE>0</CODE> | ||
<SEVERITY>INFO</SEVERITY> | ||
</STATUS> | ||
<DTSERVER>20130831165153.000[-8:PST]</DTSERVER> | ||
<LANGUAGE>ENG</LANGUAGE> | ||
</SONRS> | ||
</SIGNONMSGSRSV1> | ||
<BANKMSGSRSV1> | ||
<STMTTRNRS> | ||
<TRNUID>0</TRNUID> | ||
<STATUS> | ||
<CODE>0</CODE> | ||
<SEVERITY>INFO</SEVERITY> | ||
</STATUS> | ||
<STMTRS> | ||
<!-- <CURDEF>USD</CURDEF> | ||
<BANKACCTFROM> | ||
<BANKID>000000123</BANKID> | ||
<ACCTID>123456</ACCTID> | ||
<ACCTTYPE>CHECKING</ACCTTYPE> | ||
</BANKACCTFROM> --> | ||
<BANKTRANLIST> | ||
<DTSTART>20130801</DTSTART> | ||
<DTEND>20130831165153.000[-8:PST]</DTEND> | ||
<STMTTRN> | ||
<TRNTYPE>POS</TRNTYPE> | ||
<DTPOSTED>20130824080000</DTPOSTED> | ||
<TRNAMT>-80</TRNAMT> | ||
<FITID>219378</FITID> | ||
<NAME>Agrolait</NAME> | ||
</STMTTRN> | ||
</BANKTRANLIST> | ||
<BANKTRANLIST> | ||
<DTSTART>20130801</DTSTART> | ||
<DTEND>20130831165153.000[-8:PST]</DTEND> | ||
<STMTTRN> | ||
<TRNTYPE>POS</TRNTYPE> | ||
<!-- <DTPOSTED>20130824080000</DTPOSTED> | ||
<TRNAMT>-90</TRNAMT> | ||
<FITID>219379</FITID> --> | ||
<NAME>China Export</NAME> | ||
</STMTTRN> | ||
</BANKTRANLIST> | ||
<BANKTRANLIST> | ||
<DTSTART>20130801</DTSTART> | ||
<DTEND>20130831165153.000[-8:PST]</DTEND> | ||
<STMTTRN> | ||
<TRNTYPE>POS</TRNTYPE> | ||
<DTPOSTED>20130824080000</DTPOSTED> | ||
<TRNAMT>-100</TRNAMT> | ||
<FITID>219380</FITID> | ||
<NAME>Axelor Scuba</NAME> | ||
</STMTTRN> | ||
</BANKTRANLIST> | ||
<BANKTRANLIST> | ||
<DTSTART>20130801</DTSTART> | ||
<DTEND>20130831165153.000[-8:PST]</DTEND> | ||
<STMTTRN> | ||
<TRNTYPE>POS</TRNTYPE> | ||
<DTPOSTED>20130824080000</DTPOSTED> | ||
<TRNAMT>-90</TRNAMT> | ||
<FITID>219381</FITID> | ||
<NAME>China Scuba</NAME> | ||
</STMTTRN> | ||
</BANKTRANLIST> | ||
<LEDGERBAL> | ||
<BALAMT>2156.56</BALAMT> | ||
<DTASOF>20130831165153</DTASOF> | ||
</LEDGERBAL> | ||
</STMTRS> | ||
</STMTTRNRS> | ||
</BANKMSGSRSV1> | ||
<CREDITCARDMSGSRSV1> | ||
<CCSTMTTRNRS> | ||
<TRNUID>0</TRNUID> | ||
<STATUS> | ||
<CODE>0</CODE> | ||
<SEVERITY>INFO</SEVERITY> | ||
</STATUS> | ||
<CCSTMTRS> | ||
<CURDEF>USD</CURDEF> | ||
<CCACCTFROM> | ||
<ACCTID>123412341234</ACCTID> | ||
</CCACCTFROM> | ||
<BANKTRANLIST> | ||
</BANKTRANLIST> | ||
<LEDGERBAL> | ||
<BALAMT>-562.00</BALAMT> | ||
<DTASOF>20130831165153</DTASOF> | ||
</LEDGERBAL> | ||
</CCSTMTRS> | ||
</CCSTMTTRNRS> | ||
</CREDITCARDMSGSRSV1> | ||
</OFX> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters