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开放。mac上使用JDK 11的jar文件失败,出现RuntimeException   java如何更改流<Object>的值?   JAVAutil。扫描器Java,计算文件中的字母   java如何在这个特定示例中消除开关   java Scala/Jerkson:在Json中指定日期对象的格式   未找到带有Thymeleaf css的java SpringBoot   java无法预处理面板动态数据源,以在新建文档(视图模态)时设置默认值   java如何使用Lucene构建我自己的“常用词”过滤器   java Android适配器传递JSON对象数据?   java比较方法违反了它的一般约定,但我可能想这样做?   java试图使用NetBeans Gui生成器在JPanel上绘制点   java Bing API不提供Burp套件中子域的输出(通过Blackhat Python)   java将自定义ScrollView转换为ScrollView   java在二叉搜索树中计算节点数   java取消动态CallyLoaded可调用项我没有编写