> ## 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/zh-Hant/invoices-and-numbering/document-numbering.md) |
| **鎖定發票** | 依照歐盟稅務規定，讓每張已開立的發票和折讓單完全保持寄出時的樣子。 | [鎖定發票](https://foliant-help.iforiti.com/zh-Hant/invoices-and-numbering/locked-invoices.md) |
| **範本發布** | 決定範本變更是否在您儲存後立即生效。 | 見下方 |
| **列印** | 您列印或匯出多筆訂單時文件的輸出順序、分組方式，以及揀貨單的 **儲位**。 | [列印順序與分組](https://foliant-help.iforiti.com/zh-Hant/settings/print-order-and-grouping.md) |
| **已列印的訂單** | 在 Shopify 中為已列印的訂單加上標籤，並設定匯出是否算作已列印。 | [已列印的訂單](https://foliant-help.iforiti.com/zh-Hant/settings/printed-orders.md) |

## 單據編號與鎖定發票

這兩項設定會搭配運作：

* 開啟 **單據編號** 後，文件會在第一次下載、列印或匯出時取得編號，並保留該編號。下一個編號只能往前增加。儲存編號變更前，Foliant 會顯示 **要儲存編號設定嗎？** 以及接下來的編號，您可以點選 **儲存編號設定** 確認。
* **鎖定發票** 需要開啟發票或折讓單編號。如果兩者都未開啟時您開啟鎖定，Foliant 會提示 **鎖定需要開啟發票或折讓單編號。未開啟時，不會鎖定任何內容。** 點選 **開啟發票編號** 即可解決。

詳細說明請參閱 [單據編號](https://foliant-help.iforiti.com/zh-Hant/invoices-and-numbering/document-numbering.md) 與 [鎖定發票](https://foliant-help.iforiti.com/zh-Hant/invoices-and-numbering/locked-invoices.md)。

## 範本發布

根據預設，您在編輯器中儲存範本後，變更會立即生效。如果您想先檢查變更，請開啟 **需要發布**。

開啟 **需要發布** 後，範本程式碼、浮水印或紙張大小的已儲存變更會保持為草稿，直到您從編輯器發布為止。在那之前，您的顧客、匯出和列印都會繼續使用已發布的版本。

開啟方式：

1. 開啟 **設定 › 文件與列印**。
2. 在 **範本發布** 下方，開啟 **需要發布**。
3. 在儲存列中點選 **儲存**。

其他範本設定（例如名稱）的變更，仍會在您儲存時套用。請參閱 [發布範本變更](https://foliant-help.iforiti.com/zh-Hant/templates/require-publishing.md)。

## 注意事項

* 如果某個值無效，例如標籤中含有逗號，**儲存** 按鈕會保持停用，直到您修正為止。
* 如果您變更了編號，但 Foliant 無法儲存其中一部分，您會看到 **部分編號變更未儲存**。您的其他變更仍會儲存，有問題的欄位會顯示需要修正的地方。

## 相關文章

* [單據編號](https://foliant-help.iforiti.com/zh-Hant/invoices-and-numbering/document-numbering.md)
* [鎖定發票](https://foliant-help.iforiti.com/zh-Hant/invoices-and-numbering/locked-invoices.md)
* [列印順序與分組](https://foliant-help.iforiti.com/zh-Hant/settings/print-order-and-grouping.md)
* [已列印的訂單](https://foliant-help.iforiti.com/zh-Hant/settings/printed-orders.md)


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