> For the complete documentation index, see [llms.txt](https://doc.moze.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.moze.app/record/split-categories.md).

# 拆帳

拆帳讓你在單一記錄中做出更彈性的帳目配置，例如分別指定不同的帳戶、專案、類別，以下提供幾個常見場景給你參考：

### 單筆交易涵蓋多個類別 <a href="#multi-category" id="multi-category"></a>

像是去大賣場購物，你買了日常用品、衣物和啤酒，如果只用一個購物類別涵蓋，可能沒辦法清楚分配預算。這種情境就適合用拆帳：建立多個不同類別，分門別類記錄消費品項，甚至可以選擇不同專案來配合你的預算規劃。

<img src="/files/-MGvusRpdlbMCStBBxRH" alt="" width="375">

&#x20;

<img src="/files/-MGvuJuv40Juoye649y4" alt="" width="375">

### 使用其他帳戶扣點 <a href="#multi-accounts" id="multi-accounts"></a>

單筆交易可能會同時用不同帳戶支付，像是 Line Pay 信用卡搭配 Line Point 點數折抵，也可以用拆帳選擇不同帳戶來記錄。

<img src="/files/-MHyWD86pyqdMy5l-ZU0" alt="" width="375">

### 幫別人代付 <a href="#receivables" id="receivables"></a>

跟朋友吃飯結帳時，你先用信用卡幫大家付款，之後再跟大家收錢，就可以用拆帳來記錄。先記錄一筆你自己吃飯的花費，再記一筆幫朋友代刷的花費，等朋友還你錢後，再進行收款即可。

<img src="/files/-MHyWn_xwLVdd6b5cGZW" alt="" width="375">

&#x20;

<img src="/files/-MHyZCHXw9gj-hoI3RPT" alt="針對代付的對象進行收款" width="375">

### 別人幫你先出錢 <a href="#borrow" id="borrow"></a>

外出忘記帶錢、請朋友先墊錢的時候，可以先記錄一筆應付款項（借入），再加上當時的花費記錄（支出）。兩筆相加為零，代表你當下沒有支付任何款項，之後再針對這筆應付款項還款即可。

<img src="/files/-MSAp55jMtyiWE_1NS-u" alt="別人先幫你出早餐錢" width="375">

### 同步變更子類別 <a href="#sync-subcategory" id="sync-subcategory"></a>

例如發票歸帳時提供的預設類別不符合期待，可以自行更換類別，並同步更新所有子項目的類別。

<figure><img src="/files/Mv3PD0KF6ILPJURDJyc8" alt="" width="375"><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 dynamically by asking a question.

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

```
GET https://doc.moze.app/record/split-categories.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
