Rehmani Trading Company

byM. Ahsan Idrees

# Additional Project Requirements & UI Specifications The following requirements are **mandatory** and must be implemented professionally. They override any default assumptions. --- # Company Branding The complete system will be developed for: # **Rehmani Trading Company** The company name should appear professionally throughout the application. Display on: * Login Screen * Dashboard * Sidebar * Navbar * Reports * Invoices * PDF Exports * Print Layouts * Browser Title * Footer The branding should look modern and professional. --- # UI / UX Design The interface must look like premium ERP software. ### Light Theme Primary Colors * White (#FFFFFF) * Professional Blue (#2563EB or similar) Accent Colors * Light Gray * Sky Blue * Soft Shadows The interface should feel clean, spacious, elegant, and easy to read. --- ### Dark Theme Primary Colors * Black / Dark Gray (#121212) * Professional Blue (#3B82F6 or similar) Accent Colors * Dark Gray * Blue Highlights The dark theme should be modern, eye-friendly, and visually appealing. --- ### Theme Features Include: * Light Theme * Dark Theme * Automatic System Theme Detection * Manual Theme Switch * Theme Preference saved in the database --- # User Interface Requirements Create a modern dashboard similar to enterprise ERP software. Use: * Smooth Animations * Card Layouts * Statistics Cards * Beautiful Tables * Charts * Loading Animations * Skeleton Loading * Toast Notifications * Confirmation Dialogs * Modern Buttons * Rounded Components * Professional Icons * Responsive Navigation * Responsive Sidebar Animations should be smooth but lightweight. --- # Sidebar Navigation The sidebar should contain the following modules. ## Dashboard Display: * Today's Sales * Current Queue * Total Farmers * Total Buyers * Total Dheris * Current Stock * Pending Payments * Revenue * Commission * Recent Activity --- ## Farmer Management Functions * Add Farmer * Edit Farmer * Delete Farmer * View Farmer * Farmer Ledger * Farmer Payment History * Farmer Dheri History * Farmer Truck History * Outstanding Balance Generate unique Farmer ID automatically. --- ## Buyer Management Functions * Add Buyer * Edit Buyer * Delete Buyer * Buyer Ledger * Payment History * Purchase History * Outstanding Balance Generate unique Buyer ID automatically. --- ## Truck Management Functions * Add Truck * Edit Truck * View Truck * Truck History Each truck belongs to one farmer. --- ## Dheri Management Functions * Add Dheri * Edit Dheri * Delete Dheri * Queue Number * Selling Status * Weight Details * Partial Bag Calculation * Complete Sale History Every Dheri should have a unique Dheri ID. --- ## Stock Management The stock quantity must **never be hardcoded**. The owner should be able to: * Add Stock * Remove Stock * Edit Stock * Transfer Stock * View Current Stock * Stock History * Low Stock Alert * Product-wise Stock * Manual Stock Adjustment Support multiple grain products. --- ## Price Calculator Develop a dedicated **Price Calculator Module**. The calculator should automatically calculate grain prices. Inputs: * Dheri Number * Product Name * Number of Bags * Weight of One Bag * Partial Bag Weight (Extra KG) * Market Rate * Commission Percentage Automatically calculate: * Total Weight * Partial Weight Value * Total Price * Commission * Farmer Receivable Amount * Supervisor Share * Labor Share * Arhat Share * Final Amount The calculator should update values instantly without reloading the page. --- ## Queue Management Functions * Generate Queue * Change Queue * View Queue * Pending Queue * Completed Queue * Cancel Queue Each Dheri should receive its own independent queue number. --- ## Sales Module Functions * New Sale * Edit Sale * View Sale * Invoice Generation * Payment Status * Sale History Support mixed sales. Example Farmer 70 Bags Business Stock 10 Bags Buyer 80 Bags Update stock automatically. --- ## Record Management Create a dedicated **Records** module. This should contain **every business record**. Sections ### Farmer Records * Registration * Payments * Sales * Dheris * Trucks * Commission --- ### Buyer Records * Purchases * Payments * Remaining Balance * Complete History --- ### Sales Records * Daily * Weekly * Monthly * Yearly --- ### Stock Records * Incoming * Outgoing * Remaining * Adjustments --- ### Commission Records * Arhat Share * Supervisor Share * Labor Share --- ### Payment Records Display Paid Amount Remaining Amount Payment Date Payment Method Payment History Outstanding Balance --- ## Global Search Create a professional global search system. Search by * Farmer ID * Buyer ID * Truck ID * Dheri ID * Queue Number * Invoice Number * CNIC * Phone Number * Product Name As the user types, search results should appear instantly (live search/autocomplete). Clicking a result should open the complete profile and transaction history. --- ## Reports Generate * Daily Report * Weekly Report * Monthly Report * Yearly Report * Profit Report * Commission Report * Stock Report * Farmer Ledger * Buyer Ledger Support * PDF * Excel * Print --- ## Settings Module The owner should have full control over the system. Settings include Business Settings * Company Name * Company Logo * Address * Phone * Email Commission Settings * Default Commission Percentage * Supervisor Share * Labor Share * Arhat Share Theme Settings * Light Theme * Dark Theme System Settings * Backup * Restore * User Roles * Permissions Database Settings * Backup Database * Restore Database Notification Settings * Low Stock Alert * Backup Reminder * Payment Reminder --- ## Owner Panel The owner should have access to everything. Owner Features * Dashboard * All Reports * User Management * Settings * Database Backup * Restore Database * Activity Logs * Business Analytics * Stock Control * Commission Settings * Payment Approval No other user should access these features unless permission is granted. --- ## Database Requirements Every piece of information entered into the website must be stored properly. No duplicate records. Use: * Foreign Keys * Indexes * Constraints * Transactions * Audit Logs * Soft Delete * Automatic Timestamps The database must support millions of records efficiently. --- ## Final Design Goal Build a beautiful, modern, responsive, enterprise-grade website for **Rehmani Trading Company** with a premium user experience, elegant animations, powerful backend, optimized MySQL database, scalable Java Spring Boot APIs, advanced search, intelligent price calculator, configurable stock management, comprehensive record keeping, and enterprise-level security. The final system should look and feel like a professional ERP used by large trading companies and be ready for real-world deployment.

