MSME Compliance Tool – End-to-End 43B(h) Disallowance & Audit Reporting
Author : CA. Ranjana Soni
Author : CA. Ranjana Soni
Overview
The MSME Compliance Tool is a locally-hosted desktop application built for Chartered Accountants and auditors to manage the complete lifecycle of MSME vendor compliance under Indian tax and company law. It automates Section 43B(h) disallowance computation, Form 3CD Clause 22 disclosure, Clause 26(A) carry-forward deduction tracking, Udyam registration verification, and vendor declaration collection — all from a single unified interface running on the user's machine with zero cloud dependency.
Problem Addressed
Section 43B(h), effective from April 2024, requires that payments to Micro and Small enterprises be made within the time limit prescribed under Section 15 of the MSMED Act (15 days without agreement, 45 days with written agreement). Any amount remaining unpaid beyond this period is disallowed as a deduction in the year of accrual and can only be claimed in the year of actual payment.
For practicing CAs, this creates multiple compliance challenges:
Doing this manually across dozens of vendors using spreadsheets is time-consuming, error-prone, and difficult to audit. There is no integrated tool available that handles the complete workflow from vendor identification to final tax audit reporting.
Solution
The MSME Compliance Tool addresses every step of this workflow through six integrated modules:
Tally Data Import: Directly imports transaction XML and trial balance exports from Tally ERP. The trial balance is treated as authoritative — closing balances override FIFO-computed outstanding amounts, ensuring alignment with the audited books.
Udyam Certificate Extraction: Extracts vendor details (Udyam number, enterprise type, PAN) from uploaded PDF certificates using browser-based OCR (Tesseract.js), eliminating manual data entry.
Automated Portal Verification: Verifies Udyam registrations directly against the government portal (udyamregistration.gov.in) using Selenium browser automation with CAPTCHA solving (EasyOCR), supporting both single and bulk verification.
Clause 22 & 43B(h) Computation: Computes Form 3CD Clause 22 disclosure — total purchases from Micro/Small vendors, amounts paid during the year, post-March payments within 45 days, and outstanding balance (disallowance). The 43B(h) disallowance is derived directly from Clause 22(iii)(b), ensuring a single source of truth.
Clause 26(A) Carry-Forward Register: Tracks prior-year 43B(h) disallowances and computes the amount deductible in the current year upon actual payment, using trial balance closing balances to determine what portion of prior outstanding has been settled.
Vendor Communication: Sends MSME declaration request emails with attached Non-MSME Declaration forms (auto-generated Word documents), tracks responses, and syncs vendor MSME status back to the registry and verification modules automatically.
Impact
Technology Stack
Backend: Python 3.14, Flask 3.0 web framework, SQLite database (per-client isolation)
Data Import: openpyxl and custom XML parser for Tally ERP transaction and trial balance exports
PDF Extraction: pdfplumber for text-based PDFs, Tesseract.js for scanned certificate OCR
Portal Automation: Selenium WebDriver with Chrome for Udyam portal verification, EasyOCR for CAPTCHA solving
Email: Python smtplib for SMTP-based vendor declaration emails with Word document attachments
Frontend: Bootstrap 5.3, Chart.js, Vanilla JavaScript — no React/Vue/Angular, no build tools
Architecture: Local-first design — runs on localhost:5001, all data on user's machine
Future Roadmap
MCA MSME-1 Form: Auto-generate the biannual MSME-1 return with interest computation under Section 16 of the MSMED Act (3x RBI bank rate, compounded monthly).
Excel Export: Export Clause 22 and 43B(h) working papers as formatted Excel sheets ready for attachment to the tax audit report.
Interest Calculator: Compute interest payable under Section 16 of the MSMED Act for delayed payments, with detailed invoice-wise breakup.
Tally Integration: Direct API-based import from Tally Prime, eliminating the manual export step.
Conclusion
The MSME Compliance Tool represents a practical, privacy-first approach to automating one of the most complex compliance requirements introduced in recent Indian tax law. By integrating vendor identification, portal verification, disallowance computation, and audit reporting into a single local application, it enables CAs to deliver accurate, audit-ready 43B(h) compliance with significantly reduced effort and risk. Built by a practicing Chartered Accountant, it mirrors the actual workflow and working paper structure that auditors use — making adoption straightforward for any CA practice.