> ## 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.

# 什麼是模板

> 模板會將您的訂單轉換成發票、出貨單和揀貨單等單據，用於列印、匯出和 PDF 傳送。

# 什麼是模板

![模板頁面](https://mintcdn.com/foliant-dev/nnNby4-r9e5xN6eK/templates/images/templates-page.png?fit=max\&auto=format\&n=nnNby4-r9e5xN6eK\&q=85\&s=7645362eb51040344234c97e98fb356a)

模板是 Foliant 將訂單轉換成單據時使用的版面：收據或發票、出貨單、退貨表單、報價單、折讓單、揀貨單等等。Foliant 產生的每份單據都來自模板。您從訂單頁面列印、匯出 PDF，或顧客透過 PDF 傳送下載 PDF 時，使用的都是同一個模板。

您可以在 Foliant 的 **模板** 頁面管理您的模板。

## 預設提供的模板

選擇方案後，您會取得一組以您商店語言製作的現成模板：

| 模板 | 用途 | 預先選取於 |
| - | - | - |
| **收據 / 發票** | 逐項列出的發票，含稅金、付款和總計 | 訂單和 POS 訂單 |
| **出貨單** | 要包裝的品項和數量，不含價格 | — |
| **退貨表單** | 讓顧客標示要退貨的品項和原因 | — |
| **草稿訂單報價單** | 顧客付款前可查看的報價單 | 草稿訂單 |
| **退款 / 貸項通知單** | 針對原始訂單記錄退款 | — |
| **揀貨單** | 加總所選訂單的所有品項，讓您在倉庫走一趟就能揀完 | 訂單清單的 **揀貨單** 按鈕 |

您可以重新命名、編輯、重新排序或刪除其中任何一個，也可以在方案允許的範圍內新增您自己的模板。

## 兩種模板

每個模板會以兩種方式之一產生單據。您可以在模板設定的 **產生方式** 中選擇。

* **每筆訂單一份單據**：發票、出貨單和退貨表單。每筆選取的訂單都會有自己的單據。
* **所有選取的訂單共用一份單據**：清單、報表和揀貨單。一份單據會列出您選取的所有訂單。能否使用此功能取決於您的方案。請參閱[訂單摘要和揀貨單](https://foliant-help.iforiti.com/zh-Hant/templates/batch-templates-and-pick-lists.md)。

## 單據類型

模板的 **單據類型** 會告訴 Foliant 這是哪種單據：

* 在 **設定 › 文件與列印** 中開啟單據編號後，**發票**、**折讓單** 和 **報價單** 會取得連續編號。
* **其他（不編號）** 用於其他所有單據，例如出貨單、退貨表單和揀貨單。

詳情請參閱[模板設定](https://foliant-help.iforiti.com/zh-Hant/templates/template-settings.md)。

## 模板的外觀

您可以在模板編輯器中變更模板的外觀。依您的方案和模板的建立方式，您可以：

* 使用 **視覺化** 編輯器，排列現成區塊並設定樣式，不需要寫代碼，
* 使用 **代碼**，以 HTML、CSS 和 Liquid 編輯，
* 或者，若模板是從設計建立的，則在設計編輯器中編輯。

編輯器的說明請參閱[模板編輯器](https://foliant-help.iforiti.com/zh-Hant/template-editor.md)。設計的說明請參閱[設計](https://foliant-help.iforiti.com/zh-Hant/designs.md)。

## 模板的使用位置

* **列印**：在訂單頁面上，系統會自動勾選您預先選取的模板。請參閱[選擇模板的預先選取位置](https://foliant-help.iforiti.com/zh-Hant/templates/pre-select-templates.md)。
* **匯出**：PDF 匯出是由您的模板產生的。請參閱[匯出](https://foliant-help.iforiti.com/zh-Hant/exports.md)。
* **傳送**：顧客可以從訂單頁面和電子郵件下載模板的 PDF。請參閱 [PDF 傳送](https://foliant-help.iforiti.com/zh-Hant/pdf-delivery.md)。

您也可以針對某些訂單**改用**另一個模板，例如為批發顧客使用另一份發票。請參閱[僅對部分訂單使用模板](https://foliant-help.iforiti.com/zh-Hant/templates/who-gets-this-template.md)。

## 相關文章

* [模板頁面](https://foliant-help.iforiti.com/zh-Hant/templates/templates-page.md)
* [建立模板](https://foliant-help.iforiti.com/zh-Hant/templates/create-a-template.md)
* [模板設定](https://foliant-help.iforiti.com/zh-Hant/templates/template-settings.md)
* [開啟模板編輯器](https://foliant-help.iforiti.com/zh-Hant/template-editor/editor-overview.md)


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