calm-document

byJanvi shah

below is the software explaination for the 8080 You're right! The "Who It's For" section should only describe the Bill Validation module's scope, not generalize the whole system. Here's the fully corrected explanation: Document Management, QR Tracking & Bill Validation System — Explained This is a centralized internal web platform built for a company to solve three major operational problems: verifying invoices automatically, managing documents securely, and tracking physical files using QR codes. Here's a detailed breakdown: 🔷 Module 1: Bill Validation System đŸĸ Who It's For This module is specifically built for three departments that handle invoice workflows: Marketing Contracting Purchase What It Does This is the most technically complex module. Its job is to automatically verify whether invoice data entered into the company's ERP software matches the actual invoice document uploaded alongside it. The Problem It Solves Employees manually enter invoice details (amounts, vendor names, tax amounts, dates, etc.) into an ERP system. Mistakes happen — wrong amounts, wrong GST, wrong vendor names. Currently someone has to manually cross-check the ERP entry against the scanned invoice PDF. This automates that. How It Works — Step by Step Step 1 — Fetch ERP Data The system connects to the company's existing ERP database (read-only, so it can't modify anything) and pulls invoice data including: Bill number, amounts, dates GST and other taxes Vendor name, party details The employee who created the invoice and their email Step 2 — Fetch the Invoice Document The actual uploaded invoice PDF is also retrieved from the ERP storage system. Step 3 — OCR + AI Extraction The system uses OCR (Optical Character Recognition) technology — think of it as the computer "reading" a scanned PDF — along with AI APIs (like Google Document AI, Azure Form Recognizer, or OpenAI) to extract all the relevant fields from the invoice document. Step 4 — Validation / Comparison The system compares what the ERP says against what the invoice document actually says, field by field: Field How It's Checked Bill Number Must match exactly Amount / Net Amount / GST Numeric comparison Due Date / Billing Date Date format normalization + match Vendor Name Text similarity check Employee Email Exact match Step 5 — Result Each invoice gets a status: ✅ Validated — everything matches âš ī¸ Partial Match — some fields differ ❌ Failed — major mismatches 🔍 Manual Review Required — system couldn't decide confidently Step 6 — Email Notification If there's a mismatch, an automatic email is sent to the employee who created the invoice and the department email, with a summary of what went wrong. Step 7 — Logs Everything is logged — OCR results, AI extractions, validation outcomes, timestamps — for audit purposes. 🔷 Module 2: Document Management System (DMS) This is essentially a secure internal Google Drive tailored for the company's needs. Access to folders and files across any department is controlled through RBAC — users only see what their role permits. What It Does File Storage & Upload Employees can upload files — PDFs, Word docs, Excel sheets, images, ZIPs Supports single upload, bulk upload, or drag-and-drop Files can be previewed inside the portal without downloading Organized Folder Structure Documents are organized in folders (structure defined by the client/company) Each file stores metadata: who uploaded it, when, which department, file size, tags Search & Filtering Users can search documents by file name, department, upload date, or tags — making retrieval fast even with thousands of documents. Access Control Not everyone can see everything. A junior employee in one department cannot access another department's confidential documents. Access is controlled at the folder level based on the user's role — folder structure and access mappings are configured by the client/admin team. 🔷 Module 3: QR Code-Based Physical File Tracking This module solves a very real, very old-fashioned problem: "Where is that physical file folder right now?" Any department can be onboarded into this system, with access governed by RBAC. The Problem It Solves Companies still maintain physical folders/files (paper documents, binders). These get passed between departments and people, and no one knows who has a file, where it is, or when it'll be returned. How It Works QR Generation The system generates unique QR codes — up to 15,000–30,000 of them — one for each physical file/folder These can be printed and physically stuck onto file folders Each QR is linked in the system to a File ID, department, and folder path QR Scanning Workflow When someone picks up or returns a physical file, they scan the QR code with any device (phone/tablet). Here's what happens: Scan QR Code ↓ Opens the internal portal ↓ System checks if user is authorized ↓ Shows file details (what it is, where it belongs, history) ↓ User updates status (Taking it / Returning it) ↓ System saves an audit log with name, department, date/time, remarks File Statuses 📂 Available — sitting in its place 📤 Taken — someone has it đŸ“Ĩ Returned — back in place Full Tracking History You can look up any file and see its complete movement history — who took it, when, from which department, and when it was returned. 🔷 Module 4: Dashboard A central control panel giving management and department heads real-time visibility, with data visible based on the user's role and department access: Validation Dashboard — How many invoices validated today? How many failed? Which department has the most mismatches? DMS Dashboard — Recent uploads, folder summaries, storage usage QR Dashboard — Which files are currently taken? What's overdue for return? File movement history 🔐 Access Control (Runs Across All Modules) The entire system is governed by Role-Based Access Control (RBAC). Every user has a role, and every role has specific permissions: Permission What It Means View Can see files/records Upload Can add new documents Edit Can modify records Delete Can remove files Download Can download files The UI itself changes based on your role — buttons and sections that you don't have access to simply don't appear. Folder-level, module-level, and department-level restrictions are all enforced both on the frontend and backend. âš™ī¸ Technical Summary (For Context) Layer Technology Frontend React.js (web app) Backend Django or FastAPI (Python) Database PostgreSQL or MySQL OCR/AI Google Doc AI, Azure Form Recognizer, Tesseract, OpenAI Storage Company servers or AWS S3 Auth JWT tokens Notifications SMTP Email đŸŽ¯ The Big Picture — What Problem Does This Whole System Solve? Before After Manual invoice verification Automated OCR + AI validation Files scattered across local drives Centralized, searchable DMS No idea where physical files are Real-time QR tracking No audit trail Complete logs for every action Anyone can access anything Strict role-based access In short, this system brings automation, traceability, governance, and audit-readiness to the company's core operational areas.

LoginBillValidationValidationLogsDashboardDMSQRTrackingRoleManagementAuditLogsNotificationsUserManagementQRScan
Login

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 14

Document Management, QR Tracking & Bill Validation System

1. Introduction

1.1 Purpose

This Software Requirements Document (SRD) defines the functional, technical, and operational requirements for the proposed centralized platform that combines:

  • Bill Validation System
  • Document Management System (DMS)
  • QR Code-Based Physical File Tracking System

The system is intended to automate invoice verification processes, enable secure document management, and provide traceability for physical file movement across departments.

1.2 Objectives

The primary objectives of the system are:

  • Automate validation of ERP-entered invoice data against uploaded invoice documents
  • Reduce manual verification effort and data entry errors
  • Enable secure document storage and retrieval
  • Implement Role-Based Access Control (RBAC)
  • Track movement of physical files using QR codes
  • Improve transparency and audit readiness
  • Centralize access to documents, validation reports, and file tracking
Page 2 of 14

1.3 Departments Covered

The bill validation system will support invoice validation workflows for the following departments:

  • Marketing
  • Contracting
  • Purchase

2. System Overview

The proposed solution is a centralized web-based application consisting of three core modules:

ModuleDescription
Bill Validation SystemAutomated validation of ERP-entered invoice data against uploaded invoice documents using OCR and AI-based extraction
Document Management System (DMS)Secure document storage with role-based access control
QR File Tracking SystemQR-based physical file movement tracking

The system will support both digital and physical document workflows.

3. System Architecture

Page 3 of 14

3.1 High-Level Components

The system will include:

  • Frontend Web Application
  • Backend API Services
  • OCR & AI Extraction Engine
  • ERP Integration Layer
  • Database
  • Secure File Storage
  • QR Code Generation Service
  • Notification Service
  • Authentication & Authorization Layer

3.2 Technology Stack

LayerTechnology
FrontendReact.js
BackendDjango / FastAPI
DatabasePostgreSQL / MySQL
OCR EngineOCR Techniques / AI APIs
StorageClient Server / AWS S3 or equivalent
QR GenerationPython QR libraries
AuthenticationJWT / Session-based
DeploymentClient Internal Server / AWS / Private Cloud
NotificationsSMTP Email Service

4. User Management & Access Control

Page 4 of 14

4.1 Role-Based Access Control (RBAC)

The system will support configurable Role-Based Access Control (RBAC) to restrict access based on assigned roles and permissions. The RBAC system should allow:

  • Role creation
  • Permission assignment
  • Folder-level access configuration
  • Module-level access control
  • Department-wise restrictions

4.2 Configurable Permissions

Permissions should support:

Permission TypeDescription
ViewView files/folders/data
UploadUpload documents
EditModify records
DeleteDelete records
DownloadDownload files

4.3 Access Enforcement

The system must enforce:

  • Backend-level authorization checks
  • API-level access validation
  • Folder-level restrictions
  • Department-based visibility
  • Dynamic UI rendering based on permissions
Page 5 of 14

5. Functional Requirements

5.1 Authentication & Security Module

Features

  • User Authentication
    • Secure login
    • Password encryption
    • Session handling
    • Token-based authentication

Security Controls

  • Unauthorized access prevention
  • Session timeout
  • Password policies
  • Audit logging

5.2 Bill Validation System

5.2.1 Objective

Automate validation of ERP-entered invoice data against uploaded invoice documents for:

  • Marketing
  • Contracting
  • Purchase
Page 6 of 14

5.2.2 Validation Workflow

Step 1: ERP Data Fetch

  • System will connect to the on-premise ERP database using read-only access and fetch invoice-related data.
  • ERP data fetched will include:
    • Bill number
    • Amount
    • Due date
    • Billing date
    • Net amount
    • GST and other taxes
    • Vendor name
    • Invoice made by
    • Employee mail ID
    • Party details

