> ## Documentation Index
> Fetch the complete documentation index at: https://foliant-help.iforiti.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 文档与打印设置

> 概览 设置 › 文档与打印，包括编号、锁定发票、模板发布、打印顺序和已打印的订单。

**设置 › 文档与打印** 包含决定您的文档如何编号、保存和打印的设置。这些设置适用于您的整个商店。页面上的所有内容通过同一个保存栏一起保存，保存完成后您会看到 **设置已保存**。

![文档与打印设置](https://mintcdn.com/foliant-dev/AoWxppgqeHqT1nDZ/invoices-and-numbering/images/document-numbering.png?fit=max\&auto=format\&n=AoWxppgqeHqT1nDZ\&q=85\&s=3c03cf7defc767306c2467bd787f248e)

## 页面内容

| 部分 | 作用 | 了解更多 |
| - | - | - |
| **单据编号** | 为发票、贷项通知单和报价单分配连续编号，并可使用您自己的前缀和后缀。 | [单据编号](https://foliant-help.iforiti.com/cn/invoices-and-numbering/document-numbering.md) |
| **锁定发票** | 按照欧盟税务规定，让每张已开具的发票和贷项通知单保持发出时的原样。 | [锁定发票](https://foliant-help.iforiti.com/cn/invoices-and-numbering/locked-invoices.md) |
| **模板发布** | 决定模板更改是否在您保存后立即生效。 | 见下文 |
| **打印** | 您打印或导出多个订单时文档的输出顺序、分组方式，以及拣货单的 **库位**。 | [打印顺序和分组](https://foliant-help.iforiti.com/cn/settings/print-order-and-grouping.md) |
| **已打印的订单** | 在 Shopify 中为已打印的订单添加标签，并设置导出是否算作已打印。 | [已打印的订单](https://foliant-help.iforiti.com/cn/settings/printed-orders.md) |

## 单据编号和锁定发票

这两项设置相互配合：

* 开启 **单据编号** 后，文档会在首次下载、打印或导出时获得编号，并一直保留该编号。下一个编号只能往前推进。保存编号更改前，Foliant 会显示 **保存编号设置？** 并列出下一个编号，您需要点击 **保存编号设置** 进行确认。
* **锁定发票** 需要开启发票或贷项通知单编号。如果您在两者都关闭的情况下开启锁定，Foliant 会提示 **锁定需要开启发票或贷项通知单编号。未开启时，不会锁定任何内容。** 选择 **开启发票编号** 即可解决。

详细信息请参阅 [单据编号](https://foliant-help.iforiti.com/cn/invoices-and-numbering/document-numbering.md) 和 [锁定发票](https://foliant-help.iforiti.com/cn/invoices-and-numbering/locked-invoices.md)。

## 模板发布

默认情况下，您在编辑器中保存模板后，更改会立即生效。如果您希望先检查更改，请开启 **需要发布**。

开启 **需要发布** 后，对模板代码、水印或纸张尺寸保存的更改会一直作为草稿，直到您在编辑器中发布。在此之前，您的客户、导出和打印会继续使用已发布的版本。

开启方法：

1. 打开 **设置 › 文档与打印**。
2. 在 **模板发布** 下，开启 **需要发布**。
3. 在保存栏中选择 **保存**。

对模板其他设置（例如名称）的更改仍会在您保存时生效。请参阅 [发布模板更改](https://foliant-help.iforiti.com/cn/templates/require-publishing.md)。

## 注意事项

* 如果某个值无效，例如标签中含有逗号，**保存** 按钮会保持禁用状态，直到您修正为止。
* 如果您更改了编号，而 Foliant 无法保存其中一部分，您会看到 **部分编号更改未保存**。您的其他更改仍会保存，有问题的字段会提示您需要修正的内容。

## 相关文章

* [单据编号](https://foliant-help.iforiti.com/cn/invoices-and-numbering/document-numbering.md)
* [锁定发票](https://foliant-help.iforiti.com/cn/invoices-and-numbering/locked-invoices.md)
* [打印顺序和分组](https://foliant-help.iforiti.com/cn/settings/print-order-and-grouping.md)
* [已打印的订单](https://foliant-help.iforiti.com/cn/settings/printed-orders.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.