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 ๐
- 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.
-
๐งฎ 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)
-
๐ฅ๏ธ 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
- ๐ฅ CSV Export:
- Download organized payment schedules
- ๐ Standardized financial records
- ๐ซ Prevents empty/invalid CSV exports
- Easy integration with external systems, ERPs or record-keeping.
- โ๏ธ Frontend: Next.js, React, Tailwind CSS
- ๐ Backend: Python (Pandas), FastAPI
- โ Validation: Zod, React Hook Form
- ๐จ UI Components: ShadCN
Before you begin, ensure you have the following installed:
- Node.js v18+ ๐ข
- Python 3.8+ ๐
- npm/yarn ๐ฆ
- pip ๐งช
- Clone the repository
- Install frontend dependencies
- 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- ๐๏ธ Select invoice type (Purchase/Sales)
- ๐ Set date range & financial parameters
- ๐ฅ Upload CSV or auto-generate parties
- โฌ๏ธ Download formatted CSV
- ๐ค Upload CSV with columns:
- Date, Bill, Party Name, Amount
- โฌ๏ธ Download payments.csv with daily payment splits
๐ 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
-
๐จ Frontend: Modify app/ & components/
-
โ๏ธ Backend: Edit Python scripts in scripts/
-
๐ API: Update routes in app/api/
# Start dev server
npm run dev
# or
yarn dev# Run frontend tests
npm test
# Run Python tests
python -m pytestCreate a .env.local file in the root directory with the following variables:
PYTHON_PATH=your_path- ๐ด Fork repository
- ๐ฟ Create feature branch
- ๐ง Make your changes
- ๐ Submit PR with detailed description
This project is open-source and available for use under the MIT License - See LICENSE ๐.
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! ๐