# 4.2 Xử lý đơn hàng

### Giới thiệu

Thuộc tính quan trọng nhất của đơn hàng sau khi bạn tạo đơn hàng là **trạng thái đơn hàng**. Một đơn hàng từ lúc mới tạo đến lúc hoàn thành sẽ đi qua các trạng thái riêng của nó. Khi đơn hàng của bạn bắt đầu chuyển qua trạng thái *Đang vận chuyển* thì ứng dụng bắt đầu trừ số lượng sản phẩm của đơn hàng đó trong kho.

Vì để quản lý kho và để tính lời lãi, người dùng chỉ có thể sửa được đơn hàng ở trang thái *Mới tạo.* Khi đơn hàng chuyển qua trạng thái tiếp theo bạn sẽ không thể sửa nội dung đơn hàng.

[4.2.1 Hoàn thành đơn hàng ](https://docs.puzi.vn/puzi-sale-phan-mem-quan-ly-ban-hang/4.-quan-ly-don-hang/4.2-xu-ly-don-hang/4.2.1-hoan-thanh-don-hang)

[4.2.2 Thao tác trả lại hàng](https://docs.puzi.vn/puzi-sale-phan-mem-quan-ly-ban-hang/4.-quan-ly-don-hang/4.2-xu-ly-don-hang/4.2.2-thao-tac-tra-lai-hang)&#x20;

[4.2.3 Huỷ đơn hàng](https://docs.puzi.vn/puzi-sale-phan-mem-quan-ly-ban-hang/4.-quan-ly-don-hang/4.2-xu-ly-don-hang/4.2.3-huy-don-hang)&#x20;

[4.2.4 Sửa đơn hàng](https://docs.puzi.vn/puzi-sale-phan-mem-quan-ly-ban-hang/4.-quan-ly-don-hang/4.2-xu-ly-don-hang/4.2.4-sua-don-hang)

**==================================**

**Liên hệ hỗ trợ:**

* FanPage: [Puzi Community](https://www.facebook.com/puzi.vn)
* Hotline: 0931.531.333
* Website: [Puzi.vn](https://puzi.vn/)


---

# Agent Instructions: 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:

```
GET https://docs.puzi.vn/chuc-nang/puzi-sale-phan-mem-quan-ly-ban-hang/4.-quan-ly-don-hang/4.2-xu-ly-don-hang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
