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-5.4.1.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: trytond_account_statement_rule-5.4.1.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for trytond_account_statement_rule-5.4.1.tar.gz
Algorithm Hash digest
SHA256 5dc6d496b91e6a879b4410fed92011b57b09a5cbea5e82299d0c4375b4737b4d
MD5 7e9e856318aaa76b4c35b0cb58b16a89
BLAKE2b-256 da11169027cd946a0558430de9d81f6f3546e3702676710404dcd7e504149dfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trytond_account_statement_rule-5.4.1-py3-none-any.whl
  • Upload date:
  • Size: 50.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.10

File hashes

Hashes for trytond_account_statement_rule-5.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a989d2261ba7daf0ac82cdfff474332a5c8c912acaa9654a58b343691746502b
MD5 149771fea075eb23c62dc63a845f5ce4
BLAKE2b-256 555ce638f80bd7390189f2dceed588d908345034fe781d9a940e60098e1e37c2

See more details on using hashes here.

Supported by

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