Sales and Stock Management System
Sales and Stock Management System
CSUSB ScholarWorks
8-2023
Recommended Citation
Gaddam, Rashmika Ms, "Sales and Stock Management System" (2023). Electronic Theses, Projects, and
Dissertations. 1791.
https://scholarworks.lib.csusb.edu/etd/1791
This Project is brought to you for free and open access by the Office of Graduate Studies at CSUSB ScholarWorks.
It has been accepted for inclusion in Electronic Theses, Projects, and Dissertations by an authorized administrator
of CSUSB ScholarWorks. For more information, please contact [email protected].
SALES AND STOCK MANAGEMENT SYSTEM
A Project
Presented to the
Faculty of
San Bernardino
In Partial Fulfillment
Master of Science
in
Computer Science
by
Rashmika Gaddam
August 2023
SALES AND STOCK MANAGEMENT SYSTEM
A Project
Presented to the
Faculty of
San Bernardino
by
Rashmika Gaddam
August 2023
Approved by:
Many stores uses Excel sheets to monitor sales and inventory by keeping
separate distinct sheets for sales and inventory data within the cost. This project
is helpful in accounting and analysis, which can determine the fluctuations in sales
and stock levels .However, we face many issues while using excel to record the
sales and stock levels. For example, If more than one person works on the Excel
sheets, then it may lead to many inaccuracies, inconsistencies and loss of data.
Also, if number of stocks and sales increases then it is really hard to maintain large
amounts of data which is also hard to retrieve when needed. Furthermore, excel
does not offer real-time updates or integration with other systems, such as point-
of-sale (POS) systems, which can lead to inaccuracies and inefficiencies in the
sales and stock management process. These limitations highlight the need for a
more robust and integrated solution for sales and stock management in a grocery
store.
iii
ACKNOWLEDGEMENT
crucial assistance, patience, time, and advice in seeing this project through to
members, Dr. Ronald Salloum and Dr. Khalil Dajani, for their invaluable
California State University, San Bernardino, for developing the best curriculum that
iv
TABLE OF CONTENTS
ABSTRACT…………………………………………………………………………..iii
ACKNOWLEDGEMENTS………………………………………………………..…iv
LIST OF FIGURES……………………………………………………………..…...vii
CHAPTER ONE:INTRODUCTION……………………………………………...….1
Background…………………………………………….………………………..1
Significance………………………………………………………….………......1
Purpose………………………………………………………….………............2
Motivation……………………………………………………………………......2
Challenges……………………………………………………...…………….....3
Hardware Requirements………………………………………………….........4
Software Requirements…………………………………………………...……4
HTML……………………………………………………………………….........5
CSS…………………………………………………………………………........5
BOOTSTRAP…………………….………………………………………….......5
PHP………………………………………….……………………………….......5
MY SQL……………………………………………………………………….....5
ER Diagram……………………………………………………………………...7
v
Proposed System………………………………………………………….........8
Web Application…………………………………………………………………8
User Requirement…………………………………………………………..…..9
Admin……………………………………………………….……………..…......9
Inventory Control………..………………………………………………..……...9
Primary Implementation…………………………………………………...…..10
Exploring Database……………………………………………….……….…..11
Introduction……………………………………………..………………..…..…21
Unit Testing…………………..…………………………………………..…….21
Testing Scenarios…………………………..………………………………….22
Conclusion……………………………………………………..…………..…...25
Project Limitations……………………..…………………………………........25
CHAPTER TEN: FUTURE ENHANCEMENTS…………….…………………….27
APPENDIX A:CODE……………………………………………..…...………..…..28
REFERENCES……………………………………………………...……………...46
vi
LIST OF FIGURES
Figure 1: Dashboard…………………………………………….…………….……..12
vii
CHAPTER ONE
INTRODUCTION
Background
Grocery stores used to do their inventory manually before the new dawn of
companies. With a proper and timely determination of the system, the strategy
efficiency. Excel spreadsheets are used for data entry manually which can
Significance
Using Excel sheets for maintaining sales and stock in a store may result in lot
of challenges. Some of them are getting errors while entering the data manually,
as the data increases scalability decreases and difficult to interact with other
systems like point -of-sales system. Due to all these reasons, it is really difficult to
decide about sales and stocks based on real -time details. Hence we need to
have an integrated system for all kinds of store in order to monitor sales and
stock.
1
Purpose
2. Provide real-time visibility into sales and stock data, enabling informed
decision-making.
5. Provide detailed sales and stock analytics, including graphs and charts, to
Motivation
between what is required and what is desired, with reducing expenses as the
primary objective. Goods and materials that are used in any business are
available to utilize whenever needed. For predicting the demand in future, the
system deals with forecasting the demand,controlling assets items and supplies
products.
2
CHAPTER TWO
LITERATURE REVIEW
Challenges
There are numerous sales and stock systems used in almost every business
enterprise for managing their inventory and sales, although inaccurate records
od stock is universal among the systems. The proposed system will develop a
method for delivering real-time insights into the activities carried along the
grocery store. Existing systems are using the same type of database technology
displayed in a single location. They are created and carried by a software known
management systems.MY SQL and PHP are used in this system for remote
server services.
3
CHAPTER THREE
SYSTEM REQUIREMENTS
Hardware Requirements
Software Requirements
Xampp.
4
CHAPTER FOUR
display, since easy to use even for inexperienced users, it is attractive, provide
HTML
Hyper Text Markup Language is used for developing front-end Graphical user
CSS
Cascading style sheets are a style sheet language used to show a document
BOOTSTRAP
Bootstrap is used for front end framework which enable global options like
gradients and shadows and writes own CSS with our variables, maps, functions.
PHP
The system was created with the Laravel PHP framework.The software will be
developed using PHP one of the most widely used and reliable technologies for
MYSQL
For database MYSQL is used.This technology will ensure that the software is
SYSTEM DESIGN
6
ER Diagram
7
CHAPTER SIX
SYSTEM ANALYSIS
Proposed System
4. Sales and Profit Analytics: This platform can display graphical and visual
materials, consumers, and other aspects that can assist the business to
Web Application
process of the business. When all the operations are automated, they can be
carried out accurately and the business will acquire the edge over competitors.
8
The following details are added to the business requirements discussed in the
Scope section:
1.Aids in the search for a specific product and its remaining supply.
6.To determine the amount and specifics of sales distributed on a certain day.
8.Each transaction has a unique entry date, as well as a quantity and rate.
User Prerequisites
Admin
1.Ability to build new stores with dates.
Inventory Control
9
CHAPTER SEVEN
IMPLEMENTATION
Primary Implementation
Admin: The administrator is responsible for handling the system. This involves
setting up and dealing with the user accounts, operating the database and
Store Manager: The store manager will be responsible for running the store
daily.He is also responsible for maintaining the data on sales and inventory,
Inventory Manager: The inventory manager will be responsible for dealing with
stock data, which involves incorporating new goods, keeping stock levels up to
Reports User: The reports user will be responsible for creating reports,
examining sales and stock data, and coming up with alternatives based on what
confidential data will remain encrypted and every individual will be allowed to
access the details they require to carry out the job.The PHP and MYSQL based
inventory and sales management system will make it simpler and precise count
10
Exploring Database
site should have enough storage space, bandwidth to deal with large
contain fields for transactions, products and inventory and the fields need
• User Interface Design: The entire system should have a user -friendly
dashboard which allows customers to enter and display both sales and
system all the features like entering information, searching the data and
expanding and must deal with error management and store them
appropriately.
to ensure that it functions as planned also ensuring that the date precise
11
and secured.When the testing is completed the system can be uploaded
and provide the necessary. level of service. This may involve fixing bugs,
hardware components.
Figure 1: Dashboard
12
Figure 2: Add Sale
13
Figure 4: Add Vendor
14
Figure 6: List Inventory
15
Figure 7: List of Vendors
16
Figure 8: List of Customers
17
Figure 9: List of Sales
Figure 10 : Defaulters
18
Figure 11: Out of Stock Products
19
Figure 13: List of Payments
20
CHAPTER EIGHT
TESTING
Introduction
guarantee quality, and its objective is not to detect bugs.Testing might consist
entries.
Unit Testing
and expertise of the internal program design and code.We performed numerous
testing tasks during unit testing, such as the reflection of the unit data on the
database and its interface. Several sorts of bugs linked with the component
functional keys.Our software unit testing is concerned with stock units, opening
21
Test Scenarios
22
Figure 16: When Customer Has Not Paid Pending Amount
23
The project took some time, and I learnt a lot, including how the parent and child
models are associated in relational databases. I found that reducing the stock
quantity after a sale will result in an inaccurate profit report; instead, create a new
record for the transaction and display the profit in the view. I discovered that if the
validation guidelines are not followed, the buyer cannot buy the product. The
project was enjoyable even though it was challenging to construct the database
relationships.
24
CHAPTER NINE
CONCLUSION
management system for a small retail store can provide significant benefits
project) will give us more accurate record of sales and stock easily. Increasing
POS system, regular testing, proper deployments and carrying out regular
solution by manual processes the retail store can make superior decisions
based on real time time.Thus making the store more productive and
successful.
Project Limitation
In this project there are certain limitations. We were unable to meet all of our
when the project began. We hope these constraints are significant. Some of the
25
3.This software application can only generate rudimentary reports.
26
CHAPTER TEN
FUTURE ENHANCEMENTS
Some of the areas we can expand for betterment and effectiveness are given
below:
27
APPENDIX A
CODE
28
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_unicode_ci;
--
'2022-11-21 14:09:02'),
'2022-11-21 18:19:52'),
(3, 'Kyle Marsh', '+1 (371) 318-6403', 'Sunt dolor Quis pers', '2022-11-21
(4, 'Natalie Ellison', '+1 (262) 637-1224', 'Aut et hic est et co', '2022-11-21
(5, 'Amy Craig', '+1 (617) 876-8058', 'Veritatis et animi', '2022-11-21 18:20:42',
'2022-11-21 18:20:42'),
(6, 'Odessa Higgins', '+1 (837) 663-8249', 'Dolor eiusmod aut re', '2022-11-21
(7, 'Tiger Osborne', '+1 (205) 182-6075', 'Et est ipsa est dol', '2022-11-21
29
(8, 'Leonard Hodges', '+1 (939) 982-5623', 'Dolorem excepteur au', '2022-11-21
(9, 'Hadassah Wolf', '+1 (991) 167-7137', 'Quis quae voluptatem', '2022-11-21
(10, 'Aiko Burks', '+1 (124) 601-2458', 'Irure voluptatem har', '2022-11-21
(11, 'Charde Workman', '+1 (233) 808-3068', 'Deleniti dolorem arc', '2022-11-21
(12, 'Whoopi Rodriquez', '+1 (108) 444-7755', 'Debitis quidem persp', '2022-11-
(13, 'Lamar Golden', '+1 (915) 673-3816', 'Aperiam eveniet qui', '2022-11-21
(15, 'Justina Townsend', '+1 (895) 787-4702', 'Quia laboriosam qui', '2022-11-21
(16, 'Shaine Gardner', '+1 (282) 662-7428', 'Ipsa ut aperiam qui', '2022-11-21
(17, 'Flynn Emerson', '+1 (912) 592-8395', 'Nam repellendus Aut', '2022-11-21
30
(18, 'Quintessa Terry', '+1 (285) 814-8427', 'Possimus deleniti e', '2022-11-21
(20, 'Arthur Ellison', '+1 (657) 312-7287', 'Ut vero quas explica', '2022-11-21
(22, 'Jaden Garza', '+1 (281) 623-1939', 'Lorem consequatur e', '2022-11-21
(23, 'Germaine Cabrera', '+1 (905) 282-1211', 'Quo commodi voluptat', '2022-11-
(24, 'Ralph Tanner', '+1 (295) 983-9606', 'Dolor mollitia corru', '2022-11-21
(25, 'Fallon Tanner', '+1 (359) 565-8998', 'Magnam nulla omnis d', '2022-11-21
(26, 'Violet Daniels', '+1 (759) 873-3963', 'Qui perspiciatis iu', '2022-11-21
(27, 'Leonard Patel', '+1 (434) 643-5553', 'Dolore voluptate qui', '2022-11-21
31
(28, 'Kato Vaughan', '+1 (163) 788-1864', 'Anim ex veniam dese', '2022-11-21
(29, 'Aubrey Lopez', '+1 (776) 674-5685', 'Deserunt facere blan', '2022-11-21
(30, 'Brooke Baird', '+1 (977) 327-9312', 'Ea voluptatem est pe', '2022-11-21
-- ----------------------------------------------------------
-- --------------------------------------------------------
--
32
`id` bigint(20) UNSIGNED NOT NULL,
COLLATE=utf8mb4_unicode_ci;
--
--
33
(6, 1, 1, 1, 1, '2022-11-21 17:36:22', '2022-11-21 17:36:22'),
--
34
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
--
COLLATE=utf8mb4_unicode_ci;
--
35
--
(2, 'Cadiopulmonary bypas device', 1000, 1800, 20, 12, '2022-11-21 18:25:13',
'2022-11-21 18:25:13'),
(23, 'LASIK surgical machine', 1430, 3245, 25, 17, NULL, NULL),
(25, 'Consult 120 Urine analyzer', 1000, 4000, 16, 11, NULL, NULL),
(26, 'Urine reagent strips 10 parameter', 900, 1900, 60, 1, NULL, NULL),
(27, 'Consult Liquid urine control', 500, 999, 70, 20, NULL, NULL),
(28, 'Plastic urine containers, sterile or unsterile', 700, 1600, 45, 14, NULL,
NULL),
(30, 'Microscope slides and 1 coverslip', 2750, 4560, 4, 16, NULL, NULL),
36
(33, 'Blood gas analyzers', 2890, 3900, 9, 14, NULL, NULL),
-- ----------------------------------------------------------
COLLATE=utf8mb4_unicode_ci;
--
--
37
INSERT INTO `suppliers` (`id`, `name`, `address`, `created_at`, `updated_at`)
VALUES
18:16:48'),
18:16:52'),
18:16:56'),
18:17:00'),
18:17:03'),
18:17:06'),
(10, 'Nicholas Reeves', 'Sit unde placeat et', '2022-11-21 18:17:08', '2022-11-21
18:17:08'),
18:17:11'),
38
(12, 'Richard Mathis', 'Commodo molestiae na', '2022-11-21 18:17:13', '2022-11-
21 18:17:13'),
(13, 'Jeanette Barker', 'Aperiam ipsam quod e', '2022-11-21 18:17:16', '2022-11-
21 18:17:16'),
(14, 'Abel Schwartz', 'Aliquip aut aut sint', '2022-11-21 18:17:18', '2022-11-21
18:17:18'),
18:17:20'),
18:17:29'),
18:17:32'),
18:17:35'),
18:18:22');--
--
NULL,
COLLATE=utf8mb4_unicode_ci;
--
--
--
--
40
-- Indexes for table `migrations`
--
--
--
--
(`tokenable_type`,`tokenable_id`);--
41
--ALTER TABLE `stocks`
--
--
--
--
--
--
--
42
ALTER TABLE `customers`
AUTO_INCREMENT=32;
--
--
AUTO_INCREMENT=7;
--
--
AUTO_INCREMENT=12;
--
--
43
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
AUTO_INCREMENT=39;
--
--
AUTO_INCREMENT=22;
--
--
--
44
-- Constraints for table `orders`
UPDATE CASCADE,
--
--
CASCADE;
COMMIT;
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET
COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
45
REFERENCES
3/E0704030689.pdf
https://doi.org/10.26483/ijarcsse.2018.8207
194-199. https://doi.org/10.5121/ijcsmc.2019.8319
46