Skip to content

ayinalakoteswararao/INVOICE-GENERATOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“„ Invoice Generator โ€“ Python Desktop & Web App

A dual-interface invoice generator that lets you:

  1. Create invoices from a clean Tkinter desktop GUI (invoice_generator.py).
  2. Produce the same professional PDF invoices from a Flask web app (invoice-app).

Both interfaces render the final invoice with ReportLab, embed a QR code containing GST details, and follow an Indian GST layout.


โœจ Key Features

โ€ข Add unlimited line-items with description, HSN, quantity, rate & GST%.
โ€ข Auto-calculates CGST, SGST and grand totals.
โ€ข Produces high-resolution PDF invoices on-the-fly.
โ€ข Company branding (logo, address, GSTIN) is fully configurable.
โ€ข Embeds machine-readable QR code with invoice meta.
โ€ข Works completely offline; no external services required.

๏ฟฝ Invoice Generator Pro

Python Flask MySQL License

A professional invoice generation system with both Desktop (Tkinter) and Web (Flask) interfaces, designed specifically for Indian GST compliance with QR code support.

๐ŸŒŸ Features

๐Ÿ“‹ Core Features

  • ๐Ÿ–ฅ๏ธ Dual Interface: Choose between desktop or web interface
  • ๐Ÿงพ GST Compliant: Automatically calculates CGST & SGST
  • ๐Ÿ“„ PDF Generation: Professional invoice generation with ReportLab
  • ๐Ÿ” QR Code: Embeds invoice details in QR code
  • ๐Ÿ’พ Database: MySQL integration for data persistence

๏ฟฝ๏ธ Technical Highlights

  • ๐Ÿ Built with Python 3.8+
  • ๐ŸŒ Web interface powered by Flask
  • ๐Ÿ’ฝ MySQL database for data storage
  • ๐ŸŽจ Clean, responsive UI
  • ๐Ÿ”’ Secure data handling

๏ฟฝ Project Structure

Bill-Generation-Using-Python/
โ”‚
โ”œโ”€โ”€ invoice-app/                 # Flask web application
โ”‚   โ”œโ”€โ”€ app.py                  # Main application file with routes and logic
โ”‚   โ”œโ”€โ”€ requirements.txt         # Python dependencies
โ”‚   โ”œโ”€โ”€ config.py               # Configuration settings
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ static/                 # Static files
โ”‚   โ”‚   โ”œโ”€โ”€ css/               # CSS stylesheets
โ”‚   โ”‚   โ”œโ”€โ”€ js/                # JavaScript files
โ”‚   โ”‚   โ””โ”€โ”€ images/            # Image assets
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ templates/              # HTML templates
โ”‚       โ”œโ”€โ”€ base.html          # Base template
โ”‚       โ”œโ”€โ”€ index.html         # Main page
โ”‚       โ””โ”€โ”€ partials/          # Reusable template components
โ”‚
โ”œโ”€โ”€ invoice_generator.py        # Desktop GUI application
โ”œโ”€โ”€ requirements.txt            # Main project dependencies
โ””โ”€โ”€ README.md                  # Project documentation

๏ฟฝ๐Ÿš€ Quick Start

Prerequisites

  • Python 3.8 or higher
  • MySQL Server 8.0+
  • pip (Python package manager)

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/invoice-generator.git
    cd invoice-generator
  2. Set up a virtual environment

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Configure the database

    • Create a MySQL database
    • Update the database configuration in config.py
    • Initialize the database:
      flask init-db
  5. Run the application

    • For web interface:
      cd invoice-app
      flask run
    • For desktop interface:
      python invoice_generator.py

๐Ÿ–ฅ๏ธ Web Interface

Access the web interface at http://localhost:5000

Features

  • ๐Ÿ“ฑ Responsive design
  • ๐Ÿ”„ Real-time calculations
  • ๐Ÿ’พ Auto-save functionality
  • ๐Ÿ“ค PDF download

๐Ÿ–ฅ๏ธ Desktop Interface

Run invoice_generator.py to launch the desktop application.

Features

  • ๐Ÿ–ฑ๏ธ Native look and feel
  • โšก Fast performance
  • ๐Ÿ’พ Local data storage
  • ๐Ÿ–จ๏ธ Direct printing support

๐Ÿ› ๏ธ Configuration

Edit config.py to customize:

  • Company details
  • GST rates
  • Database connection
  • Application settings

๐Ÿ“ฆ Deployment

PythonAnywhere

  1. Upload your code to PythonAnywhere
  2. Set up a new web app
  3. Configure the database
  4. Set environment variables
  5. Install dependencies
  6. Initialize the database

๏ฟฝ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿค Contributing

Contributions are welcome! Please read our contributing guidelines to get started.

๐Ÿ“ž Support

For support, email ayinalakoteswararao@gmail.com or open an issue in the GitHub repository.


Made with โค๏ธ by Ayinala-KoteswaraRao

About

๐Ÿ’ผ Invoice Generator Pro โ€“ GST Billing Made Easy A powerful invoice management system for ๐Ÿ‡ฎ๐Ÿ‡ณ Indian businesses with both ๐Ÿ–ฅ๏ธ Desktop (Tkinter) and ๐ŸŒ Web (Flask) versions. โœ”๏ธ Generate professional GST-compliant invoices ๐Ÿ’ฐ Auto-calculates CGST/SGST ๐Ÿ“„ Download branded PDF invoices ๐Ÿ“ท Embedded QR codes for easy access ๐Ÿ› ๏ธ Built with Python, Flask

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors