tryton模块使用规则自动导入语句
trytond-account-statement-rule的Python项目详细描述
account_statement_rule模块允许定义要完成的规则 导入文件中的语句行。 当在语句上单击“apply rule”按钮时,将在 对每个没有任何行的原点下单,直到发现 比赛。然后使用找到的规则创建链接到 起源。
规则
规则由两部分组成:匹配条件和行。
标准
条件与语句的每个原点都匹配:
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
正则表达式可以注册组名party,bank_account和 发票稍后用于搜索一方和发票。
线路
它们定义如何从匹配的原点创建语句行:
- Amount: A Python expression evaluated with:
- amount: the amount of the origin.
- pending: the amount from which previous lines have been deducted.
- Party
- Account
如果该方未填写,则将使用 银行帐户或正则表达式中的方组名。 如果发票组名出现在正则表达式中,则它将用于 找到要链接的发票。