Browse Source
[FIX]Find correct bank account when account is IBAN
[FIX]Find correct bank account when account is IBAN
- search correct account number in IBAN - add test.pull/136/head
Nicolas JEUDY
7 years ago
committed by
Nicolas JEUDY
6 changed files with 262 additions and 3 deletions
-
1account_bank_statement_import_ofx/README.rst
-
1account_bank_statement_import_ofx/__manifest__.py
-
42account_bank_statement_import_ofx/tests/test_import_bank_statement.py
-
101account_bank_statement_import_ofx/tests/test_ofx_file/test_ofx_iban.ofx
-
100account_bank_statement_import_ofx/tests/test_ofx_file/test_ofx_wrong.ofx
-
20account_bank_statement_import_ofx/wizard/account_bank_statement_import.py
@ -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> |
@ -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> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue