Skip to content

ajeetkumarrauniyar/Invoice-Generator-with-React-and-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

40 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

InvoiceFlow Pro (formerly Invoice Generator) ๐ŸŒŸ

A comprehensive invoicing and payment scheduling system designed to automate invoice generation and manage daily payment limits efficiently. Built for small businesses and wholesale traders. ๐Ÿ’ผ

๐Ÿ”— Live Link: InvoiceFlow Pro ๐Ÿš€
๐Ÿ“‚ Repo Link: GitHub Repository ๐Ÿ“


๐Ÿš€ Key Features

๐ŸŽฏ Core Functionality

  • Dual Mode Operation:
    • ๐Ÿ“‹ Invoice Generation: Create purchase/sales invoices with customizable rates, margins, and party data.
    • ๐Ÿ’ธ Payment Scheduling: Process payments with โ‚น20,000 daily limits, splitting large invoices across days.

๐Ÿ”ง Technical Excellence

  • ๐Ÿงฎ Optimized Calculations:

    • Prevents floating-point inaccuracies in tax/margin calculations
    • Ensures 100% accurate invoice amounts
    • Generate multiple invoices simultaneously with customizable parameters.
    • ๐Ÿ”ข Structured invoice numbering (e.g., UNR-001, APR-042)
  • ๐Ÿ”„ Flexible Data Input

    • Supports predefined party data from a CSV file or auto-generates parties dynamically.
    • Eliminates the need for manually preparing party data.
  • ๐Ÿ—ƒ๏ธ Smart Data Handling:

    • ๐Ÿ‘จ๐ŸŒพ Auto-generate realistic party names (farmers/businesses)
    • ๐Ÿ“ค Import CSV data or generate parties dynamically
    • ๐Ÿ“… Month-based sorting (April-March financial year format)

โœจ User Experience

  • ๐Ÿ–ฅ๏ธ Modern UI:

    • Responsive React interface with ShadCN components
    • ๐Ÿ›ก๏ธ Real-time form validation & toast notifications
    • ๐Ÿ“ฑ Cross-device compatibility (mobile/desktop)
  • ๐Ÿ”’ Enterprise-Grade Security:

    • โœ… Zod schema validation
    • ๐Ÿงผ Input sanitization
    • ๐Ÿšจ Error tracking with detailed logging

๐Ÿ“Š Output Management

  • ๐Ÿ“ฅ CSV Export:
    • Download organized payment schedules
    • ๐Ÿ“‚ Standardized financial records
    • ๐Ÿšซ Prevents empty/invalid CSV exports
    • Easy integration with external systems, ERPs or record-keeping.

๐Ÿ› ๏ธ Tech Stack

  • โš›๏ธ Frontend: Next.js, React, Tailwind CSS
  • ๐Ÿ Backend: Python (Pandas), FastAPI
  • โœ… Validation: Zod, React Hook Form
  • ๐ŸŽจ UI Components: ShadCN

๐Ÿ Getting Started

๐Ÿ“‹ Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js v18+ ๐ŸŸข
  • Python 3.8+ ๐Ÿ
  • npm/yarn ๐Ÿ“ฆ
  • pip ๐Ÿงช

โš™๏ธ Installation

  1. Clone the repository
  2. Install frontend dependencies
  3. Set up Python virtual environment and install dependencies
git clone https://github.com/ajeetkumarrauniyar/Invoice-Generator-with-React-and-Python
cd Invoice-Generator-with-React-and-Python
npm install
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt

๐Ÿง‘๐Ÿ’ป Usage Guide

๐Ÿ“ค Generate Invoices (/generate-invoices)

  1. ๐ŸŽ›๏ธ Select invoice type (Purchase/Sales)
  2. ๐Ÿ“… Set date range & financial parameters
  3. ๐Ÿ“ฅ Upload CSV or auto-generate parties
  4. โฌ‡๏ธ Download formatted CSV

๐Ÿ’ธ Process Payments (Homepage)

  1. ๐Ÿ“ค Upload CSV with columns:
  • Date, Bill, Party Name, Amount
  1. โฌ‡๏ธ Download payments.csv with daily payment splits

๐Ÿ—๏ธ Project Structure

๐Ÿ“ invoiceflow-pro/
โ”œโ”€โ”€ ๐Ÿ“‚ app/                  
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ api/              # Next.js API routes
โ”‚   โ””โ”€โ”€ ๐Ÿ“„ page.js           # Main UI
โ”œโ”€โ”€ ๐Ÿ“‚ components/           
โ”‚   โ””โ”€โ”€ ๐Ÿ“„ InvoiceForm.js    # Core form logic
โ”œโ”€โ”€ ๐Ÿ“‚ scripts/              
โ”‚   โ”œโ”€โ”€ ๐Ÿ generate_invoices.py  # Invoice logic
โ”‚   โ””โ”€โ”€ ๐Ÿ process_payments.py   # Payment scheduler
โ””โ”€โ”€ ๐Ÿ“‚ public/               # Static assets

๐Ÿ”„ Development Workflow

  1. ๐ŸŽจ Frontend: Modify app/ & components/

  2. โš™๏ธ Backend: Edit Python scripts in scripts/

  3. ๐ŸŒ API: Update routes in app/api/

# Start dev server
npm run dev 
# or
yarn dev

๐Ÿงช Testing

# Run frontend tests
npm test

# Run Python tests
python -m pytest

๐ŸŒ Deployment

Create a .env.local file in the root directory with the following variables:

PYTHON_PATH=your_path

๐Ÿค Contributing

  1. ๐Ÿด Fork repository
  2. ๐ŸŒฟ Create feature branch
  3. ๐Ÿ”ง Make your changes
  4. ๐Ÿ”€ Submit PR with detailed description

๐Ÿ“œ License

This project is open-source and available for use under the MIT License - See LICENSE ๐Ÿ“ƒ.


โ“ Support

Open issues on [GitHub ๐Ÿ›] (https://github.com/ajeetkumarrauniyar/Invoice-Generator-with-React-and-Python/issues) or contact maintainers. ๐Ÿ“ง


Live Demo ๐ŸŒ | Full Documentation ๐Ÿ“š

Start generating invoices effortlessly with Invoice Generator today! ๐Ÿš€

About

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors