> For the complete documentation index, see [llms.txt](https://lenef.gitbook.io/erpfactory/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lenef.gitbook.io/erpfactory/quan-ly-san-xuat/lenh-san-xuat.md).

# Lệnh sản xuất

Để tạo một lệnh sản xuất bạn thực hiện các thao tác sau:  &#x20;

* **B1:** Người dùng truy cập vào danh mục Sản xuất >> Hoạt động >> Lệnh sản xuất để hiển thị các lệnh sản xuất đang có trên hệ thống. Các lệnh này sẽ được mặc định lọc theo những lệnh mà cần thực hiện (các lệnh có trạng thái không phải *Hoàn thành* và *Đã hủy*).&#x20;

<figure><img src="/files/509egm3KCM2Fc2rrMCcb" alt=""><figcaption></figcaption></figure>

* **B2:** Kích nút **MỚI** để mở màn hình tạo lệnh sản xuất.

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

* **B3:** Nhập các thông tin:

  * Sản phẩm cần sản xuất. Sau khi nhập thông tin này, hệ thống sẽ tự động lấy ra các thông tin định mức nguyên vật liệu, các thành phần trong định mức và quy trình sản xuất tương ứng.

  <figure><img src="/files/3BF2J4yc6r89wFSLrN6N" alt=""><figcaption></figcaption></figure>

  * Số lượng cần sản xuất.
  * Ngày theo Kế hoạch từ (ngày nào?).
  * Ngày sản xuất
  * Ngày đến hạn
  * Người phụ trách.
  * Thông tin khác liên quan đến kho: kiểu hoạt động, vị trí lấy các thành phần hay địa điểm lưu trữ thành phẩm.
* **B4:** Nhập lệnh làm việc. Phần mềm cho phép tạo nhanh các lệnh làm việc trong 1 lệnh sản xuất. Người dùng chọn **Thêm một dòng** để nhập thông tin cho lệnh làm việc&#x20;

<figure><img src="/files/94e9C6P1XACA9cgtJHNy" alt=""><figcaption></figcaption></figure>

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

* **B4:** Kích LƯU để lưu thông tin của lệnh sản xuất vừa tạo. Hoặc kích XÁC NHẬN SẢN XUẤT để xác nhận lệnh.
* **B5:** Xem thông tin chi tiết 1 lệnh làm việc bằng cách chọn vào 1 lệnh làm việc trong danh sách

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

* **B6:** Sau khi xác nhận thì phần mềm sẽ tạo đường dẫn phiếu kiểm tra chất lượng tương ứng. Để tạo phiếu kiểm tra, thực hiện chọn **Kiểm tra chất lượng**

<figure><img src="/files/MrsYwSgFjeMPkp8KM1mc" 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://lenef.gitbook.io/erpfactory/quan-ly-san-xuat/lenh-san-xuat.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.