Step 2: Document Retrieval

  • The uploaded invoice document associated with the ERP entry will be fetched from the ERP database/storage system.
  • The system will primarily process invoice PDF documents. Any inconsistencies in uploaded formats will be handled within the validation workflow.
  • Both ERP data and uploaded invoice documents will be fetched from the on-premise ERP system/database.

Step 3: OCR & AI-Based Data Extraction

  • The system will use OCR techniques and AI APIs to:
    • Read invoice documents
    • Extract invoice-related fields
    • Normalize extracted values
    • Process structured and semi-structured invoice formats
Page 7 of 14

5.2.3 AI-Based Validation Capabilities

AI APIs and OCR techniques may be used for:

  • Invoice field detection
  • Vendor name extraction
  • Tax field identification
  • Multi-format invoice parsing
  • Data normalization
  • OCR error handling

5.2.4 Fields to Validate

The validation engine should compare ERP data against extracted invoice data for the following fields:

  • Bill Number (Exact match)
  • Amount (Numeric validation)
  • Due Date (Date validation)
  • Billing Date (Date validation)
  • Net Amount (Numeric validation)
  • GST and Other Taxes (Numeric validation)
  • Vendor Name (Text validation)
  • Invoice Made By (Text validation)
  • Employee Mail ID (Exact match)
  • Party Details (Text validation)
Page 8 of 14

5.2.5 Validation Engine

Validation logic should support:

  • Exact matching
  • Numeric comparison
  • Date normalization
  • Text validation

5.2.6 Validation Results

  • Validated: All fields matched
  • Partial Match: Some fields mismatched
  • Failed: Major mismatches detected
  • Manual Review Required: Validation requires user review

5.2.7 Mismatch Detection

System should identify:

  • Missing values
  • Incorrect amounts
  • Tax mismatches
  • Incorrect vendor details
  • Invalid dates
Page 9 of 14

5.2.8 Notifications

Automatic email notifications will be sent to:

  • The employee who created the invoice in ERP
  • Departmental email ID

Notification contents:

  • Invoice reference
  • Department
  • Validation result
  • Mismatch summary
  • Timestamp

5.2.9 Validation Logs

System must maintain:

  • OCR extraction logs
  • AI extraction logs
  • Validation history
  • User activity
  • Processing timestamps

5.3 Document Management System (DMS)

5.3.1 Objective

Provide centralized and secure document storage with role-based access control.

Page 10 of 14

5.3.2 File Management

Supported Features:

  • Single upload
  • Bulk upload
  • Drag-and-drop upload
  • File preview
  • Download management

Supported Formats:

  • PDF
  • DOC/DOCX
  • XLS/XLSX
  • JPG/PNG
  • ZIP

5.3.3 File Metadata

System should maintain:

  • File name
  • Department
  • Uploaded by
  • Upload timestamp
  • Tags/categories
  • File size
Page 11 of 14

5.3.4 Access Restrictions

Users should:

  • Access only authorized folders
  • View only permitted files
  • Perform actions based on assigned permissions

Folder structure and access mappings will be provided by the client team.

5.3.5 Search & Filtering

Search should support:

  • File name
  • Department
  • Upload date
  • Tags

5.4 QR Code-Based Physical File Tracking

5.4.1 Objective

Enable tracking and management of physical files using QR codes.

5.4.2 QR Generation

Features:

  • Unique QR generation
  • Bulk QR generation (15,000–30,000 files)
  • Download option for generated QR files
Page 12 of 14

5.4.3 QR Mapping

Each QR should map to:

  • File ID
  • Department
  • Folder path
  • Tracking history

5.4.4 QR Scan Workflow

  • Scan QR
  • Open Internal Portal
  • Validate User Access
  • Display File Details
  • Update File Status
  • Save Audit Log

5.4.5 File Status Tracking

Supported statuses:

  • Available
  • Taken
  • Returned
Page 13 of 14

5.4.6 Tracking Details Captured

System should capture:

  • User name
  • Department
  • Date & time
  • Status
  • Remarks

5.5 Dashboard Module

5.5.1 Objective

Provide centralized dashboards for operational visibility.

5.5.2 Dashboard Features

  • Validation Dashboard
    • Validation statistics
    • Failed validations
    • Pending reviews
    • Department-wise analytics
  • DMS Dashboard
    • Recent uploads
    • Folder summaries
  • QR Dashboard
    • File movement history
    • Active file usage
    • Pending returns

6. Non-Functional Requirements

Page 14 of 14

6.1 Performance

  • Login response time: < 3 seconds
  • File upload: < 10 seconds
  • QR scan response: < 5 seconds
  • OCR processing: Depends on file size

6.2 Scalability

System should support:

  • 30,
Login design preview
Login: Sign In
Dashboard: View My Activity
BillValidation: View My Invoices
BillValidation: Check Validation Status
Notifications: View Mismatch Alerts
DMS: Upload Documents
DMS: Browse My Folders
DMS: Search Files
DMS: Preview File
DMS: Download File