Tryton module to automate statement import with rules
The account_statement_rule module allows rules to be defined to complete statement lines from imported files. When the “Apply Rule” button is clicked on a statement, each rule is tested in order against each origin that does not have any lines until one is found that matches. Then the rule found is used to create the statement lines linked to the origin.
A rule is composed of two parts: matching criteria and lines.
The criteria are matched with each origin of the statement:
Amount: Check if the amount is between two values
Description: A regular expression to search for a match in the origin description.
Key: the statement information key on which the rule applies
The matching value depending of the type of the key:
- Numeric: A range of value.
- Char: A regular expression.
The regular expression can register the group names party, bank_account and invoice which are later used to search for a party and an invoice.
They define how to create the statement lines from the matching origin:
- Amount: A Python expression evaluated with:
- amount: the amount of the origin.
- pending: the amount from which previous lines have been deducted.
If the party is not filled in, one will be searched for using the bank_account or the party group names from the regular expressions. If the invoice group name appears in a regular expression, it will be used to find an invoice to link with.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size trytond_account_statement_rule-5.6.0-py3-none-any.whl (50.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size trytond_account_statement_rule-5.6.0.tar.gz (30.6 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for trytond_account_statement_rule-5.6.0-py3-none-any.whl
Hashes for trytond_account_statement_rule-5.6.0.tar.gz