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

正则表达式可以注册组名partybank_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

如果该方未填写,则将使用 银行帐户或正则表达式中的组名。 如果发票组名出现在正则表达式中,则它将用于 找到要链接的发票。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
字符串中的java日期到日期转换中的日期   swt在Java方法中使用标志的最佳实践   日期如何读取从Youtube API Kotlin/Java返回的视频的持续时间   java无法将任何内容写入文件   java为什么将字符串转换为double可能会丢失精度?   java添加到已设置/填充的数组   java 安卓可扩展列表视图从firebase检索数据   java MsAccess SQL异常参数太少   ConcurrentHashMap中的java lock()方法   SpringBoot如何在Java(SpringBoot2)和GCP数据存储中创建种子数据   java如何在会话中设置对象并在所有控制器中使用它?   eclipse如何在java中转换XML格式的表数据   java写入Google持久磁盘   java循环数组循环,检测   java ThreeTenBackport实现与JSR310的backport?   java如何动态填充注释   数组中的java新运算符