# Lịch sử thay đổi tồn

## 1. Theo hàng hoá&#x20;

Được xác định trong khoảng thời gian cụ thể

<figure><img src="/files/8zyweaebNRXtF1o7UA20" alt=""><figcaption></figcaption></figure>

* **Số lượng tồn kho/tạm ứng đầu kỳ:** tính tại thời điểm trước khi phát sinh tồn đầu tiên trong khoảng thời gian đó
* **Số lượng tồn kho/tạm ứng cuối kỳ:** tính tại thời điểm sau khi phát sinh tồn cuối trong khoảng thời gian đó
* **Lượng hàng hoá xuất/nhập kho:** tổng phát sinh xuất/ nhập kho trong khoảng thời gian đó

## 2. Theo hoạt động&#x20;

Xác định số lượng Tồn thực tế/Tạm giữ/Đang vận chuyển thay đổi theo từng nguồn phát sinh và các thông tin liên quan đến nguồn phát sinh đó.

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

### Các nguồn phát sinh&#x20;

* **Bán hàng**: phát sinh từ các đơn hàng
* **Xuất/nhập kho**: phát sinh từ các phiếu xuất/ nhập kho đã hoàn tất&#x20;
* **Kiểm kho**: phát sinh từ phiếu kiểm kho đã hoàn tất
* **Sản phẩm - Tồn đầu**: phát sinh từ set tồn đầu cho sản phẩm kho&#x20;


---

# 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://upbase.gitbook.io/ups/tinh-nang-san-pham/quan-tri/lich-su-thay-doi-ton.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.
