# 业务数据通过规则自动化记账

{% hint style="info" %}
本帮助文档提供了如何在业务数据自动化模块中设置和管理自动化记账规则的详细指导，包括新增、执行、编辑和删除规则，以及配置记账凭证的生成方式。
{% endhint %}

## 1. 进入业务数据自动化模块

1. 在项目首页，导航到项目&#x7684;**“交易管理”**&#x9875;面。
2. &#x5728;**“交易管理”**&#x9875;面中，找到并点击&#x4FA7;**“自动化规则”**&#x9009;项。
3. 选&#x62E9;**“业务数据-记账凭证”**&#x9009;项卡。

<figure><img src="/files/dz0QKBYxE7gdT5Philyk" alt=""><figcaption></figcaption></figure>

## 2. 新增自动化记账规则

1. 点击页面右上&#x89D2;**“新增规则”**&#x6309;钮。

   <figure><img src="/files/tLlSS2Z5HagPk3gUalsm" alt=""><figcaption></figcaption></figure>
2. 输入规则名称。
3. 选择业务数据的数据类型。
4. 配置规则应用的数据范围，可以通过条件筛选出要应用该规则的业务数据。
5. 选择符合条件的业务数据要创建的记账凭证类型。
6. 填入分录所需信息的取值方法：币种、辅助核算字段等支持选择业务数据的某一列，数值类信息除了支持选择列外，还可以填入公式计算。

   <figure><img src="/files/HWQdhLuAnoidWDpf5Dqq" alt=""><figcaption></figcaption></figure>
7. 保存自动化记账规则。

## &#x20;3. 执行自动化记账规则

1. 点击页面右上&#x89D2;**“手动执行所有规则”**&#x5373;可执行全部规则。
2. 也支持在点击某个规则后&#x7684;**“执行规则”**&#x6309;钮，单独执行该条规则。

<figure><img src="/files/v0zMBCaGFW7ZdIWCmLzV" alt=""><figcaption></figcaption></figure>

## 4. 编辑自动化记账规则

1. 点击规则后的“编辑”按钮，弹出编辑规则弹窗。
2. 更改规则后，重新运行规则，将会依照新的规则生成记账凭证，替换原有记账凭证。

## 5. 删除自动化记账规则

1. 点击规则后的“删除”按钮，可以触发删除规则。
2. 删除规则并不会删除基于规则生成的记账凭证。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.elven.com/v3/chinese/bookkeeping/tong-guo-ye-wu-shu-ju-ji-zhang/ye-wu-shu-ju-tong-guo-gui-ze-zi-dong-hua-ji-zhang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
