Skip to main content

Tryton module to automate statement import with rules

Project description

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.

Rule

A rule is composed of two parts: matching criteria and lines.

Criteria

The criteria are matched with each origin of the statement:

  • Company

  • Journal

  • Amount: Check if the amount is between two values

  • Description: A regular expression to search for a match in the origin description.

  • Information rules:

    • Key: the statement information key on which the rule applies

    • The matching value depending of the type of the key:

      • Boolean

      • Numeric: A range of value.

      • Char: A regular expression.

      • Selection

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.

Lines

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.

  • Party

  • Account

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 files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trytond_account_statement_rule-6.0.4.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trytond_account_statement_rule-6.0.4-py3-none-any.whl (52.3 kB view details)

Uploaded Python 3

File details

Details for the file trytond_account_statement_rule-6.0.4.tar.gz.

File metadata

File hashes

Hashes for trytond_account_statement_rule-6.0.4.tar.gz
Algorithm Hash digest
SHA256 42af3cc15c83b48a7d7c94d1740d52ca546d979ddbaf1baaf1d2d758f265a4fe
MD5 0eda8b832399ace26e781cc2f3f057b7
BLAKE2b-256 c88752ee120cbb61a382ed31fec03403210a89d6c6a21a34a28e56c852b5353d

See more details on using hashes here.

File details

Details for the file trytond_account_statement_rule-6.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for trytond_account_statement_rule-6.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5d63fce56e9bcc4ee440287cdca268a1ef1f77f9d466c9fa1c9c2b137c1497e6
MD5 e3dfc62adc63a972045c2d713c704bfa
BLAKE2b-256 cc03e3309f70b4e79b0b8aeab6b3ac344fc606a2d13638f78bf423287fff97a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page