Simon
June 17, 2021, 8:03am
1
When I’m importing a statement, Most of partys are not automatically linked, depsites their bank account is correctly encoded in database.
Is this considered a normal behaviour?
This is only working when the name are exactly similar, but the bank account is a better key, also because some users can have more than one.
Or maybe it’s a configuration problem?
pokoli
(Sergi Almacellas Abellana)
June 17, 2021, 8:07am
2
Hi Simon,
Which format are you using? The imported data depends on the format you are importing.
Also it is possible to use the account_statement_rule module to create rules to find the party using the bank_account
keyword or the party
keyword. We recently had a discussion about party matthinc that may be relevant to your case.
1 Like
Simon
June 17, 2021, 9:18am
3
Hi,
Thanks for your answer, I use an OFX format.
I’ll have look on account_statement_rule module then.
pokoli
(Sergi Almacellas Abellana)
June 17, 2021, 9:44am
4
This format does not read the bank account. Is there a deidcated field for it or it’s just included on a description field?
Simon
June 17, 2021, 10:15am
5
In the OFX file, I’ve a dedicated field with the partys account number:
<BANKACCTTO>
<ACCTID>BE0************</ACCTID>
<ACCTTYPE>CHECKING</ACCTTYPE>
</BANKACCTTO>
ced
(Cédric Krier)
June 17, 2021, 10:36am
6
As far as I can see the transactions do not have any bank account but only payee. And this is the value that Tryton is using to search for a party.
Simon
June 17, 2021, 11:50am
7
I’m sorry I don’t understand what you mean.
There is actually a bank account (IBAN) in the OFX file for each transactions. Here is a full example. I have a name and bank account. Tryton is able to find party from the name.
<STMTTRN>
<TRNTYPE>DEBIT</TRNTYPE>
<DTPOSTED>20210511</DTPOSTED>
<TRNAMT>Amount</TRNAMT>
<FITID>7d83941f77eadf9fba6db729af00ca933f29e03d</FITID>
<NAME>Name of owner</NAME>
<MEMO>communication</MEMO>
<BANKACCTTO>
<ACCTID>DE00000000000000000000</ACCTID>
<ACCTTYPE>CHECKING</ACCTTYPE>
</BANKACCTTO>
</STMTTRN>
ced
(Cédric Krier)
June 17, 2021, 12:35pm
8
Indeed it is an optional tag that ofxparse does not support. So the first thing to do is to make a proposal to this project to add the support.
Simon
June 17, 2021, 3:53pm
9
Ok. It’s looks the right way as tryton delegate to ofxparse this question.
However, as this is a optionnal tag, it is maybe not widely used and this is almost a dead end for developpement. I feel it could be more useful to invest time to implement a mapping for CSV, as it is a common format for bank statement and would provide a more generic solution.
I can see this was discussed here: I’ll answer this post then.
In France, many banks (all those of the BPCE group at least) don’t propose bank statement export in formats other than csv. Currently I use a complex process to convert this csv to OFX, then I manually add some missing field, to be able to import statement as a OFX file.
I propose to write a module account_statement_csv that would use directly the csv from the online bank account interface to import statements.
Is it a bad idea or do you think to a better way?
Simon
June 19, 2021, 5:21am
10
I was ready to open an issue but you’ve done it already
opened 04:00PM - 17 Jun 21 UTC
A statement transaction can have an optional BANKACCTTO or CCACCTTO tag.
It can… be useful to have this information when trying to match the transaction with an existing party of a system.
References:
* https://www.ofx.net/downloads/OFX%202.2.pdf#G13.15938
* https://www.ofx.net/downloads/OFX%202.2.pdf#G13.15273
I’m not sure I’ve understood how to use the rules but encoding the bank name in identifiers for each parties is a working solution.
system
(system)
Closed
July 19, 2021, 5:21am
11
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.