Nicolas JEUDY
7 years ago
committed by
Nicolas JEUDY
10 changed files with 271 additions and 17 deletions
-
3account_bank_statement_import_ofx/README.rst
-
1account_bank_statement_import_ofx/__init__.py
-
4account_bank_statement_import_ofx/__manifest__.py
-
1account_bank_statement_import_ofx/tests/__init__.py
-
50account_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
-
1account_bank_statement_import_ofx/wizard/__init__.py
-
26account_bank_statement_import_ofx/wizard/account_bank_statement_import.py
-
1requirements.txt
@ -1,2 +1 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from . import wizard |
@ -1,2 +1 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from . import test_import_bank_statement |
@ -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> |
@ -1,2 +1 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from . import account_bank_statement_import |
@ -0,0 +1 @@ |
|||
ofxparse |
Write
Preview
Loading…
Cancel
Save
Reference in new issue