Skip to content

This is a Python-based desktop application designed to generate sales summary reports for multiple sites by connecting to a SQL Server database. The app uses Tkinter for the GUI, supports parallel processing for faster report generation, and allows exporting reports as .zip files containing individual .txt files for each site.

Notifications You must be signed in to change notification settings

akash247777/Sales-Report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Sales Summary Report Generator πŸ“Š

This is a Python-based desktop application designed to generate sales summary reports for multiple sites by connecting to a SQL Server database. The app uses Tkinter for the GUI, supports parallel processing for faster report generation, and allows exporting reports as .zip files containing individual .txt files for each site.


Features ✨

  • Database Connectivity: Connects to SQL Server databases using customizable IP addresses or server series (10.16.x.x or 10.28.x.x). πŸ”—
  • Multi-Site Support: Generate reports for multiple sites via manual input or bulk upload (Excel, CSV, or text files). πŸ“‚
  • Customizable Date Range: Select a date range for generating sales transaction summaries. πŸ“…
  • Parallel Processing: Processes multiple sites in parallel for faster report generation. ⚑
  • Export Reports: Automatically saves reports as .zip files containing .txt files for each site. πŸ“₯
  • Live Logs: Real-time logging of application activity for better transparency. πŸ“
  • Error Handling: Gracefully handles connection errors and invalid inputs with clear error messages. βŒβž‘οΈβœ…

D πŸ’‘ E πŸš€ M 🎯 O πŸ”

Apollo.Sales.Report.mp4

Prerequisites βš™οΈ

Before running the application, ensure you have the following installed:

  • Python 3.7+ 🐍
  • Required Python packages:
    • tkinter
    • tkcalendar
    • pyodbc
    • pandas
    • openpyxl (for Excel file support)
    • concurrent.futures (built-in)
  • ODBC Driver 17 for SQL Server πŸ–₯️
  • Access to the SQL Server database with valid credentials πŸ”‘

Install dependencies using the following command:

pip install pyodbc pandas openpyxl tkcalendar

Installation πŸ’»

  1. Clone the repository to your local machine:
git clone https://github.com/akashsg247777/Apollo-Sqles-Report.git
  1. Navigate to the project directory:
cd sales-summary-report-generator
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the application:
python main.py

Usage πŸš€

Step-by-Step Guide:

  1. Launch the Application : Run the script, and the GUI will appear. πŸ–₯️
  2. Enter Database Credentials :
    • Provide the username, password, and database name. πŸ› οΈ
    • Optionally, enter a custom IP address for manual overrides. 🌐
  3. Select Site IDs :
    • Manually input a single site ID or upload a file containing multiple site IDs. πŸ“‹
  4. Set Date Range :
    • Use the calendar widget to select the "From Date" and "To Date". πŸ“… 5 Generate Reports :
    • Click the "Generate Report" button to start processing. βš™οΈ
    • Monitor the live log for progress updates. πŸ“Š
  5. Download Reports :
    • Once completed, click the "Download Report" button to save the .zip file. πŸ“₯

Feel free to reach out if you have any questions or suggestions!

πŸ“§akashsg247@gmail.com

πŸ“ž+91 8618041675

About

This is a Python-based desktop application designed to generate sales summary reports for multiple sites by connecting to a SQL Server database. The app uses Tkinter for the GUI, supports parallel processing for faster report generation, and allows exporting reports as .zip files containing individual .txt files for each site.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published