📊

So sánh tồn kho (Đối soát)

So sánh 2 file Excel (Tồn kho hệ thống vs Kiểm kê thực tế) để tìm ra chênh lệch.

Excel ⭐⭐ Intermediate ⏱️ 5 phút

😫 Vấn đề (The Pain Point)

Cuối tháng kiểm kho. File A là số liệu phần mềm: “Áo thun: 50 cái”. File B là đếm tay: “Áo thun: 48 cái”. Với 1000 mã hàng, làm sao biết mã nào lệch? Lệch bao nhiêu?

🚀 Giải pháp Agentic (The Solution)

Tool “Reconcile”: Đối soát 2 danh sách dựa trên Mã Sản Phẩm (SKU) và báo cáo chênh lệch.

Tính năng:

  • Auto Join: Ghép 2 file lại dựa trên mã SKU.
  • Diff Calculation: Tính Lệch = Thực tế - Hệ thống.
  • Highlight: Tô màu đỏ những dòng có độ lệch khác 0.

Inventory Check Screenshot

🤖 Engineering Prompt (Copy & Paste)

**Role:** Python Data Analyst

**Task:** Create an "Inventory Reconciliation Tool".

**Requirements:**
1.  **Tech Stack:** Python, `tkinter`, `pandas`.
2.  **GUI:**
    *   Select File A (System Data).
    *   Select File B (Physical Count).
    *   Select "SKU Column" (Common key).
    *   Select "Quantity Column" for A and B.
    *   "Compare" button.
3.  **Logic:**
    *   Merge dataframes on unique SKU (`how='outer'` to catch items present in one list but missing in other).
    *   Calculate `Difference = Qty_B - Qty_A`.
    *   Filter rows where Difference != 0.
    *   Save report.
4.  **Deliverables:**
    *   `inventory_check.py`
    *   `run.bat`
    *   `requirements.txt`

**Context:** Warehouse managers auditing stock levels.

🧠 Giải mã Prompt

  • Outer Join: Kỹ thuật merge này đảm bảo bắt được cả những mặt hàng “Có trong sổ sách nhưng mất tích ngoài thực tế” (Missing) và ngược lại (New items).

🛠️ Hướng dẫn

  1. Copy Prompt -> Paste -> Chạy.
  2. Chọn 2 file tồn kho -> Compare.

Workflows liên quan

Khám phá danh mục khác

📬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

📖 Free eBook Guide 📦 7 Ready-to-use Scripts 🔔 Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.