> For the complete documentation index, see [llms.txt](https://tutorials.deeple.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorials.deeple.ai/store-management/product-management/stock/bulk-upload-stock.md).

# ปรับจำนวนสินค้าด้วยไฟล์

สำหรับร้านค้าที่มีสินค้าในระบบจำนวนมาก และต้องการเพิ่มหรือลดจำนวนสินค้าพร้อมกันหลายรายการ ก็สามารถอัปโหลดไฟล์เพื่อปรับสต็อกสินค้าได้ตามที่ต้องการ โดยมีขั้นตอนดังนี้

### **วิธีการเพิ่มหรือปรับจำนวนสินค้าในคลัง**

1\. คลิกเมนู “เมนูสินค้า & คลังสินค้า“

![รูปที่ 1](/files/y5lFnoPUrPXyFARl1nRj)

2\. คลิกแท็บเมนูย่อย “คลังสินค้า“&#x20;

3\. คลิกปุ่ม “นำออกคลังสินค้า”

![](/files/VKJevZhN1aRpHfDAYh1k)

4\. เลือกประเภทไฟล์ที่ต้องการดาวน์โหลดได้ 2 ประเภท คือ ไฟล์ .**CSV** (Comma-Separated Value) และ .**XLSX** (Microsoft Excel)

![](/files/hUxajWnWH4D7I37npxNl)

5\. เปิดไฟล์ที่ดาวน์โหลดมา จะมีข้อมูลสต็อกสินค้าดังนี้

![](/files/zzHcpRAYrCI0hpRQUlr0)

**คอลัมน์ A** คือ รหัสสินค้าทุกรายการในระบบ

**คอลัมน์ B** คือ จำนวนสินค้าที่มีอยู่ในคลัง ณ เวลาที่ผู้ใช้งานดาวน์โหลดข้อมูลออกมา

6\. กรอกจำนวนสินค้าในแต่ละรายการตามที่ต้องการ จากนั้นทำการบันทึกไฟล์ให้เรียบร้อย

{% hint style="warning" %}
**ข้อควรระวัง**

เนื่องจากการกรอกข้อมูลใน 1 ไฟล์ ไม่ควรเกิน 1,000 แถว

ดังนั้น หากสินค้าที่ต้องการปรับสต็อกมีจำนวนมากกว่า 1,000 SKU แนะนำให้แบ่งข้อมูลในการนำเข้าคลังสินค้าครั้งละไม่เกิน 1,000 แถวต่อไฟล์
{% endhint %}

7\. นำเข้าไฟล์สต็อกสินค้าที่บันทึกไว้ โดยคลิกปุ่ม “นำเข้าคลังสินค้า”

![](/files/Npx4xwjLZC9qabdLVPaA)

8\. ระบบจะปรากฏหน้าจอเพื่อเลือกวิธีการนำเข้าคลังสินค้า&#x20;

![](/files/xw8lPVK87Y8ZY8KyyYUI)

สามารถอธิบายรายละเอียดในหน้าวิธีการนำเข้าคลังสินค้าได้ ดังนี้

| <p>                              <strong>หัวข้อ</strong><br></p> | **รายละเอียด**                                                                                                                                                                                                                                                                                                                                                             |
| ---------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| เพิ่ม                                                            | <p>วิธี "เพิ่ม“ จำนวนสินค้าในคลังสินค้า เป็นการเพิ่มจำนวนสินค้าจากในสต็อกที่มีอยู่แล้ว</p><p></p><p><mark style="color:blue;">ตัวอย่าง</mark> เดิมมีสินค้า A อยู่ในระบบจำนวน 50 ชิ้น และทางร้านกรอกจำนวนสินค้า A ในไฟล์นำเข้าคลังสินค้าเป็นจำนวน 30 ชิ้น  </p><p>เมื่อเลือกวิธี "เพิ่ม” จำนวนสินค้า ระบบจะเพิ่มจำนวนสินค้า A เป็น 50 + 30 = 80 ชิ้น</p>                    |
| แทนที่                                                           | <p>วิธี "แทนที่“ จำนวนสินค้าในคลังสินค้า เป็นการนำเข้าคลังสินค้าเพื่อไปแทนที่จำนวนสินค้าทั้งหมดในร้าน</p><p></p><p><mark style="color:blue;">ตัวอย่าง</mark> เดิมมีสินค้า A อยู่ในระบบจำนวน 50 ชิ้น และทางร้านกรอกจำนวนสินค้า A ในไฟล์นำเข้าคลังสินค้าเป็นจำนวน 30 ชิ้น  </p><p>เมื่อเลือกวิธี "แทนที่” จำนวนสินค้า ระบบจะแทนที่จำนวนสินค้า A จาก 50 ชิ้น เป็น 30 ชิ้น</p> |

9\. เมื่อเลือกวิธีการนำเข้าคลังสินค้าเรียบร้อยแล้ว จากนั้นคลิกปุ่ม “นำเข้า“&#x20;

10\. เลือกไฟล์นำเข้าคลังสินค้า และคลิกปุ่ม “Open“&#x20;

![](/files/P621usCMoviTVC379MmV)

11\. ระบบจะนำเข้าสต็อกสินค้าด้วยไฟล์ดังกล่าวและปรับจำนวนสินค้าในระบบโดยอัตโนมัติ

![](/files/UDK3WQU9GX4jhSEYEJYf)


---

# 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://tutorials.deeple.ai/store-management/product-management/stock/bulk-upload-stock.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.
