> For the complete documentation index, see [llms.txt](https://docs.coreway.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coreway.com/coreway-hr/zh-hk/salary-management/payroll-template.md).

# 工資單模板

支援自定義模板，企業可自由組合系統內建的「員工基礎變量」（如姓名、部門、工號）與「薪資項目變量」（如基本工資、績效獎金等），快速生成專屬工資單格式。發送電子工資單直接選用已設定好的任一模板，無需重複編輯，大幅提升作業效率。

#### 1. 新增工資單模板 <a href="#id-1-add-payslip-template" id="id-1-add-payslip-template"></a>

新增工資單模板-下載系統提供的模板文件

<figure><img src="https://1973974622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZneYuSUsErYNDcsI8Fx%2Fuploads%2FD0ppsMLG4qiimOaVIGZM%2Fimage.png?alt=media&amp;token=5bd7c80f-04aa-4ed8-8a2e-492ae2719d08" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1973974622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZneYuSUsErYNDcsI8Fx%2Fuploads%2FOzf3HTnRFGPfbHaY1v9P%2Fimage.png?alt=media&amp;token=42bb42c1-4913-432a-b953-c81bdd19d89d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1973974622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZneYuSUsErYNDcsI8Fx%2Fuploads%2Fl5P8vBfS2iIUDSvQ2KH1%2Fimage.png?alt=media&amp;token=ea45c31e-861d-4a3e-bfe7-6fb40790a651" alt=""><figcaption></figcaption></figure>

#### 2. 修改模板文件並保存 <a href="#id-2-modify-and-save-template-file" id="id-2-modify-and-save-template-file"></a>

查看和導出系統提供的變量和常量，打開模板文件，修改其中定義的常量和變量

<figure><img src="https://1973974622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZneYuSUsErYNDcsI8Fx%2Fuploads%2FVnRm5xaQGODaNNx1kG5P%2Fimage.png?alt=media&amp;token=0aa6b62a-b76e-497d-afe8-8fbd47700b33" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1973974622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZneYuSUsErYNDcsI8Fx%2Fuploads%2FIfRySfCoOw37L1Rxr4ce%2Fimage.png?alt=media&amp;token=31eb4646-65b4-464d-8305-045e3c622d5c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1973974622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZneYuSUsErYNDcsI8Fx%2Fuploads%2FlXxISJ1vc1heaKWnoIau%2Fimage.png?alt=media&amp;token=99192478-f449-4510-82b6-6a4b9e92a51e" alt=""><figcaption></figcaption></figure>

#### 3. 新增工資單并選擇電子工資單模版 <a href="#id-3-create-payslip-and-select-electronic-payslip-template" id="id-3-create-payslip-and-select-electronic-payslip-template"></a>

新增工資單-選擇自定義的電子工資單下載模版，確認發送並下載PDF

<figure><img src="https://1973974622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZneYuSUsErYNDcsI8Fx%2Fuploads%2FqVvqAtFuah31U9IXUoDv%2Fimage.png?alt=media&amp;token=892ee36e-c298-40a0-9681-38a86a997b2a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1973974622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZneYuSUsErYNDcsI8Fx%2Fuploads%2FvYXjjI2GKQcgIr6d8Pt6%2Fimage.png?alt=media&amp;token=513799fa-f5a5-4d46-9681-3d107b8d9e0a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1973974622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZneYuSUsErYNDcsI8Fx%2Fuploads%2F0lRsfMvKUQGwoTrbTP4H%2Fimage.png?alt=media&amp;token=5ddb86d9-406f-48af-8934-375fc582d621" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coreway.com/coreway-hr/zh-hk/salary-management/payroll-template.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
