> For the complete documentation index, see [llms.txt](https://docs.salework.net/salework-tai-lieu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.salework.net/salework-tai-lieu/salework-payment/giao-dich/tu-dong-gach-no.md).

# Tự động gạch nợ

Đối với giao dịch khoản thu đã nhận được tiền về tài khoản ngân hàng, hệ thống sẽ tự động gạch nợ và chuyển trạng thái khoản thu sang **Đã thanh toán**

<figure><img src="/files/WfwWlgM9sx69PLEvDtDX" alt=""><figcaption></figcaption></figure>

Đối với các giao dịch khoản thu chưa nhận được tiền, trạng thái khoản thu sẽ hiển thị là **Chưa thanh toán.** Với các khoản thu chưa được thanh toán, bạn bấm chọn vào mục **Tạo QR** để lấy mã thanh toán để gửi cho khách hàng. Khi đó, hệ thống sẽ tạo ra mã Qr thanh toán cho khoản thu như sau:

<figure><img src="/files/Rzw9Hn5ZYEEZzbgRhUTS" alt=""><figcaption></figcaption></figure>

Sau khi khách hàng thanh toán thành công và  hệ thống nhận được tiền về tài khoản sẽ tự động chuyển trạng thái khoản thu sang **Đã thanh toán.**

Nếu bạn tạo sai thông tin khoản thu hoặc muốn hủy bỏ thông tin khoản thu đã tạo, bạn bấm chọn vào nút **Hủy**. Khi đó khoản thu sẽ được chuyển sang trạng thái **Đã hủy** trên hệ thống

<figure><img src="/files/GxgWtfaIxEgW7O88lznk" alt=""><figcaption></figcaption></figure>

**Lưu ý:**

* Khách hàng quét Mã QR đã tạo bởi Salework Banking bằng tính năng quét mã QR của tài khoản ngân hàng để thanh toán.
* Sau khi quét mã QR, màn hình thanh toán bên người mua sẽ tự động hiển thị thông tin tài khoản ngân hàng của bạn, số tiền cần thanh toán và mã hóa đơn cho giao dịch đã tạo. Lúc này người mua chỉ cần tiến hành các bước thanh toán tiếp theo để hoàn tất giao dịch.&#x20;
* Trường hợp người mua sửa lại số tiền cần thanh toán thì số tiền nhận về tài khoản sẽ không khớp với số tiền đã tạo trong khoản thu, khi đó hóa đơn sẽ ko được gạch nợ tự động.&#x20;
* Chỉ người tạo ra khoản thu thì mới được phép hủy khoản thu đã tạo.&#x20;


---

# 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://docs.salework.net/salework-tai-lieu/salework-payment/giao-dich/tu-dong-gach-no.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.
