> For the complete documentation index, see [llms.txt](https://hotro-ketoanbachkhoa.pmbk.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hotro-ketoanbachkhoa.pmbk.vn/huong-dan-s-dung/3.-nghiep-vu/3.3-ban-hang/3.3.8-doi-tru-chung-tu.md).

# 3.3.9 Đổi trừ chứng từ

## 3.3.9.**1 Nội dung**

Thực hiện đối trừ giữa chứng từ công nợ với chứng từ thanh toán của từng khách hàng, nhằm mục đích theo dõi công nợ phải trả chi tiết theo từng chứng từ bán hàng của từng khách hàng cụ thể.&#x20;

## 3.3.9.2 **Các trường hợp nghiệp vụ**

1\. Vào phân hệ **Bán hàng**, chọn **Đối trừ chứng từ** \
2\. Lựa chọn khách hàng, tài khoản phải thu và loại tiền.\
3\. Nhấn **Lấy dữ liệu**. => Chương trình sẽ tự động liệt kê các chứng từ thanh toán và chứng từ công nợ thoả mãn điều kiện đã chọn.

4.Tích chọn các chứng từ thanh toán được đối trừ cho các chứng từ công nợ.

![](/files/-MXuofM0RptsxJOg2uYP)

{% hint style="info" %}
&#x20;***Lưu ý:** Có thể nhập lại số tiền được đối trừ của chứng từ thanh toán và chứng từ công nợ tại cột **Số tiền đối trừ**.*
{% endhint %}

&#x20;5\. Nhấn **Thực hiện**, sau đó nhấn **Kết thúc.**

{% hint style="info" %}
&#x20;***Lưu ý:** Khi thực hiện đối trừ công nợ cho loại tiền ngoại tệ, nếu có phát sinh chênh lệch tỷ giá giữa chứng từ thanh toán và chứng từ công nợ, sau khi nhấn chọn **Thực hiện** chương trình sẽ tự động sinh ra **chứng từ xử lý chênh lệch tỷ giá**.*
{% endhint %}


---

# 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://hotro-ketoanbachkhoa.pmbk.vn/huong-dan-s-dung/3.-nghiep-vu/3.3-ban-hang/3.3.8-doi-tru-chung-tu.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.
