Skip to content

Automates daily inventory adjustment reporting using Python, SQL Server, and pandas. Extracts, filters, and exports client-specific reports from WMS data to support warehouse operations and audit accuracy.

Notifications You must be signed in to change notification settings

AgoopaGoopa/inventory-adjustment-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Inventory Adjustment Automation

Overview

This Python script automates the daily generation of inventory adjustment reports by extracting, processing, and exporting data from a SQL Server-based warehouse management system (WMS). It merges ledger activity, adjustment headers, and reason code mappings to produce clean, client-specific Excel reports ready for operational and audit use.

Key Features

  • Connects to a SQL Server WMS database using pyodbc
  • Joins data from multiple tables including adjustment headers, ledger entries, and reason codes
  • Filters out non-relevant entries (e.g., RTS returns, zero-quantity adjustments)
  • Segments final output by client code, either provided or auto-detected
  • Automatically fetches distinct client codes from the database if none are provided

Technologies Used

  • Python 3.x
  • Pandas
  • NumPy
  • PyODBC
  • OpenPyXL / XlsxWriter (via pandas.to_excel())

Setup Instructions

  1. Clone this repository:
git clone https://github.com/your-username/inventory-adjustment-automation.git
  1. Install the required dependencies:
pip install pandas numpy pyodbc openpyxl
  1. Update the database connection string and output file paths in the script to match your environment.

  2. Run the script with optional client filtering:

python inventory_adjustment_report.py

Or specify client codes manually:

python inventory_adjustment_report.py --clients GRL MRA KAV

Example Output

The script produces a separate Excel report for each client, containing validated adjustment data ready for operational and finance use.

License

This project is licensed under the MIT License.

Disclaimer

All database names, paths, and sample outputs have been anonymized to protect proprietary information. This script is intended for educational and demonstration purposes.

About

Automates daily inventory adjustment reporting using Python, SQL Server, and pandas. Extracts, filters, and exports client-specific reports from WMS data to support warehouse operations and audit accuracy.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages