> For the complete documentation index, see [llms.txt](https://docs.pos.pages.fm/pos/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pos.pages.fm/pos/khach-hang/chiet-khau-ma-gioi-thieu.md).

# Chiết khấu mã giới thiệu

## 1. Cấu hình Mã giới thiệu <a href="#id-1.-cau-hinh-ma-gioi-thieu" id="id-1.-cau-hinh-ma-gioi-thieu"></a>

### Bước 1: Bật cấu hình chiết khẫu mã giới thiệu <a href="#buoc-1-truy-cap-cau-hinh-greater-than-cau-hinh-chung-greater-than-chiet-khau-ma-gioi-thieu" id="buoc-1-truy-cap-cau-hinh-greater-than-cau-hinh-chung-greater-than-chiet-khau-ma-gioi-thieu"></a>

Truy cập theo đường dẫn đã được khoanh ở Cài đặt

<figure><img src="/files/qnf6G4LILiCVF8rrXlte" alt=""><figcaption><p>Bật cấu hình chiết khấu mã giới thiệu</p></figcaption></figure>

### Bước 2: Cấu hình tỷ lệ chiết khấu <a href="#buoc-2-cau-hinh-ty-le-chiet-khau" id="buoc-2-cau-hinh-ty-le-chiet-khau"></a>

<figure><img src="/files/bc9Z9ugTcVepzqb7nGto" alt=""><figcaption><p>Cấu hình tỷ lệ chiết khấu</p></figcaption></figure>

### Bước 3: Hiển thị Mã giới thiệu <a href="#buoc-3-hien-thi-ma-gioi-thieu" id="buoc-3-hien-thi-ma-gioi-thieu"></a>

#### Cấu hình hiển thị Mã giới thiệu bên ngoài bảng

<figure><img src="/files/XAs4YbZXn14P8NgLLqCz" alt=""><figcaption><p>Hiển thị  mã giới thiệu</p></figcaption></figure>

#### Mã giới thiệu trong Chi tiết khách hàng

<figure><img src="/files/bvQBkgjgjwylgB2ErBAt" alt=""><figcaption><p>Mã giới thiệu</p></figcaption></figure>

## 2. Áp mã giới thiệu cho khách hàng mới <a href="#id-2.-ap-ma-gioi-thieu-cho-khach-hang-moi" id="id-2.-ap-ma-gioi-thieu-cho-khach-hang-moi"></a>

#### Nhập thông tin đơn hàng + khách hàng + mã giới thiệu của khách hàng cũ

<figure><img src="/files/1QS2LKO6XaWFPVmPNSD1" alt=""><figcaption><p>Nhập mã giới thiệu -> hệ thống trừ chiết khấu</p></figcaption></figure>

Sau khi đơn hàng chuyển sang trạng thái **Đã nhận**, hệ thống sẽ ghi nhận tiền giới thiệu hoặc tích điểm cho **Khách hàng giới thiệu.**

<figure><img src="/files/9b4tOwU5amZJ3n0sAZgC" 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 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.pos.pages.fm/pos/khach-hang/chiet-khau-ma-gioi-thieu.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.
