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! 🚀