Partnership Deed Automation by CA Revati Galgali


Problem

In CA practice, Partnership Deed and LLP Agreement drafting is: Repetitive and Monotonous : Same clauses drafted manually each time with copy-paste from old deeds, consuming hours of professional time on low-value work No Standardisation : Every practitioner follows their own format; no uniform template exists for Indian law-compliant deeds across Partnership Act 1932 and LLP Act 2008 No Built-in Validation : Profit ratios may not total 100%, PAN formats go unchecked, stamp duty is guessed, Section 40(b) limits and Section 194T TDS provisions are often outdated or missed Scattered Legal Knowledge : Stamp duty rates across 35 states, Finance Act 2024 amendments, LLP-specific sections, all must be manually researched and cross-checked every time

Prompt Input

Create a comprehensive, single-file HTML application for generating legally compliant Partnership Deeds and LLP Agreements under Indian law. The application should: 1. DOCUMENT TYPE SELECTION - Allow users to choose between Partnership Deed (Indian Partnership Act, 1932) and LLP Agreement (Limited Liability Partnership Act, 2008) - Show key differences between the two (liability, compliance, legal entity status) - Dynamically show/hide clauses based on document type selected: - Partnership mode: Show Partnership Act clauses (Sections 15, 17, 18, 29, 30, 34-35, 40-44, 12) as toggleable checkboxes; hide LLP governance card - LLP mode: Show LLP Act governance card with 8 provisions (Sections 27-28, 7-8, 23, 42, 32, 63-64, 23(2), 34-35); hide Partnership Act-specific clauses - Auto-check relevant clauses when switching; auto-uncheck hidden ones to prevent leakage into generated document - Update section titles, labels, and registration clause text dynamically 2. MULTI-STEP FORM WIZARD with progress bar and sidebar navigation - Step 1: Document Type selection - Step 2: Template selection (Professional Services, Trading, Manufacturing, Investment, Family Partnership, Custom) - Step 3: Basic Details (firm name, nature of business with categorized dropdown including "Others - fill manually" option that clears and focuses the text field, place of execution, dates, duration, principal place of business) - Step 4: Partner Information (name, PAN with auto-uppercase and structure validation including 4th character entity type check [ABCFGHJLPT], Aadhaar, address, email, mobile, capital contribution, partner category - active/sleeping/nominal/designated for LLP, signing and banking authority). Allow adding/removing partners dynamically. Validate: duplicate PAN detection, duplicate Aadhaar detection, minimum 2 designated partners for LLP. - Step 5: Capital & Profit Sharing (total capital, interest on capital with 12% max note per Section 40(b)(iv), interest on drawings, drawing limits, profit distribution method - fixed ratio/multi-tier/performance-based, profit ratio calculator that validates total = 100%, reserve allocation, loss absorption, goodwill valuation). Income Tax info panel showing Section 40(b) revised limits per Finance Act 2024 (₹3,00,000/₹6,00,000 thresholds) and Section 194T TDS provisions (10% on aggregate payments exceeding ₹20,000, effective 1 April 2025, on entire amount). - Step 6: Governance & Additional Clauses (quorum, management committee, banking authority, admission/expulsion clauses, retirement notice period, valuation method, goodwill formula, settlement timeline, death/incapacitation protocol, non-compete with Section 36 Partnership Act / Section 27 Contract Act enforceability warning and max duration cap, non-solicitation, arbitration referencing 2015/2019/2021 amendments, accounting standards, audit provision, indemnity, MSME registration under MSMED Act 2006, anti-money laundering under PMLA 2002, jurisdiction) - Step 7: Custom clauses (3 free-text fields) - Step 8: Review & Generate (validation summary, document summary, generate/preview/ print/export buttons) - Sidebar navigation validates current section before allowing forward jumps; backward navigation is always permitted 3. STAMP DUTY CALCULATOR - Include stamp duty rates for ALL Indian states and union territories - Calculate based on state selection and capital amount - Show whether capital-based or fixed rate applies - Display min/max caps where applicable - Include e-stamping portal URLs for states that support it - Add disclaimer about rates being approximate with "last verified" date - Maharashtra: 1% of capital, max ₹50,000 (per 2024 Amendment Ordinance) - USER-EDITABLE RATES: Settings modal to modify any state's rates (fixed rate, capital rate %, min/max caps, LLP rate, notes). Changes persist in localStorage. Reset individual state or all states to defaults. Edited states marked in dropdown. 4. DOCUMENT GENERATION - Generate a complete, legally formatted partnership deed/LLP agreement in HTML - Include proper legal language with WHEREAS/NOW THEREFORE structure - Number all clauses sequentially - Include partner details with PAN, addresses - Add signature blocks for all partners and 2 witnesses - Include stamp duty summary and important notes - For Partnership: clauses for Sections 15 (Remuneration), 17 (True Accounts), 18 (Access to Books), 29 (Transfer of Interest), 30 (Minor to Benefits with full Section 30(5) election period), 34-35 (Insolvency), 40-44 (Dissolution), 12 (Immovable Property), 58-69 (Registration) - For LLP: clauses for Limited Liability (Sections 27-28), Designated Partners (Sections 7-8), Assignment of Share (Section 42), Mutual Rights (Section 23), Changes in Contribution (Section 32), Winding Up (Sections 63-64), Filing requirements (Section 23(2)), Annual Compliance (Sections 34-35 with Form 8, Form 11, audit thresholds, penalty details) - Non-compete clause references Section 36(2) Partnership Act as exception to Section 27 Contract Act with reasonableness caveat and severability clause - Income Tax compliance clause with Section 40(b) revised limits (Finance Act 2024: ₹3,00,000/₹6,00,000 thresholds), Section 194T TDS (10% on aggregate > ₹20,000, effective 1 April 2025, on entire amount, no Form 15G/15H), Section 184/185, Section 44AD/44ADA, Section 44AA, Section 44AB - Arbitration clause referencing Arbitration and Conciliation Act 1996 as amended by 2015, 2019, 2021 Acts with Section 12(5) independence and Section 29A timelines - MSME Registration clause (MSMED Act 2006) with Udyam portal reference and Section 15/16 delayed payment protection - Anti-Money Laundering clause (PMLA 2002) with KYC, record maintenance, STR reporting obligations 5. SAMPLE DATA - Include 4 pre-built sample datasets with realistic Indian data: a) Professional Partnership (CA firm, 3 partners, Mumbai, Maharashtra) b) Trading Partnership (wholesale, 4 partners, Delhi) with MSME clause enabled c) Technology LLP (software, 3 designated partners, Bengaluru, Karnataka) with MSME clause enabled, all 8 LLP governance clauses enabled, Partnership-only clauses disabled d) Investment LLP (real estate, 5 partners, Ahmedabad, Gujarat) with PMLA clause enabled, all 8 LLP governance clauses enabled, Partnership-only clauses disabled - Each with complete partner details, valid PAN numbers (4th character entity type verified), capital amounts, profit ratios, all governance options pre-configured - All datasets include MSME/PMLA checkbox states and LLP-specific governance states 6. UI/UX REQUIREMENTS - Modern, professional design with gradient header - Card-based layout with hover effects - Radio buttons styled as selectable cards for document type - Template selection as icon cards - Partner cards with blue gradient left border - Progress bar with step numbers and checkmarks - Sidebar navigation with active state and forward-jump validation - Form validation with error states, PAN auto-uppercase, duplicate detection - Auto-save to localStorage with indicator - Keyboard shortcuts (Ctrl+S save, Ctrl+P preview) - Print-friendly CSS (@media print) - Mobile responsive (@media max-width 768px) - Modal for preview, sample data selection, and stamp duty rate editing - Tooltips for help icons - CSS variables for theming - Animations (fadeIn for sections, slideIn for auto-save) - Footer with browser deployment limitations caveat 7. EXPORT / IMPORT OPTIONS - Preview in modal - Print (opens new window with print-friendly styles) - Export as Word (.doc format via Blob with Microsoft Office XML namespace) - Save as JSON: Downloads complete form state as .json file with metadata (timestamp, app version), all field values, partner data, profit ratios, custom stamp duty rate overrides. Filename auto-generated from firm name + document type + date. - Import JSON: File picker with validation, confirmation dialog showing document type / partner count / export date, full session restore including partners, fields, profit ratios, stamp duty rates, all checkboxes. 8. TECHNICAL - Single HTML file, no external dependencies - Pure vanilla JavaScript, no frameworks - CSS Grid and Flexbox layouts - localStorage for persistence (form data + custom stamp duty rates) - All stamp duty rates as a JavaScript object with state codes as keys, with deep-copy defaults for reset capability - Number-to-words converter supporting Indian numbering (Lakh, Crore) - Date formatting with ordinal suffixes - PAN validation regex: /^[A-Z]{3}[ABCFGHJLPT][A-Z][0-9]{4}[A-Z]$/

Prompt Output

AI-Powered Partnership Deed & LLP Agreement Generator : Single-file HTML app (4900+ lines), zero dependencies, built via AI prompt engineering (Claude via Genspark). Dual Document Engine: Partnership Deeds (Act 1932) & LLP Agreements (Act 2008) with dynamic clause toggling based on entity type Stamp Duty Calculator: Auto-calculates for all 35 states/UTs, capital-based and fixed-rate logic with min/max caps Income Tax Compliance: Sec 40(b) revised limits (Finance Act 2024), Sec 194T TDS (w.e.f. 1 Apr 2025), Sec 44AB audit thresholds Smart Validation: PAN format checks, profit ratio = 100% enforcement, LLP designated partner minimum, mandatory field checks Import & Export (Save): Preview modal, Print, Word (.doc) export, all from browser, no server required

LLM Name: Claude