Software Requirements Specification (SRS)
Functional Requirements
1. Generate Bills for Customers
Inputs:
o Code numbers of items purchased by the customer.
o Quantity of each item purchased.
Outputs:
o A bill containing:
Serial number of the transaction.
Item details (name, code number, quantity, unit price).
Item price (calculated as quantity × unit price).
Total amount payable for the transaction.
2. Maintain Inventory
Inputs:
o Code number of the item being sold.
o Quantity of the item being sold (deducted automatically during a sale).
o New supply details provided by an employee, including:
Code number of the item.
Quantity of the new supply.
Outputs:
o Updated inventory details for the item, including:
Item name.
Code number.
Updated available quantity.
Current unit price.
3. Provide Sales Statistics
Inputs:
o Date or time period for which statistics are requested.
o Code number of the item (if statistics are requested for a specific item).
Outputs:
o Sales statistics report, including:
Quantity of the item sold during the specified period.
Total price realized from sales of the item.
Profit earned from the item.
4. Update Item Prices
Inputs:
o Code number of the item whose price needs to be updated.
o New selling price set by the manager.
Outputs:
o Confirmation of the updated price for the item.
o Updated price reflected in:
Bills generated for customers.
Inventory details.
Sales statistics.
5. Record and Track Sales Transactions
Inputs:
o Code numbers of items purchased.
o Quantity of each item purchased.
Outputs:
o A stored record of the transaction, containing:
Serial number of the transaction.
Item details (name, code number, quantity, unit price).
Total transaction amount.
6. Secure Employee Access
Inputs:
o Login credentials (username and password) for each employee.
o Role of the employee (sales clerk or manager).
Outputs:
o Access granted based on the employee's role:
Sales clerks can record sales transactions.
Managers can update inventory and modify prices.
o Error message if invalid credentials are provided.
7. Handle Item Queries
Inputs:
o Item name or code number provided for search.
Outputs:
o Detailed information about the item, including:
Item name.
Code number.
Current quantity in stock.
Selling price.
This input-output approach makes it clear how each function interacts with the system
and what data it processes or generates.