Login
Login

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document
Page 1 of 5

Rehmani Trading Company System Requirements Document

Introduction

This System Requirements Document (SRD) outlines the requirements for the development of a comprehensive enterprise-grade website for Rehmani Trading Company. The system aims to provide a premium user experience with modern design, powerful backend capabilities, and enterprise-level security.

System Overview

The Rehmani Trading Company system will be a responsive, modern, and professional ERP-like application. It will support various modules including farmer management, buyer management, truck management, dheri management, stock management, price calculation, queue management, sales, records, global search, reports, settings, and an owner panel. The system will be designed to handle millions of records efficiently with a robust MySQL database.

Page 2 of 5

Functional Requirements as Story Points

  • As a User, I should be able to view a modern dashboard displaying key metrics like today's sales, current queue, total farmers, buyers, dheris, current stock, pending payments, revenue, commission, and recent activity.
  • As an Admin, I should be able to manage farmers by adding, editing, deleting, viewing, and accessing their ledger, payment history, dheri history, truck history, and outstanding balance.
  • As an Admin, I should be able to manage buyers by adding, editing, deleting, and accessing their ledger, payment history, purchase history, and outstanding balance.
  • As an Admin, I should be able to manage trucks by adding, editing, viewing, and accessing truck history.
  • As an Admin, I should be able to manage dheris by adding, editing, deleting, and accessing queue numbers, selling status, weight details, partial bag calculations, and complete sale history.
  • As an Owner, I should be able to manage stock by adding, removing, editing, transferring, viewing current stock, accessing stock history, receiving low stock alerts, and adjusting stock manually.
  • As a User, I should be able to use a price calculator to automatically calculate grain prices based on inputs like dheri number, product name, number of bags, weight, market rate, and commission percentage.
  • As a User, I should be able to manage queues by generating, changing, viewing, and accessing pending and completed queues.
  • As a User, I should be able to manage sales by creating, editing, viewing, generating invoices, checking payment status, and accessing sale history.
  • As a User, I should be able to access records for farmers, buyers, sales, stock, commission, and payments.
  • As a User, I should be able to perform a global search using various identifiers and receive instant search results.
  • As a User, I should be able to generate reports in PDF, Excel, and print formats for various metrics.
  • As an Owner, I should have full control over system settings including business, commission, theme, system, database, and notification settings.
  • As an Owner, I should have access to an owner panel with features like dashboard, reports, user management, settings, database backup, restore, activity logs, business analytics, stock control, commission settings, and payment approval.

User Personas

  • Owner: Has full access to all system features and settings.
  • Admin: Manages farmers, buyers, trucks, dheris, stock, and queues.
  • User: Interacts with the dashboard, price calculator, sales, records, global search, and reports.
Page 3 of 5

Core User Flows

  • Owner logs in -> Accesses dashboard -> Manages settings -> Generates reports
  • Admin logs in -> Manages farmers/buyers/trucks/dheris -> Updates stock -> Manages queues
  • User logs in -> Uses price calculator -> Manages sales -> Accesses records -> Performs global search

Visuals Colors and Theme

  • primary: #2563EB (Professional Blue)
  • primary_light: #3B82F6 (Lighter Professional Blue)
  • secondary: #FFFFFF (White)
  • accent: #A0AEC0 (Light Gray)
  • highlight: #38BDF8 (Sky Blue)
  • bg: #F7FAFC (Light Background)
  • surface: #FFFFFF (Card Background)
  • text: #1A202C (Dark Text)
  • text_muted: #718096 (Muted Text)
  • border: #E2E8F0 (Subtle Border)

Signature Design Concept

The homepage will feature an interactive "Trading Journey" animation. Users will see a dynamic flow of trading elements like grains, trucks, and dheris moving across the screen, symbolizing the trading process. As users hover over elements, they will expand to show details like current stock, sales, and revenue. This will be implemented using motion/react for smooth animations and interactions.

Page 4 of 5

Landing Hero Motion Brief

The landing page will feature a continuous loop animation where grains are harvested, loaded onto trucks, and transported to buyers. This animation will be created using motion/react and will illustrate the transformation of raw products into sales, highlighting the efficiency of the Rehmani Trading Company system. The animation will be responsive and include interactive elements that reveal more information on hover.

Interaction Model & Motion Direction

  • Interaction Model: Animated
  • The landing page will feature moderate scroll-triggered reveals, hover transitions, and spring physics on interactive elements to provide a polished and engaging user experience.

Non-Functional Requirements

  • The system must be highly responsive and performant, supporting millions of records.
  • It must ensure data integrity and security with features like audit logs, soft delete, and automatic timestamps.
  • The system should be scalable to accommodate future growth and additional features.

Tech Stack

  • Frontend: React for Web
  • Backend: Java Spring Boot
  • Database: MySQL
  • AI Tools: Not specified
Page 5 of 5

Assumptions and Constraints

  • The system will be developed with a focus on scalability and performance.
  • It will adhere to modern security standards to protect sensitive data.
  • The design will prioritize user experience with a clean and professional interface.

Glossary

  • ERP: Enterprise Resource Planning
  • Dheri: A unit of grain storage
  • Arhat: A commission or share in trading
  • CNIC: Computerized National Identity Card

This document serves as a comprehensive guide for the development of the Rehmani Trading Company system, ensuring all requirements are met to deliver a high-quality product.

Login design preview
Login: Sign In
Dashboard: View Metrics
Farmers: Add Farmer
Farmers: View Ledger
Buyers: Add Buyer
Buyers: View Ledger
Trucks: Add Truck
Trucks: View History
Dheris: Add Dheri
Dheris: Manage Queue
Stock: Update Stock
Queue: Manage Queue
Login design preview
Login: Sign In
Dashboard: View Metrics
Farmers: Add Farmer
Farmers: View Ledger
Buyers: Add Buyer
Buyers: View Ledger
Trucks: Add Truck
Trucks: View History
Dheris: Add Dheri
Dheris: Manage Queue
Stock: Update Stock
Queue: Manage Queue