SlideShare uma empresa Scribd logo
1 de 71
Baixar para ler offline
Pinkle Makhijani
BCA Final Year
Visual Basic Project Report
A WORK REPORT SUBMITTED
IN PARTIAL FULLFILLMENT OF THE REQUIREMENT FOR THE DEGREE
Bachelor of Computer Application
Dezyne E´cole College
106/10, CIVIL LINES
AJMER
RAJASTHAN - 305001 (INDIA)
(FEBRUARY, 2018)
www.dezyneecole.com
SUBMITTED BY
PINKLE MAKHIJANI
BCA 3rd year
CONTENT
Acknowledgement……………………………………………………………………………………………………………4
Synopsis…………………………………………………………………………………………………………………………..5
Introduction Page of Student …………………………………………………………..……………………………..6
Chapter - 1 Introduction of Information Technology (IT) ………………………………………………….8
Chapter – 2 Introduction to Project ………………………………………………………………………………..11
Chapter – 3 Project & Their facilities ………………………………………………………………………………13
Chapter – 4 Project Design …………………………………………………………………………………………….14
Chapter – 5 Database Development……………………………………………………………………………….17
Chapter-6 System Requirement of PC…………………………………………………………………………….68
Chapter – 7 Conclusion ………………………………………………………………………………………………….69
Bibliography ………………………………………………………………………………………………………………….70
Acknowledgement
The satisfaction that accompanies that the successful completion of any task would be
incomplete without the mention of people whose ceaseless co-operation made it possible,
whose constant guidance and encouragement crown all efforts with success.
The project on Supermarket Billing System was developed in Visual Basic Language at
Dezyne E´cole College.
During the making of this project we have learnt a lot and we are extremely grateful and
remain indebted to our guide MR. Tarun Sharma for being a source of inspiration and for his
constant support in the design, implementation and evaluation of the project.
We are thankful to them for their constant constructive criticism and invaluable suggestions,
which benefited us a lot while developing the project on “Supermarket Billing System”.
He has been a constant source of inspiration and motivation for hard work. He has been very
co-operative throughout this project work.
Through this column, we express our warm thanks to him for their encouragement, co-
operation and consent without which we mightn’t be able to accomplish this project.
I cannot move on beloved without thank beloved Principal Mrs. Vinita Mathur for creating
the required academic environment which made my task appreciable.
We would like to thank the other faculty member also, at this occasion. Last but not the least,
we would like to thank our friends & family for support and encouragement they have given
us during the course of our work.
We also thanks our colleague Mr. Rakesh Bijawat who have helped in successful completion
of the project.
With due regards
Ms. Pinkle Makhijani
BCA 3rd Year
Synopsis
The project Supermarket Billing System gives us the facility to manage the supermarket
billing system. This application is helpful for staff or admin for billing of products and
managing products details. This application is access by only staff and admin. Members can’t
access it directly.
The project is very useful for those who want to know about Supermarket Billing System. This
application maintains the records related to Products, Employees, and Sales etc.
We can enter the details of new products or employees and retrieve the details of products
and employees available in the System. We can generate the bills for the customers. We can
also maintain the records of customers .In this project we can maintain the GST calculation of
every product. GST can be issued according to Govt. specified categories of all the products.
Total sales can also be maintain in this project. All necessary requirements for the
Supermarket Billing System has presented in this project.
Qualification School/Colleg
e
Board/University Year Percentage
BCA-3rd
Year Dezyne E’cole
College
M.D.S. University 2017-18 Pursuing
BCA-2nd
Year Dezyne E’cole
College
M.D.S. University 2016-17 78.22%
BCA-1st
Year Dezyne E’cole
College
M.D.S. University 2015-16 86.44%
12th
East Point Sr.
Sec. School
RBSE 2014-15 72.60%
10th
East Point Sr.
Sec. School
RBSE 2012-13 65.17%
Introduction Page of Student
Pinkle Makhijani
Professional Qualification:
Pursuing Bachelor Degree in Computer Application from Dezyne E’cole College, Ajmer
Affiliated from Maharshi Dayanand Saraswati University, I have mastered the basic
languages and created lot of projects during my study period to hone my skills.
Academic Record -
Technical Skill Set:
 Good knowledge of Languages like
C, C++, JAVA, Visual Basic 6.0, Java Script, HTML, CSS, SQL.
 Excellent knowledge of Microsoft Office.
 Knowledge of Web Design & Development.
 Other Skills Like:
Presentation Skill
Co-Curricular and Achievements:-
 Participated and presented project on “Money Transaction System” on C++
Language in the yearly Identity Exhibition, 2016 at Dezyne E´cole College.
 Participated and presented project on “Shut Down Application” on C
Language in the yearly Identity Exhibition, 2015 at Dezyne E´cole College.
 Awarded for Best Performance in Identity Exhibition 2016 in BCA 2nd
year.
 Awarded for Best Performance in Identity Exhibition 2015 in BCA 1st
year.
 Attended Government Skill Development Program at college PMKVY
(Pradhan Mantri Kaushal Vikas Yojana).
 Attended Government Skill Development Program at college NSDC
(National Skill Development Corporation).
Main Project Undertaken (During College Study):
 C Language Assignment :
This Project includes many C programs for e.g. String Diamond, Power Calculator, Armstrong Calculator,
Prime Number Calculator, Perfect Number Calculator, Student Mark sheet Printer, Palindrome Calculator,
etc.
 C++ Language Assignment :
This Project includes many C++ programs for e.g. ATM Machine System,Sorting of Array, Human to
Machine , Palendrome Calculator etc.
 C++ Language Assignment :
This Project includes manage transaction of Money and Users Account like Deposit, Withdrawal, Transfer,
Mini Statement, User Account Information etc. and it has two parts that 1 for Exist User and 2 for Create
New User. This project is useful to manage Multiple Users Bank Account and their transactions.
 Java Language Assignment :
This Project includes Wrapper class description which is created in MS-Word.
Declaration:
I hereby declare that particulars given here are true and complete to the best of my knowledge and belief.
Chapter – 1 Introduction of Information Technology (IT)
Information Technology –
Set of tools, processes, and methodologies (such as coding, programming, data
communication, data conversion, storage & retrieval, system analysis & design, system
control) and associated equipment employee to collect process and present information. In
broad terms, it also includes office automation, multimedia and Tele – communication.
Information Technology, a source we call the “computer”, that can show you what
information via Tele-portal, scoping, working calibration for transmitting throughout the
world.
More commonly known as I.T. is the most popular career and the fastest growing
industry in the world. There are several success stories about people who choose this field for
a career and are now on top of their game.
Few reasons for why people choose IT -
 Low cost of education
The biggest advantage of choosing information technology for a career is that
it has very low cost of education as compared to many other career choices.
You don’t need degree to become an I.T. professional. Instead, you can get
quick training to be certified in specific areas of information technology. This
way you save huge amounts of money that you may have otherwise spent on
years of college tuition.
 Fastest changing industry
The information technology industry operates at a speed much faster than any
other industry and for this reason, there’s always a significant demand for
highly skilled workers with the innovations in cloud computing, big data and
cyber security an aspiring I.T. professional has many avenues to pursue and
grow from and I.T. professional never stops learning, and must always stay on
top of the latest technology trend in order to be successful in the field. The
more training and knowledge the I.T. professional has the more employable
he or she will be.
 Better income
It is well known fact that information technology professionals are paid well,
compared to other professionals. An I.T. professional with the right mix of
certifications & experience can find a permanent position in either the public
or private sector. Recently many companies have been extensively hiring
experts in cloud computing, cyber security and network security to help
enhance their current systems.
Bachelor of Computer Application
BCA is a part of information technology. In this age of computers and everything
being digitalized, knowledge about machines is very important. It helps the person have a
distinct advantage over the others who do not have a degree in computer applications. The
domain is growing a rapid pace. In the 1990’s with the advent of globalization computers
grew in prominence and slowly started to replace the paper and files in offices. It brought
down the cost to quite an exist.
BCA is a three year undergraduate degree course. Students will be taught subjects
which are related to the technological applications that are requires in today’s practical work
field.
1. Skills to be learnt –
Students who study for a bachelor of computer application (BCA) will get skills
and information not only about computer and information technology but also
in communication, organization and management.
One also get to learn programming languages such as C, C++, JAVA,
JavaScript, HTML&CSS, SQL, FoxPro etc.
2. Career opportunities –
BCA given a number of opportunities to individuals to go ahead and shine in
their lives. The opportunities available for people doing BCA are galore. A few
of them like software programmer, system and network administrator, web
designer, faculty for computer science / communication technology etc. the
range of chances in information technology are immense.
According to our MDS University we have learnt many theory & practical subjects –
 First Year
o Management and accounting
o Computer fundamental
o PC software
o Fundamentals of C Programming
o Data structure and algorithm
o Multimedia Basic
 Second year
o Communication skills
o Database management system
o Client server technology
o Java Programming
o C++ Programming
o Computer Graphics
 Third year
o Visual Basic Programming
o Relational database management system (ORACLE / SQL)
o E - Commerce
o Computer Network and Mobile Computing
o Internet tools & website development (JavaScript, ASP)
o Management Information System
Chapter – 2 Introduction to Project
The project is Supermarket Billing System software for monitoring and controlling the
transactions in a supermarket.
The project Supermarket Billing System is developed on visual basic language which
mainly focuses on basic operation in a supermarket like – adding new employee, adding new
products, updating information of employee, searching products and employees and facility
to generate bills of customers and calculate total sales amount of the supermarket.
Supermarket Billing System is a windows application designed to help staff or admin
to maintain & organize supermarket system. Our application is easy to use for both beginners
& advanced users. It features a familiar and well thought – out, an attractive user interface,
combined with strong searching, insertion & deletion capabilities. It can also calculate GST
amount on every product.
The application Supermarket Billing system has four main module –
 Insertion, Deletion, Updation to database module – User friendly input screen.
 Extracting from the database module –Attractive output screen.
 Generate bill module – generate bill of purchased products.
 Search facility system Module – Search for products and employees.
Many Supermarkets use this type of billing system for make their work easy. It is also
improved according to requirements of sellers and users. In this Billing System we can
maintain the security feature also.
Why it is made –
The main objective of this project is to provide a friendly environment to maintain the
details of products and employees and generate bill for customers. The main purpose of this
project is replace the manually work.
What Language –
Visual Basic 6.0 Language
Visual basic (VB) is a 3rdgeneration event-driven programming language developed by
Microsoft for their operating system windows. Visual basic is a widely understood high level
programming language, written using simple English. Like – words & syntax.
It is an interpreted language. Code can be run immediately after being written. Having
an interpreter makes its simpler to use, as there is no need for the computer to compile the
code, possibly finding errors to fix, before the compiled version can be run. Once the code is
working, it can be compiled into an .exe file so that it will run on all modern windows
computers, whether VB is installed or not. The language allows a beginning programmer to
produce professional – looking windows applications, as its include drawing tools to create
normal windows and structures which allow programs to be adapted for use with the internet.
VB will not run on operating systems other than windows.
Visual Basic has its origin in basic which was developed round about the year 1960,
when high level languages were just being introduced to the computer community. Microsoft
has made it extremely powerful by gearing all its good features to the windows environment.
Evaluation of Visual Basic –
VB 1.0 was introduced in 1991. The drag and drop design for creating the user
interface is derived from prototype from generator developed by Allan cooper and his
company called Tripod. Microsoft contracted with cooper and his associates to develop
Tripod into a programmable form system for windows 3.0, under the code name Ruby (no
relation to the Ruby programming language). Tripod did not include a programming language
at all. Microsoft decided to combine Ruby with the basic language to create Visual Basic.
Need of Visual Basic –
Visual Basic is easy to learn programming language. With Visual Basic you can develop
windows based applications and Games. Visual Basic is much easier to learn than others
language (like Visual C++), and yet it’s powerful programming language. Visual Basic suite
more for desktop application developing than for Games developing. You can create
sophisticated games using Visual Basic, Visual Basic will be probably powerful enough to suite
all your application and games programming needs.
Integrated Development Environment –
The working environment in VB is often referred to as the Integrated Development
Environment or IDE, because it integrates many different functions such as design, editing,
compiling and debugging within a common environment. Since all our projects are
developed only in the IDE.
Chapter – 3 Project & Their Facilities
Supermarket Billing System is a project which aims in developing a computerized system to
maintain all the daily work of supermarket. This project has many features which are like –
Admin log or Employee login. It has also a feature of GST calculation of every product. We can
easily add new products and add new employees in the database. It has secured database
and admin and employee can only login with a unique ID and a password.
Overall this project is ours is being developed to help in any supermarket to maintain
the billing facility in the best way possible and also reduce the human efforts.
Here is a list of some features which are in provided in this application –
 Keep records of employees and products with Unique ID of every employee.
 Easily generate GST calculations on bills.
 Accurate data in the database.
 Easy way to Log-In and Log-Out.
 Bill generation of every customer on their mobile no.
 Add data of customers in the database for future use.
 No need to invest heavily on hardware.
Objective of Supermarket Billing System –
1. Automation –The application automates each and every activity of the manual system
and increases its throughput. Thus the response time of the system is very less and it
works very fast.
2. Accuracy – The application provides the user a quick response with very accurate
information regarding the bill calculation and customer detail etc. any details or system
in an accurate manner, as when required.
3. User Friendly – The application Supermarket Billing System has a very user friendly
interface. Thus the users will full very easy to work on it. The application provides accuracy
along with a pleasant interface. Make the present manual system more interactive,
speedy and user friendly.
4. Availability – All the Billing details stored permanently in the database admin can see the
data, whatever needed.
5. Maintain Cost – Reduce the cost of maintenance. It is standalone application so no
required of cost for maintain it.
Chapter – 4 Project Design
The project design process is not a step by step. But still much of design work depends on
knowledge and experience of the designs, when we start working on project design, we will
face different types of problems. However, following considerations should be kept in mind
during the project design phase:
Design Objectives –
The primary objective of the design of course, is to deliver the requirements as
specified already. In general the following design objectives kept in mind.
Practically –
The system must be stable and can be operated by people with average.
Efficiency –
This involves accuracy, timeliness, and comprehensiveness to the system output.
Cost –
It is desirable to aim for a system with a minimum cost subject to the condition that
it must satisfy all requirements & maintain maintenance.
Flexibility –
The system should be modifiable depending on the changing needs if the user. It
should also be portable to different computer system but not other than Windows OS.
Security –
This is very important aspect of the design and should cover areas of hardware
reliability, fall back procedures, physical security if the data. System design involves first
logical design and then physical construction of the system.
Major Project Design Activities –
Several development activities are carried out during structured design. They are
database design, implementation planning, and system interface.
Design Process –
The system design process is an exercise of specifying how, the system will work. It is
an interactive process which is based on what the system will be do as shown in the report.
Mainly following two parts have been included in the system design process.
1. Output Design –
The starting point of the design process is the proper knowledge of system
requirements which will normally be converted on terms of output.
2. Input Design –
Once the output requirements have been finalized the next step in to find out
what data need to be made available to the system to procedure the desired
outputs.
Data Flow Diagrams of Supermarket Billing System:
 DFD Level 0
 DFD Level 1
+
 DFD Level 2
Admin /
Employee
Request
Response
Admin /
Employee
Supermarket Billing
System Database
Request Request
Response Response
Admin /
Employee
Supermarket Billing
System
Database
Interaction Store in MS Access
Supermarket
Billing System
 DFD Level 3
 DFD Level 4


Admin Supermarket Billing
System
Employee
Employee details Product details Sales details Customer details
Add new, Update, Search, and Remove Sales between
Admin Supermarket Billing
System
Employee
Bill Generation Today’s Sales
Chapter – 5 Database Development
This activity deals with the design of the physical database. A key is to determine how the
access path art to be implemented.
As a programmer, we are expected to design and develop any program that works
correctly efficiently and the time is easy to be used by every person, who may or may not be
well versed with computer and its capabilities.
The project is based on the Supermarket Billing System, Being the Information System it
requires extensive use of some Database Management System to store, manipulate & handle
the huge and complex record. In DBMS we can act various attributes with the database like
editing the records, modifications, deletions of the records, view the records in various
formats, listing the database etc.
MS Access –
Microsoft Access is an office product that allows the user to create relational
databases that have tables of data. MS Access stores data in its own format based on the
Access Jet Database Engine. It can also import or link directly to data stored in other
applications & databases. It’s an easy to use tool for quickly creating browser based database
applications.
In very simple term, MS Access is an Information Management tool that helps you
store information for reference, reporting & analysis.
Microsoft Access helps you analyze large amount of information, and manage related
data more efficient than MS Excel or other spreadsheet applications.
In our project we create 12 tables in MS Access-
 Admin
 Employee Details
 Bill Details
 Bill Number
 City
 Customer Details
 GST
 Product Category
 Product Details
 Product Type
 Recover Employee Details
All Forms and Coding of our project:
 Splash Screen
Dim a As Variant
Dim b As Variant
Private Sub Form_Load()
Form1.Left = (Screen.Width - Screen.Width / 2) - (Form1.Width / 2)
Form1.Top = (Screen.Height - Screen.Height / 2) - (Form1.Height / 2)
Timer1.Enabled = True
Form1.BackColor = RGB(247, 204, 120)
a = 1
b = 0
Image1.Picture = LoadPicture("..billingimages2.jpg")
Image2.Picture = LoadPicture("..billingimageslogo1.jpg")
Label1.BackColor = RGB(255, 253, 251)
Label2.Visible = False
Label3.Visible = False
Label4.Visible = False
Shape1.FillColor = RGB(30, 99, 213)
Shape2.FillColor = RGB(30, 99, 213)
Shape3.FillColor = RGB(30, 99, 213)
Shape4.FillColor = RGB(30, 99, 213)
Shape5.FillColor = RGB(30, 99, 213)
Shape6.FillColor = RGB(30, 99, 213)
End Sub
Private Sub Timer1_Timer()
If b = 1 Then
Label2.Visible = True
ElseIf b = 2 Then
Label3.Visible = True
Label2.Visible = False
ElseIf b = 3 Then
Label4.Visible = True
Label3.Visible = False
Form2.Show
Form1.Hide
Timer1.Enabled = False
End If
If a = 1 Then
Shape1.Visible = True
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = False
Shape5.Visible = False
Shape6.Visible = False
a = a + 1
ElseIf a = 2 Then
Shape1.Visible = False
Shape2.Visible = True
Shape3.Visible = False
Shape4.Visible = False
Shape5.Visible = False
Shape6.Visible = False
a = a + 1
ElseIf a = 3 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = True
Shape4.Visible = False
Shape5.Visible = False
Shape6.Visible = False
a = a + 1
ElseIf a = 4 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = True
Shape5.Visible = False
Shape6.Visible = False
a = a + 1
ElseIf a = 5 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = False
Shape5.Visible = True
Shape6.Visible = False
a = a + 1
ElseIf a = 6 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = False
Shape5.Visible = False
Shape6.Visible = True
a = a + 1
ElseIf a = 7 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = False
Shape5.Visible = False
a = a + 1
ElseIf a = 8 Then
Shape1.Visible = True
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = False
Shape5.Visible = False
a = a + 1
ElseIf a = 9 Then
Shape1.Visible = False
Shape2.Visible = True
Shape3.Visible = False
Shape4.Visible = False
Shape5.Visible = False
a = a + 1
ElseIf a = 10 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = True
Shape4.Visible = False
Shape5.Visible = False
a = a + 1
ElseIf a = 11 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = True
Shape5.Visible = False
a = a + 1
ElseIf a = 12 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = False
Shape5.Visible = True
a = a + 1
ElseIf a = 13 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = False
a = a + 1
ElseIf a = 14 Then
Shape1.Visible = True
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = False
a = a + 1
ElseIf a = 15 Then
Shape1.Visible = False
Shape2.Visible = True
Shape3.Visible = False
Shape4.Visible = False
a = a + 1
ElseIf a = 16 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = True
Shape4.Visible = False
a = a + 1
ElseIf a = 17 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = True
a = a + 1
ElseIf a = 18 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
a = a + 1
ElseIf a = 19 Then
Shape1.Visible = True
Shape2.Visible = False
Shape3.Visible = False
a = a + 1
ElseIf a = 20 Then
Shape1.Visible = False
Shape2.Visible = True
Shape3.Visible = False
a = a + 1
ElseIf a = 21 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = True
a = a + 1
ElseIf a = 22 Then
Shape1.Visible = False
Shape2.Visible = False
a = a + 1
ElseIf a = 23 Then
Shape1.Visible = True
Shape2.Visible = False
a = a + 1
ElseIf a = 24 Then
Shape1.Visible = False
Shape2.Visible = True
a = a + 1
ElseIf a = 25 Then
Shape1.Visible = False
a = a + 1
ElseIf a = 26 Then
Shape1.Visible = True
a = a + 1
ElseIf a = 27 Then
Shape1.Visible = False
Shape2.Visible = False
Shape3.Visible = False
Shape4.Visible = False
Shape5.Visible = False
Shape6.Visible = False
a = a + 1
ElseIf a = 28 Then
b = b + 1
a = 1
End If
End Sub
 Login Page
 Administrator Login
 Administrative details
 Employee details
 Add employee
 View Employee
 Update Employee
 Remove Employee
 Recover Employee
 Product Details
 Add Products
Source Code
Private Sub Form_Load()
Form13.Left = (Screen.Width - Screen.Width / 2) - (Form13.Width / 2)
Form13.Top = (Screen.Height - Screen.Height / 2) - (Form13.Height / 2)
Frame1.BackColor = RGB(255, 230, 217)
Form13.BackColor = RGB(255, 230, 217)
Image3.Picture = LoadPicture("..billingimageslogo2.jpg")
Image2.Picture = LoadPicture("..billingimagesbutton3.jpg")
Image1.Picture = LoadPicture("..billingimagesbutton3.jpg")
Label15.Caption = Date
Call connect
pd.Close
pd.Open "select * from product_details"
If pd.RecordCount = 0 Then
auto = 2001#
Else
Do While Not pd.EOF
t = pd.Fields(0).Value
l = Len(t) - 1
a = Mid(t, 3, l)
If Val(a) > Val(auto) Then
auto = a
End If
pd.MoveNext
Loop
auto = auto + 1
End If
Label12.Caption = "pd" + LTrim(Str(auto))
pd.Close
pd.Open "select * from product_category"
If pd.RecordCount >= 1 Then
Form13.Combo1.Clear
Do While Not pd.EOF
Form13.Combo1.AddItem pd.Fields(0).Value
pd.MoveNext
Loop
Else
MsgBox ("No Category Found")
End If
pd.Close
pd.Open "select * from gst"
If pd.RecordCount >= 1 Then
Form13.Combo2.Clear
Do While Not pd.EOF
Form13.Combo2.AddItem pd.Fields(0).Value
pd.MoveNext
Loop
Else
MsgBox ("No Category Found")
End If
pd.Close
End Sub
Private Sub Text2_Change()
a = Val(Text6.Text * Text5.Text)
If Text1.Text <> "" Then
a = a - (a * Text1.Text / 100)
End If
Label9.Caption = a
End Sub
Private Sub Image1_Click()
Unload Me
Form7.Show
End Sub
Private Sub Image2_Click()
If Combo1.Text <> "" And Combo2.Text <> "" And Text1.Text <> "" And Text3.Text <> "" And Text4.Text <> "" And
Text5.Text <> "" Then
Call connect
pd.Close
pd.Open "select * from product_details"
pd.AddNew
pd.Fields(0).Value = Label12.Caption
pd.Fields(1).Value = Combo1.Text
pd.Fields(2).Value = Text3.Text
pd.Fields(3).Value = Text4.Text
pd.Fields(4).Value = Text5.Text
pd.Fields(5).Value = Text6.Text
If Text1.Text <> " " Then
pd.Fields(6).Value = Text1.Text
Else
pd.Fields(6).Value = "0"
End If
If Combo2.Text <> " " Then
pd.Fields(7).Value = Combo2.Text
End If
pd.Fields(8).Value = Label9.Caption
pd.Fields(9).Value = Date
pd.Update
pd.Close
MsgBox ("Product inserted")
Unload Me Form13.Show
Else
MsgBox ("Please fill all the fields")
End If
End Sub
Private Sub Label17_Click()
If Combo1.Text <> "" And Combo2.Text <> "" And Text1.Text <> "" And Text3.Text <> "" And Text4.Text <> "" And
Text5.Text <> "" Then
Call connect
pd.Close
pd.Open "select * from product_details"
pd.AddNew
pd.Fields(0).Value = Label12.Caption
pd.Fields(1).Value = Combo1.Text
pd.Fields(2).Value = Text3.Text
pd.Fields(3).Value = Text4.Text
pd.Fields(4).Value = Text5.Text
pd.Fields(5).Value = Text6.Text
If Text1.Text <> " " Then
pd.Fields(6).Value = Text1.Text
Else
pd.Fields(6).Value = "0"
End If
If Combo2.Text <> " " Then
pd.Fields(7).Value = Combo2.Text
End If
pd.Fields(8).Value = Label9.Caption
pd.Fields(9).Value = Date
pd.Update
pd.Close
MsgBox ("Product inserted")
Unload Me
 Update Products
 Search Products
Form13.Show
Else
MsgBox ("Please fill all the fields")
End If
End Sub
Private Sub Label19_Click()
Unload Me
Form7.Show
End Sub
Private Sub Timer1_Timer()
Label8.Caption = Time
End Sub
 Sales Details
 Customers Details
 Employee Login
 Employee Panel
 Bill Generation
Private Sub Combo2_Click()
Call connect
bill.Close
bill.Open "select * from product_details where pcategory='" & Combo2.Text & "'", con, adOpenKeyset,
adLockOptimistic
If bill.RecordCount >= 1 Then
Combo1.Clear
Do While Not bill.EOF
Combo1.AddItem bill.Fields(2).Value
bill.MoveNext
Loop
End If
bill.Close
End Sub
Private Sub Command1_Click()
If IsNumeric(Text5.Text) Then
If Val(Text5.Text) < Val(Label28.Caption) Then
MsgBox ("Please Enter Correct Amount")
Text5.Text = ""
Text5.SetFocus
Else
Label15.Caption = Val(Text5.Text - Label28.Caption)
End If
Else
MsgBox ("Please Enter Numeric Value Only")
Text5.Text = ""
Text5.SetFocus
End If
End Sub
Private Sub Command10_Click()
If ListView1.ListItems.Count >= 1 Then
If Text5.Text <> "" And Label15.Caption <> "" Then
Dim l As ListItem
gst0 = 0
taxableamt0 = 0
gst5 = 0
taxableamt5 = 0
gst9 = 0
taxableamt9 = 0
gst12 = 0
taxableamt12 = 0
gst18 = 0
taxableamt18 = 0
gst28 = 0
taxableamt28 = 0
totaltaxablerate = 0
gst = 0
totalamount = 0
tgstamt5 = 0
tgstamt9 = 0
tgstamt12 = 0
tgstamt18 = 0
tgstamt28 = 0
taxablerate5 = 0
taxablerate9 = 0
taxablerate12 = 0
taxablerate18 = 0
taxablerate28 = 0
taxableamtsum0 = 0
taxableamtsum5 = 0
taxableamtsum9 = 0
taxableamtsum12 = 0
taxableamtsum18 = 0
taxableamtsum28 = 0
gstamtsum5 = 0
gstamtsum9 = 0
gstamtsum12 = 0
gstamtsum18 = 0
gstamtsum28 = 0
For i = 1 To ListView1.ListItems.Count
Set l = ListView1.ListItems.Item(i)
r = Val(l.SubItems(2))
g = Val(l.SubItems(4))
q = Val(l.SubItems(3))
If (g = 0) Then
taxableamt0 = Val(r * q)
taxableamtsum0 = Val(taxableamtsum0 + taxableamt0)
ElseIf (g = 5) Then
gst5 = Val(r * g / Val(100 + g))
tgstamt5 = Val(gst5 * q)
taxablerate5 = Val(r - gst5)
taxableamt5 = Val(taxablerate5 * q)
taxableamtsum5 = Val(taxableamtsum5 + taxableamt5)
gstamtsum5 = Val(gstamtsum5 + tgstamt5)
ElseIf (g = 9) Then
gst9 = Val(r * g / Val(100 + g))
tgstamt9 = Val(gst9 * q)
taxablerate9 = Val(r - gst9)
taxableamt9 = Val(taxablerate9 * q)
taxableamtsum9 = Val(taxableamtsum9 + taxableamt9)
gstamtsum9 = Val(gstamtsum9 + tgstamt9)
ElseIf (g = 12) Then
gst12 = Val(r * g / Val(100 + g))
tgstamt12 = Val(gst12 * q)
taxablerate12 = Val(r - gst12)
taxableamt12 = Val(taxablerate12 * q)
taxableamtsum12 = Val(taxableamtsum12 + taxableamt12)
gstamtsum12 = Val(gstamtsum12 + tgstamt12)
ElseIf (g = 18) Then
gst18 = Val(r * g / Val(100 + g))
tgstamt18 = Val(gst18 * q)
taxablerate18 = Val(r - gst18)
taxableamt18 = Val(taxablerate18 * q)
taxableamtsum18 = Val(taxableamtsum18 + taxableamt18)
gstamtsum18 = Val(gstamtsum18 + tgstamt18)
ElseIf (g = 28) Then
gst28 = Val(r * g / Val(100 + g))
tgstamt28 = Val(gst28 * q)
taxablerate28 = Val(r - gst28)
taxableamt28 = Val(taxablerate28 * q)
taxableamtsum28 = Val(taxableamtsum28 + taxableamt28)
gstamtsum28 = Val(gstamtsum28 + tgstamt28)
End If
Next
gst = Val(gstamtsum5 + gstamtsum9 + gstamtsum12 + gstamtsum18 + gstamtsum28)
totaltaxablerate = Val(taxableamtsum0 + taxableamtsum5 + taxableamtsum9 + taxableamtsum12 +
taxableamtsum18 + taxableamtsum28)
totalamount = Val(gst + totaltaxablerate)
Label10.Caption = Format(totaltaxablerate, ".00")
Label23.Caption = Format(Val(gst / 2), ".00")
Label24.Caption = Format(Val(gst / 2), ".00")
Label26.Caption = Format(gst, ".00")
Label28.Caption = Round(totalamount)
MsgBox ("Your Total Amount is " + Label28.Caption)
t = MsgBox("Do you want to continue...", vbYesNo)
If (t = 6) Then
Form22.Show
Form20.Hide
End If
Else
MsgBox ("Please Enter Cash Amount and Click on Check")
End If
Else
MsgBox ("Please Choose Your Products")
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
bill.Close
ElseIf Combo1.Text = "" Or Combo2.Text = "" Or Text4.Text = "" Then
If Combo1.Text = "" Then
MsgBox "Please Choose Product Name"
ElseIf Combo2.Text = "" Then
MsgBox "Please Choose Product Category"
ElseIf Text4.Text = "" Then
MsgBox "Please Enter Quantity"
End If
End If
End Sub
Private Sub Command5_Click()
a = MsgBox("Do you want to remove item", vbYesNo)
If a = 6 Then
ListView1.ListItems.Remove (ListView1.SelectedItem.Index)
Command5.Enabled = False
End If
End Sub
Private Sub Command7_Click()
Dim l As ListItem
gst0 = 0
taxableamt0 = 0
gst5 = 0
taxableamt5 = 0
gst9 = 0
taxableamt9 = 0
gst12 = 0
taxableamt12 = 0
gst18 = 0
taxableamt18 = 0
gst28 = 0
taxableamt28 = 0
totaltaxablerate = 0
gst = 0
totalamount = 0
tgstamt5 = 0
tgstamt9 = 0
tgstamt12 = 0
tgstamt18 = 0
tgstamt28 = 0
taxablerate5 = 0
taxablerate9 = 0
taxablerate12 = 0
taxablerate18 = 0
taxablerate28 = 0
taxableamtsum0 = 0
taxableamtsum5 = 0
taxableamtsum9 = 0
taxableamtsum12 = 0
taxableamtsum18 = 0
taxableamtsum28 = 0
gstamtsum5 = 0
gstamtsum9 = 0
gstamtsum12 = 0
gstamtsum18 = 0
gstamtsum28 = 0
For i = 1 To ListView1.ListItems.Count
Set l = ListView1.ListItems.Item(i)
r = Val(l.SubItems(2))
g = Val(l.SubItems(4))
q = Val(l.SubItems(3))
If (g = 0) Then
taxableamt0 = Val(r * q)
taxableamtsum0 = Val(taxableamtsum0 + taxableamt0)
ElseIf (g = 5) Then
gst5 = Val(r * g / Val(100 + g))
tgstamt5 = Val(gst5 * q)
taxablerate5 = Val(r - gst5)
taxableamt5 = Val(taxablerate5 * q)
taxableamtsum5 = Val(taxableamtsum5 + taxableamt5)
gstamtsum5 = Val(gstamtsum5 + tgstamt5)
ElseIf (g = 9) Then
gst9 = Val(r * g / Val(100 + g))
tgstamt9 = Val(gst9 * q)
taxablerate9 = Val(r - gst9)
taxableamt9 = Val(taxablerate9 * q)
taxableamtsum9 = Val(taxableamtsum9 + taxableamt9)
gstamtsum9 = Val(gstamtsum9 + tgstamt9)
ElseIf (g = 12) Then
gst12 = Val(r * g / Val(100 + g))
tgstamt12 = Val(gst12 * q)
taxablerate12 = Val(r - gst12)
taxableamt12 = Val(taxablerate12 * q)
taxableamtsum12 = Val(taxableamtsum12 + taxableamt12)
gstamtsum12 = Val(gstamtsum12 + tgstamt12)
ElseIf (g = 18) Then
gst18 = Val(r * g / Val(100 + g))
tgstamt18 = Val(gst18 * q)
taxablerate18 = Val(r - gst18)
taxableamt18 = Val(taxablerate18 * q)
taxableamtsum18 = Val(taxableamtsum18 + taxableamt18)
gstamtsum18 = Val(gstamtsum18 + tgstamt18)
ElseIf (g = 28) Then
gst28 = Val(r * g / Val(100 + g))
tgstamt28 = Val(gst28 * q)
taxablerate28 = Val(r - gst28)
taxableamt28 = Val(taxablerate28 * q)
taxableamtsum28 = Val(taxableamtsum28 + taxableamt28)
gstamtsum28 = Val(gstamtsum28 + tgstamt28)
End If
Next
gst = Val(gstamtsum5 + gstamtsum9 + gstamtsum12 + gstamtsum18 + gstamtsum28)
totaltaxablerate = Val(taxableamtsum0 + taxableamtsum5 + taxableamtsum9 + taxableamtsum12 +
taxableamtsum18 + taxableamtsum28)
totalamount = Val(gst + totaltaxablerate)
Label10.Caption = Format(totaltaxablerate, ".00")
Label23.Caption = Format(Val(gst / 2), ".00")
Label24.Caption = Format(Val(gst / 2), ".00")
Label26.Caption = Format(gst, ".00")
Label28.Caption = Round(totalamount)
End Sub
Private Sub Command8_Click()
Form19.Show
Unload Me
End Sub
Private Sub Command9_Click()
Unload Me
Form20.Show
Form20.Label13.Caption = Form19.Label7.Caption
End Sub
Private Sub Form_Load()
Form20.Left = (Screen.Width - Screen.Width / 2) - (Form20.Width / 2)
Form20.Top = (Screen.Height - Screen.Height / 2) - (Form20.Height / 2)
Image3.Picture = LoadPicture("..billingimageslogo2.jpg")
Label3.Caption = Date
Form20.BackColor = RGB(255, 230, 217)
Frame2.BackColor = RGB(255, 230, 217)
Frame3.BackColor = RGB(255, 230, 217)
Call connect
bill.Close
bill.Open "select * from bill_details", con, adOpenKeyset, adLockOptimistic
If bill.RecordCount = 0 Then
auto = 1#
Else
Do While Not bill.EOF
If bill.Fields(0).Value > auto Then
auto = Val(bill.Fields(0).Value)
End If
bill.MoveNext
Loop
auto = auto + 1
End If
If Len(auto) = 1 Then
Label11.Caption = "000" + LTrim(Str(auto))
ElseIf Len(auto) = 2 Then
Label11.Caption = "00" + LTrim(Str(auto))
ElseIf Len(auto) = 3 Then
Label11.Caption = "0" + LTrim(Str(auto))
Else
Label11.Caption = auto
End If
bill.Close
bill.Open "select * from product_category"
If bill.RecordCount >= 1 Then
Combo2.Clear
Do While Not bill.EOF
Combo2.AddItem bill.Fields(0).Value
bill.MoveNext
Loop
Else
MsgBox ("No Category Found")
End If
bill.Close
End Sub
Private Sub ListView1_ItemClick(ByVal Item As ComctlLib.ListItem)
Command5.Enabled = True
End Sub
Private Sub Text1_Change()
If IsNumeric(Text1.Text) Or Text1.Text = "" Then
If Len(Text1.Text) = 10 Then
Call connect
bill.Close
bill.Open "select * from customer_details"
a = 0
If bill.RecordCount >= 0 Then
Do While Not bill.EOF
If bill.Fields(0).Value = Text1.Text Then
Text2.Text = bill.Fields(1).Value
a = a + 1
End If
bill.MoveNext
Loop
End If
If a = 0 Then
Command1.Enabled = True
End If
bill.Close
ElseIf Text1.Text = "" Then
Text2.Text = ""
ElseIf Len(Text1.Text) > 10 Then
MsgBox ("Invalid Mobile Number")
Text1.Text = ""
Text2.Text = ""
End If
Else
MsgBox ("Please Enter Numeric Value Only")
Text1.Text = ""
End If
End Sub
Private Sub Timer1_Timer()
Label5.Caption = Time
End Sub
 Customers Details
Private Sub Command4_Click()
Call connect
bill.Close
bill.Open "select * from bill_details where bill_no='" & Form20.Label11.Caption & "'", con, adOpenKeyset,
adLockOptimistic
Set DataReport1.DataSource = bill
DataReport1.Show
End Sub
Private Sub Form_Load()
Form22.Left = (Screen.Width - Screen.Width / 2) - (Form22.Width / 2)
Form22.Top = (Screen.Height - Screen.Height / 2) - (Form22.Height / 2)
Form22.BackColor = RGB(255, 230, 217)
Frame1.BackColor = RGB(255, 230, 217)
Image1.Picture = LoadPicture("..billingimagesbutton3.jpg")
Image2.Picture = LoadPicture("..billingimagesbutton3.jpg")
Image3.Picture = LoadPicture("..billingimageslogo2.jpg")
Image4.Picture = LoadPicture("..billingimagesbutton3.jpg")
Image5.Picture = LoadPicture("..billingimagesbutton3.jpg")
Label3.Caption = Date
End Sub
Private Sub Image1_Click()
Form21.Show
Form21.Text1.Text = Form22.Text1.Text
Form21.Text2.Text = Form22.Text2.Text
End Sub
Private Sub Image2_Click()
If Text2.Text <> "" Then
Call connect
bill.Close
bill.Open "select * from customer_details", con, adOpenKeyset, adLockOptimistic
bill.AddNew
bill.Fields(0).Value = Text1.Text
bill.Fields(1).Value = Text2.Text
bill.Update
bill.Close
MsgBox ("Data Added...")
Else
MsgBox ("Please fill the Text Field")
End If
End Sub
Private Sub Image4_Click()
Form20.Show
Unload Me
End Sub
Private Sub Image4_Click()
Form20.Show
Unload Me
End Sub
pd.Close
cb.Close
bill.Open "select * from bill_details", con, adOpenKeyset, adLockOptimistic
cb.Open "select * from billno", con, adOpenKeyset, adLockOptimistic
pd.Open "select * from product_details", con, adOpenKeyset, adLockOptimistic
Dim l As ListItem
cb.AddNew
cb.Fields(0).Value = Form20.Label11.Caption
cb.Fields(1).Value = Text1.Text
cb.Fields(2).Value = Text2.Text
cb.Fields(3).Value = Form20.Label13.Caption
cb.Fields(4).Value = Date
cb.Fields(5).Value = Time
cb.Update
cb.Close
For i = 1 To Form20.ListView1.ListItems.Count
pd.MoveFirst
Set l = Form20.ListView1.ListItems.Item(i)
bill.AddNew
bill.Fields(0).Value = Form20.Label11.Caption
bill.Fields(1).Value = l.Text
pid = Val(l.Text)
pqty = Val(l.SubItems(3))
Do While Not pd.EOF
If pd.Fields(0).Value = pid Then
If pd.Fields(4).Value >= pqty Then
pd.Fields(4).Value = Val(pd.Fields(4).Value - pqty)
pd.Update
Else
MsgBox ("Product not available")
End If
End If
pd.MoveNext
Loop
bill.Fields(2).Value = l.SubItems(1)
bill.Fields(3).Value = l.SubItems(2)
bill.Fields(4).Value = l.SubItems(3)
bill.Fields(5).Value = l.SubItems(4)
bill.Fields(6).Value = l.SubItems(5)
bill.Fields(7).Value = l.SubItems(6)
bill.Fields(8).Value = Date
bill.Fields(9).Value = Time
bill.Fields(10).Value = Form20.Label13.Caption
bill.Update
Next
bill.Close
pd.Close
bill.Open "select * from bill_details where bill_no='" & Form20.Label11.Caption & "'"
Set DataReport1.DataSource = bill
DataReport1.Sections("Section2").Controls("label3").Caption = Date 'date
DataReport1.Sections("Section2").Controls("label7").Caption = Form20.Label11.Caption 'bill no
DataReport1.Sections("Section2").Controls("label5").Caption = Time 'time
DataReport1.Sections("Section2").Controls("label9").Caption = Form20.Label13.Caption 'emp id
If bill.RecordCount >= 1 Then
a = 0
t = 0
q = 0
Do While Not bill.EOF
If bill.Fields(0).Value = Form20.Label11.Caption Then
a = a + 1
DataReport1.Sections("Section1").Controls("Text2").DataField = "p_name"
DataReport1.Sections("Section1").Controls("Text6").DataField = "p_gst"
DataReport1.Sections("Section1").Controls("Text3").DataField = "p_qty"
q = Val(q + bill.Fields(4).Value)
DataReport1.Sections("Section1").Controls("Text4").DataField = "p_rate"
DataReport1.Sections("Section1").Controls("Text5").DataField = "total_amount"
t = Val(t + bill.Fields(7).Value)
End If
bill.MoveNext
Loop
End If
DataReport1.Sections("Section5").Controls("label17").Caption = a
DataReport1.Sections("Section5").Controls("label19").Caption = q
DataReport1.Sections("Section5").Controls("label21").Caption = t
DataReport1.Sections("Section5").Controls("label35").Caption = taxableamt0 'taxable_amt0
DataReport1.Sections("Section5").Controls("label36").Caption = taxableamt5 'taxable_amt5
DataReport1.Sections("Section5").Controls("label37").Caption = taxableamt9 'taxable_amt9
DataReport1.Sections("Section5").Controls("label38").Caption = taxableamt12 'taxable_amt12
DataReport1.Sections("Section5").Controls("label39").Caption = taxableamt18 'taxable_amt18
DataReport1.Sections("Section5").Controls("label40").Caption = taxableamt28 'taxable_amt28
DataReport1.Sections("Section5").Controls("label41").Caption = 0 'cgst0
DataReport1.Sections("Section5").Controls("label42").Caption = Val(gstamtsum5 / 2) 'cgst5
DataReport1.Sections("Section5").Controls("label43").Caption = Val(gstamtsum9 / 2) 'cgst9
DataReport1.Sections("Section5").Controls("label44").Caption = Val(gstamtsum12 / 2) 'cgst12
DataReport1.Sections("Section5").Controls("label45").Caption = Val(gstamtsum18 / 2) 'cgst18
DataReport1.Sections("Section5").Controls("label46").Caption = Val(gstamtsum28 / 2) 'cgst28
DataReport1.Sections("Section5").Controls("label47").Caption = 0 'sgst0
DataReport1.Sections("Section5").Controls("label48").Caption = Val(gstamtsum5 / 2) 'sgst5
DataReport1.Sections("Section5").Controls("label49").Caption = Val(gstamtsum9 / 2) 'sgst9
DataReport1.Sections("Section5").Controls("label50").Caption = Val(gstamtsum12 / 2) 'sgst12
DataReport1.Sections("Section5").Controls("label51").Caption = Val(gstamtsum18 / 2) 'sgst18
DataReport1.Sections("Section5").Controls("label52").Caption = Val(gstamtsum28 / 2) 'sgst28
DataReport1.Sections("Section5").Controls("label60").Caption = Val(totaltaxablerate) 'totalamt
DataReport1.Sections("Section5").Controls("label61").Caption = Val(gst / 2) 'totalcgst
DataReport1.Sections("Section5").Controls("label62").Caption = Val(gst / 2) 'totalsgst
DataReport1.Sections("Section5").Controls("label63").Caption = Val(totalamount) 'totalamt
DataReport1.Sections("Section5").Controls("label65").Caption = Form20.Text5.Text 'cash recd.
DataReport1.Sections("Section5").Controls("label67").Caption = Form20.Label15.Caption 'change
DataReport1.Show
DataReport1.Left = (Screen.Width - Screen.Width / 2) - (DataReport1.Width / 2)
DataReport1.Top = (Screen.Height - Screen.Height / 2) - (DataReport1.Height / 2)
Form22.Hide
Form19.Show
Unload Form20
Unload Form22
Unload Form21
End Sub
Private Sub Label10_Click()
Call connect
bill.Close
pd.Close
cb.Close
bill.Open "select * from bill_details", con, adOpenKeyset, adLockOptimistic
cb.Open "select * from billno", con, adOpenKeyset, adLockOptimistic
pd.Open "select * from product_details", con, adOpenKeyset, adLockOptimistic
Dim l As ListItem
cb.AddNew
cb.Fields(0).Value = Form20.Label11.Caption
cb.Fields(1).Value = Text1.Text
cb.Fields(2).Value = Text2.Text
cb.Fields(3).Value = Form20.Label13.Caption
cb.Fields(4).Value = Date
cb.Fields(5).Value = Time
cb.Update
cb.Close
For i = 1 To Form20.ListView1.ListItems.Count
pd.MoveFirst
Set l = Form20.ListView1.ListItems.Item(i)
bill.AddNew
bill.Fields(0).Value = Form20.Label11.Caption
bill.Fields(1).Value = l.Text
pid = Val(l.Text)
pqty = Val(l.SubItems(3))
Do While Not pd.EOF
If pd.Fields(0).Value = pid Then
If pd.Fields(4).Value >= pqty Then
pd.Fields(4).Value = Val(pd.Fields(4).Value - pqty)
pd.Update
Else
MsgBox ("Product not available")
End If
End If
pd.MoveNext
Loop
bill.Fields(2).Value = l.SubItems(1)
bill.Fields(3).Value = l.SubItems(2)
bill.Fields(4).Value = l.SubItems(3)
bill.Fields(5).Value = l.SubItems(4)
bill.Fields(6).Value = l.SubItems(5)
bill.Fields(7).Value = l.SubItems(6)
bill.Fields(8).Value = Date
bill.Fields(9).Value = Time
bill.Fields(10).Value = Form20.Label13.Caption
bill.Update
Next
bill.Close
pd.Close
bill.Open "select * from bill_details where bill_no='" & Form20.Label11.Caption & "'"
Set DataReport1.DataSource = bill
DataReport1.Sections("Section2").Controls("label3").Caption = Date 'date
DataReport1.Sections("Section2").Controls("label7").Caption = Form20.Label11.Caption 'bill no
DataReport1.Sections("Section2").Controls("label5").Caption = Time 'time
DataReport1.Sections("Section2").Controls("label9").Caption = Form20.Label13.Caption 'emp id
If bill.RecordCount >= 1 Then
a = 0
t = 0
q = 0
Do While Not bill.EOF
If bill.Fields(0).Value = Form20.Label11.Caption Then
a = a + 1
DataReport1.Sections("Section1").Controls("Text2").DataField = "p_name"
DataReport1.Sections("Section1").Controls("Text6").DataField = "p_gst"
DataReport1.Sections("Section1").Controls("Text3").DataField = "p_qty"
q = Val(q + bill.Fields(4).Value)
DataReport1.Sections("Section1").Controls("Text4").DataField = "p_rate"
DataReport1.Sections("Section1").Controls("Text5").DataField = "total_amount"
t = Val(t + bill.Fields(7).Value)
End If
bill.MoveNext
Loop
End If
DataReport1.Sections("Section5").Controls("label17").Caption = a
DataReport1.Sections("Section5").Controls("label19").Caption = q
DataReport1.Sections("Section5").Controls("label21").Caption = t
DataReport1.Sections("Section5").Controls("label35").Caption = taxableamt0 'taxable_amt0
DataReport1.Sections("Section5").Controls("label36").Caption = taxableamt5 'taxable_amt5
DataReport1.Sections("Section5").Controls("label37").Caption = taxableamt9 'taxable_amt9
DataReport1.Sections("Section5").Controls("label38").Caption = taxableamt12 'taxable_amt12
DataReport1.Sections("Section5").Controls("label39").Caption = taxableamt18 'taxable_amt18
DataReport1.Sections("Section5").Controls("label40").Caption = taxableamt28 'taxable_amt28
DataReport1.Sections("Section5").Controls("label41").Caption = 0 'cgst0
DataReport1.Sections("Section5").Controls("label42").Caption = Val(gstamtsum5 / 2) 'cgst5
DataReport1.Sections("Section5").Controls("label43").Caption = Val(gstamtsum9 / 2) 'cgst9
DataReport1.Sections("Section5").Controls("label44").Caption = Val(gstamtsum12 / 2) 'cgst12
DataReport1.Sections("Section5").Controls("label45").Caption = Val(gstamtsum18 / 2) 'cgst18
DataReport1.Sections("Section5").Controls("label46").Caption = Val(gstamtsum28 / 2) 'cgst28
DataReport1.Sections("Section5").Controls("label47").Caption = 0 'sgst0
DataReport1.Sections("Section5").Controls("label48").Caption = Val(gstamtsum5 / 2) 'sgst5
DataReport1.Sections("Section5").Controls("label49").Caption = Val(gstamtsum9 / 2) 'sgst9
DataReport1.Sections("Section5").Controls("label50").Caption = Val(gstamtsum12 / 2) 'sgst12
DataReport1.Sections("Section5").Controls("label51").Caption = Val(gstamtsum18 / 2) 'sgst18
DataReport1.Sections("Section5").Controls("label52").Caption = Val(gstamtsum28 / 2) 'sgst28
DataReport1.Sections("Section5").Controls("label53").Caption = Val(taxableamt0 + 0) 'totalamt0
DataReport1.Sections("Section5").Controls("label54").Caption = Val(taxableamt5 + tgstamt5) 'totalamt5
DataReport1.Sections("Section5").Controls("label55").Caption = Val(taxableamt9 + tgstamt9) 'totalamt9
DataReport1.Sections("Section5").Controls("label56").Caption = Val(taxableamt12 + tgstamt12) 'totalamt12
DataReport1.Sections("Section5").Controls("label57").Caption = Val(taxableamt18 + tgstamt18) 'totalamt18
DataReport1.Sections("Section5").Controls("label58").Caption = Val(taxableamt28 + tgstamt28) 'totalamt28
DataReport1.Sections("Section5").Controls("label60").Caption = Val(totaltaxablerate) 'totalamt
DataReport1.Sections("Section5").Controls("label61").Caption = Val(gst / 2) 'totalcgst
DataReport1.Sections("Section5").Controls("label62").Caption = Val(gst / 2) 'totalsgst
DataReport1.Sections("Section5").Controls("label63").Caption = Val(totalamount) 'totalamt
DataReport1.Sections("Section5").Controls("label65").Caption = Form20.Text5.Text 'cash recd.
DataReport1.Sections("Section5").Controls("label67").Caption = Form20.Label15.Caption 'change
DataReport1.Show
DataReport1.Left = (Screen.Width - Screen.Width / 2) - (DataReport1.Width / 2)
DataReport1.Top = (Screen.Height - Screen.Height / 2) - (DataReport1.Height / 2)
Form22.Hide
Form19.Show
Unload Form20
Unload Form22
Unload Form21
End Sub
Private Sub Label19_Click()
Form21.Show
Form21.Text1.Text = Form22.Text1.Text
Form21.Text2.Text = Form22.Text2.Text
End Sub
Private Sub Label2_Click()
If Text2.Text <> "" Then
Call connect
bill.Close
bill.Open "select * from customer_details", con, adOpenKeyset, adLockOptimistic
bill.AddNew
bill.Fields(0).Value = Text1.Text
bill.Fields(1).Value = Text2.Text
bill.Update
bill.Close
MsgBox ("Data Added...")
Else
MsgBox ("Please fill the Text Field")
End If
End Sub
Private Sub Label7_Click()
Form20.Show
Unload Me
End Sub
Private Sub Text1_Change()
If IsNumeric(Text1.Text) Or Text1.Text = "" Then
If Len(Text1.Text) = 10 Then
Call connect
bill.Close
bill.Open "select * from customer_details"
a = 0
If bill.RecordCount >= 0 Then
Do While Not bill.EOF
If bill.Fields(0).Value = Text1.Text Then
Text2.Text = bill.Fields(1).Value
a = a + 1
End If
bill.MoveNext
Loop
End If
If a = 0 Then
Image2.Enabled = True
Label2.Enabled = True
Text2.Text = ""
End If
bill.Close
ElseIf Text1.Text = "" Then
Text2.Text = ""
Image2.Enabled = False
Label2.Enabled = False
ElseIf Len(Text1.Text) > 10 Then
MsgBox ("Invalid Mobile Number")
Image2.Enabled = False
Label2.Enabled = False
Text1.Text = ""
Text2.Text = ""
End If
Else
MsgBox ("Please Enter Numeric Value Only")
Text1.Text = ""
End If
End Sub
Private Sub Timer1_Timer()
Label5.Caption = Time
End Sub
 Invoice
Chapter – 6 System Requirements of PC
Processor Core 2 Dual / 4.3 more
RAM 1, 2 GB or more
HDD 500 GB / 1 TB or more
OS Window 7 or Later
Database MS Access 2003
Chapter – 7 Conclusion
After we have completed the project we are sure the problems in the existing system world
overcome. The “Supermarket Billing System” process made computerized to reduce human
errors & to increase the efficiency. The main focus of this project is to less human efforts. The
maintenance of the records is made efficient, as all the records are stored in the Access
Database, through which data can be retrieved easily. The navigation control is provided in
all the forms to navigate through the large amount of records. If the numbers of records are
very large than user has to just type in the search string & user gets the results immediately.
The editing is also made simples. The user has to just type in the required field & process the
update button to update the desired field.
The products & employees are given a particular unique id no. so that they can be access
correctly & without errors. Our main aim of the project is to get the correct bills and maintain
the data of the supermarket.
Bibliography
 www.google.com
 www.youtube.com
 www.stackoverflow.com
 VB Black Book (Author: Steven Holzner)
 MS Visual Basic 2010 step by step (Author: Michael Halverson)
 The Complete Reference Visual Basic 6 (Author: Noel Jerk)
 College Notes
Thank You…
PINKLE MAKHIJANI
Bachelor of Computer Application
Dezyne E´cole College
106/10, CIVIL LINES
AJMER
RAJASTHAN - 305001 (INDIA)
(FEBRUARY, 2018)
www.dezyneecole.com

Mais conteúdo relacionado

Mais procurados

Synopsis on Online examination system using php
Synopsis on Online examination system using phpSynopsis on Online examination system using php
Synopsis on Online examination system using phpArchana Jha
 
Software Requirement Specification on Online Purchasing System
Software Requirement Specification on Online Purchasing SystemSoftware Requirement Specification on Online Purchasing System
Software Requirement Specification on Online Purchasing Systemsabafarheen
 
Project Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptxProject Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptxAjayPatre1
 
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured ChartStock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chartgrandhiprasuna
 
Super marketbillingsystemproject
Super marketbillingsystemprojectSuper marketbillingsystemproject
Super marketbillingsystemprojectVickey Mahant
 
SRS for student database management system
SRS for student database management systemSRS for student database management system
SRS for student database management systemSuman Saurabh
 
Student database management system
Student database management systemStudent database management system
Student database management systemSnehal Raut
 
Android technical quiz app
Android technical quiz appAndroid technical quiz app
Android technical quiz appJagdeep Singh
 
Project final report
Project final reportProject final report
Project final reportALIN BABU
 
Computer science industrial training report carried out at web info net ltd ...
Computer science  industrial training report carried out at web info net ltd ...Computer science  industrial training report carried out at web info net ltd ...
Computer science industrial training report carried out at web info net ltd ...rashid muganga
 
SRS for Hospital Management System
SRS for Hospital Management SystemSRS for Hospital Management System
SRS for Hospital Management Systemkataria Arvind
 
Online Examination System Project report
Online Examination System Project report Online Examination System Project report
Online Examination System Project report SARASWATENDRA SINGH
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online StoreAhsan Rizwan
 
E billing and invoice system
E billing and invoice systemE billing and invoice system
E billing and invoice systemSurya Indira
 
Minor project Report for "Quiz Application"
Minor project Report for "Quiz Application"Minor project Report for "Quiz Application"
Minor project Report for "Quiz Application"Harsh Verma
 
Online vehicle service center management system project report
Online vehicle service center management system project reportOnline vehicle service center management system project report
Online vehicle service center management system project reportmehulgundaliya
 
Flipkart Software requirements specification SRS
Flipkart Software requirements specification SRSFlipkart Software requirements specification SRS
Flipkart Software requirements specification SRSAman Goel
 
Online ecommerce website srs
Online ecommerce  website srsOnline ecommerce  website srs
Online ecommerce website srsSM Nurnobi
 

Mais procurados (20)

Synopsis on Online examination system using php
Synopsis on Online examination system using phpSynopsis on Online examination system using php
Synopsis on Online examination system using php
 
Software Requirement Specification on Online Purchasing System
Software Requirement Specification on Online Purchasing SystemSoftware Requirement Specification on Online Purchasing System
Software Requirement Specification on Online Purchasing System
 
Project Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptxProject Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptx
 
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured ChartStock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
Stock Maintenance System-Problem Statement, SRS, ERD, DFD, Structured Chart
 
Super marketbillingsystemproject
Super marketbillingsystemprojectSuper marketbillingsystemproject
Super marketbillingsystemproject
 
SRS for student database management system
SRS for student database management systemSRS for student database management system
SRS for student database management system
 
grocery management system
grocery  management systemgrocery  management system
grocery management system
 
Student database management system
Student database management systemStudent database management system
Student database management system
 
Android technical quiz app
Android technical quiz appAndroid technical quiz app
Android technical quiz app
 
Project final report
Project final reportProject final report
Project final report
 
Computer science industrial training report carried out at web info net ltd ...
Computer science  industrial training report carried out at web info net ltd ...Computer science  industrial training report carried out at web info net ltd ...
Computer science industrial training report carried out at web info net ltd ...
 
SRS for Hospital Management System
SRS for Hospital Management SystemSRS for Hospital Management System
SRS for Hospital Management System
 
Online Examination System Project report
Online Examination System Project report Online Examination System Project report
Online Examination System Project report
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online Store
 
Online computer shop 111 35-181
Online computer shop 111 35-181Online computer shop 111 35-181
Online computer shop 111 35-181
 
E billing and invoice system
E billing and invoice systemE billing and invoice system
E billing and invoice system
 
Minor project Report for "Quiz Application"
Minor project Report for "Quiz Application"Minor project Report for "Quiz Application"
Minor project Report for "Quiz Application"
 
Online vehicle service center management system project report
Online vehicle service center management system project reportOnline vehicle service center management system project report
Online vehicle service center management system project report
 
Flipkart Software requirements specification SRS
Flipkart Software requirements specification SRSFlipkart Software requirements specification SRS
Flipkart Software requirements specification SRS
 
Online ecommerce website srs
Online ecommerce  website srsOnline ecommerce  website srs
Online ecommerce website srs
 

Semelhante a Pinkle makhijani supermarket billing system vb project

Bca Final Year VB Practical File
Bca Final Year VB Practical FileBca Final Year VB Practical File
Bca Final Year VB Practical FileRahul Saini
 
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics ProjectKirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics ProjectKirtesh Khandelwal
 
Demat account 1
Demat account 1Demat account 1
Demat account 1kammy virk
 
Harsh Mathur Final Year Project Report on Restaurant Billing System
Harsh  Mathur Final Year Project Report on Restaurant Billing SystemHarsh  Mathur Final Year Project Report on Restaurant Billing System
Harsh Mathur Final Year Project Report on Restaurant Billing SystemHarsh Mathur
 
Avadhoot_Mane_DotNet_Resume_2016
Avadhoot_Mane_DotNet_Resume_2016Avadhoot_Mane_DotNet_Resume_2016
Avadhoot_Mane_DotNet_Resume_2016Avadhoot Mane
 
Taxation project new
Taxation project newTaxation project new
Taxation project newIT
 
Industrial automation training in PCMC
Industrial automation training in PCMCIndustrial automation training in PCMC
Industrial automation training in PCMCJustengg1
 
Project Report Format for Final Year Engineering Students
Project Report Format for Final Year Engineering StudentsProject Report Format for Final Year Engineering Students
Project Report Format for Final Year Engineering Studentscutericha10
 
Ignou MCA mini project report
Ignou MCA mini project reportIgnou MCA mini project report
Ignou MCA mini project reportHitesh Jangid
 
BSc In Computer Science Colleges In Pune
BSc In Computer Science Colleges In PuneBSc In Computer Science Colleges In Pune
BSc In Computer Science Colleges In PuneDnyaneshwar Chaure
 
IRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education SystemIRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education SystemIRJET Journal
 
21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docxhariharan536808
 
21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docxhariharan536808
 
FINAL documentation (Rupai Bhadra)
FINAL documentation (Rupai Bhadra)FINAL documentation (Rupai Bhadra)
FINAL documentation (Rupai Bhadra)Rupai Bhadra
 
Bachelor of information technology
Bachelor of information technologyBachelor of information technology
Bachelor of information technologyviteduau
 
A Project Paper On Smart Gym Management System
A Project Paper On Smart Gym Management SystemA Project Paper On Smart Gym Management System
A Project Paper On Smart Gym Management SystemAmy Roman
 

Semelhante a Pinkle makhijani supermarket billing system vb project (20)

Bca Final Year VB Practical File
Bca Final Year VB Practical FileBca Final Year VB Practical File
Bca Final Year VB Practical File
 
Kirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics ProjectKirtesh Khandelwal Visual Basics Project
Kirtesh Khandelwal Visual Basics Project
 
Billing project
Billing projectBilling project
Billing project
 
Demat account 1
Demat account 1Demat account 1
Demat account 1
 
Harsh Mathur Final Year Project Report on Restaurant Billing System
Harsh  Mathur Final Year Project Report on Restaurant Billing SystemHarsh  Mathur Final Year Project Report on Restaurant Billing System
Harsh Mathur Final Year Project Report on Restaurant Billing System
 
Avadhoot_Mane_DotNet_Resume_2016
Avadhoot_Mane_DotNet_Resume_2016Avadhoot_Mane_DotNet_Resume_2016
Avadhoot_Mane_DotNet_Resume_2016
 
Mr. Paidisetti Prasant
Mr. Paidisetti PrasantMr. Paidisetti Prasant
Mr. Paidisetti Prasant
 
Taxation project new
Taxation project newTaxation project new
Taxation project new
 
Industrial automation training in PCMC
Industrial automation training in PCMCIndustrial automation training in PCMC
Industrial automation training in PCMC
 
Project Report Format for Final Year Engineering Students
Project Report Format for Final Year Engineering StudentsProject Report Format for Final Year Engineering Students
Project Report Format for Final Year Engineering Students
 
Ignou MCA mini project report
Ignou MCA mini project reportIgnou MCA mini project report
Ignou MCA mini project report
 
Sport.net(2).doc
Sport.net(2).docSport.net(2).doc
Sport.net(2).doc
 
BSc In Computer Science Colleges In Pune
BSc In Computer Science Colleges In PuneBSc In Computer Science Colleges In Pune
BSc In Computer Science Colleges In Pune
 
IRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education SystemIRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education System
 
21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx
 
21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx21BIT044_DOCUMENTATION (1).docx
21BIT044_DOCUMENTATION (1).docx
 
aravinthkumar resume
aravinthkumar resumearavinthkumar resume
aravinthkumar resume
 
FINAL documentation (Rupai Bhadra)
FINAL documentation (Rupai Bhadra)FINAL documentation (Rupai Bhadra)
FINAL documentation (Rupai Bhadra)
 
Bachelor of information technology
Bachelor of information technologyBachelor of information technology
Bachelor of information technology
 
A Project Paper On Smart Gym Management System
A Project Paper On Smart Gym Management SystemA Project Paper On Smart Gym Management System
A Project Paper On Smart Gym Management System
 

Último

Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfRTS corp
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLionel Briand
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITmanoharjgpsolutions
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxRTS corp
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdfAndrey Devyatkin
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorTier1 app
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptxVinzoCenzo
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Rob Geurden
 
Zer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfZer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfmaor17
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolsosttopstonverter
 
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxAndreas Kunz
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZABSYZ Inc
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencessuser9e7c64
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesKrzysztofKkol1
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonApplitools
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 

Último (20)

Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and Repair
 
Best Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh ITBest Angular 17 Classroom & Online training - Naresh IT
Best Angular 17 Classroom & Online training - Naresh IT
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryError
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptx
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...
 
Zer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdfZer0con 2024 final share short version.pdf
Zer0con 2024 final share short version.pdf
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration tools
 
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptxUI5ers live - Custom Controls wrapping 3rd-party libs.pptx
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
Salesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZSalesforce Implementation Services PPT By ABSYZ
Salesforce Implementation Services PPT By ABSYZ
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conference
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 

Pinkle makhijani supermarket billing system vb project

  • 2. Visual Basic Project Report A WORK REPORT SUBMITTED IN PARTIAL FULLFILLMENT OF THE REQUIREMENT FOR THE DEGREE Bachelor of Computer Application Dezyne E´cole College 106/10, CIVIL LINES AJMER RAJASTHAN - 305001 (INDIA) (FEBRUARY, 2018) www.dezyneecole.com SUBMITTED BY PINKLE MAKHIJANI BCA 3rd year
  • 3. CONTENT Acknowledgement……………………………………………………………………………………………………………4 Synopsis…………………………………………………………………………………………………………………………..5 Introduction Page of Student …………………………………………………………..……………………………..6 Chapter - 1 Introduction of Information Technology (IT) ………………………………………………….8 Chapter – 2 Introduction to Project ………………………………………………………………………………..11 Chapter – 3 Project & Their facilities ………………………………………………………………………………13 Chapter – 4 Project Design …………………………………………………………………………………………….14 Chapter – 5 Database Development……………………………………………………………………………….17 Chapter-6 System Requirement of PC…………………………………………………………………………….68 Chapter – 7 Conclusion ………………………………………………………………………………………………….69 Bibliography ………………………………………………………………………………………………………………….70
  • 4. Acknowledgement The satisfaction that accompanies that the successful completion of any task would be incomplete without the mention of people whose ceaseless co-operation made it possible, whose constant guidance and encouragement crown all efforts with success. The project on Supermarket Billing System was developed in Visual Basic Language at Dezyne E´cole College. During the making of this project we have learnt a lot and we are extremely grateful and remain indebted to our guide MR. Tarun Sharma for being a source of inspiration and for his constant support in the design, implementation and evaluation of the project. We are thankful to them for their constant constructive criticism and invaluable suggestions, which benefited us a lot while developing the project on “Supermarket Billing System”. He has been a constant source of inspiration and motivation for hard work. He has been very co-operative throughout this project work. Through this column, we express our warm thanks to him for their encouragement, co- operation and consent without which we mightn’t be able to accomplish this project. I cannot move on beloved without thank beloved Principal Mrs. Vinita Mathur for creating the required academic environment which made my task appreciable. We would like to thank the other faculty member also, at this occasion. Last but not the least, we would like to thank our friends & family for support and encouragement they have given us during the course of our work. We also thanks our colleague Mr. Rakesh Bijawat who have helped in successful completion of the project. With due regards Ms. Pinkle Makhijani BCA 3rd Year
  • 5. Synopsis The project Supermarket Billing System gives us the facility to manage the supermarket billing system. This application is helpful for staff or admin for billing of products and managing products details. This application is access by only staff and admin. Members can’t access it directly. The project is very useful for those who want to know about Supermarket Billing System. This application maintains the records related to Products, Employees, and Sales etc. We can enter the details of new products or employees and retrieve the details of products and employees available in the System. We can generate the bills for the customers. We can also maintain the records of customers .In this project we can maintain the GST calculation of every product. GST can be issued according to Govt. specified categories of all the products. Total sales can also be maintain in this project. All necessary requirements for the Supermarket Billing System has presented in this project.
  • 6. Qualification School/Colleg e Board/University Year Percentage BCA-3rd Year Dezyne E’cole College M.D.S. University 2017-18 Pursuing BCA-2nd Year Dezyne E’cole College M.D.S. University 2016-17 78.22% BCA-1st Year Dezyne E’cole College M.D.S. University 2015-16 86.44% 12th East Point Sr. Sec. School RBSE 2014-15 72.60% 10th East Point Sr. Sec. School RBSE 2012-13 65.17% Introduction Page of Student Pinkle Makhijani Professional Qualification: Pursuing Bachelor Degree in Computer Application from Dezyne E’cole College, Ajmer Affiliated from Maharshi Dayanand Saraswati University, I have mastered the basic languages and created lot of projects during my study period to hone my skills. Academic Record - Technical Skill Set:  Good knowledge of Languages like C, C++, JAVA, Visual Basic 6.0, Java Script, HTML, CSS, SQL.  Excellent knowledge of Microsoft Office.  Knowledge of Web Design & Development.  Other Skills Like: Presentation Skill Co-Curricular and Achievements:-  Participated and presented project on “Money Transaction System” on C++ Language in the yearly Identity Exhibition, 2016 at Dezyne E´cole College.  Participated and presented project on “Shut Down Application” on C Language in the yearly Identity Exhibition, 2015 at Dezyne E´cole College.  Awarded for Best Performance in Identity Exhibition 2016 in BCA 2nd year.  Awarded for Best Performance in Identity Exhibition 2015 in BCA 1st year.  Attended Government Skill Development Program at college PMKVY (Pradhan Mantri Kaushal Vikas Yojana).  Attended Government Skill Development Program at college NSDC (National Skill Development Corporation).
  • 7. Main Project Undertaken (During College Study):  C Language Assignment : This Project includes many C programs for e.g. String Diamond, Power Calculator, Armstrong Calculator, Prime Number Calculator, Perfect Number Calculator, Student Mark sheet Printer, Palindrome Calculator, etc.  C++ Language Assignment : This Project includes many C++ programs for e.g. ATM Machine System,Sorting of Array, Human to Machine , Palendrome Calculator etc.  C++ Language Assignment : This Project includes manage transaction of Money and Users Account like Deposit, Withdrawal, Transfer, Mini Statement, User Account Information etc. and it has two parts that 1 for Exist User and 2 for Create New User. This project is useful to manage Multiple Users Bank Account and their transactions.  Java Language Assignment : This Project includes Wrapper class description which is created in MS-Word. Declaration: I hereby declare that particulars given here are true and complete to the best of my knowledge and belief.
  • 8. Chapter – 1 Introduction of Information Technology (IT) Information Technology – Set of tools, processes, and methodologies (such as coding, programming, data communication, data conversion, storage & retrieval, system analysis & design, system control) and associated equipment employee to collect process and present information. In broad terms, it also includes office automation, multimedia and Tele – communication. Information Technology, a source we call the “computer”, that can show you what information via Tele-portal, scoping, working calibration for transmitting throughout the world. More commonly known as I.T. is the most popular career and the fastest growing industry in the world. There are several success stories about people who choose this field for a career and are now on top of their game. Few reasons for why people choose IT -  Low cost of education The biggest advantage of choosing information technology for a career is that it has very low cost of education as compared to many other career choices. You don’t need degree to become an I.T. professional. Instead, you can get quick training to be certified in specific areas of information technology. This way you save huge amounts of money that you may have otherwise spent on years of college tuition.  Fastest changing industry The information technology industry operates at a speed much faster than any other industry and for this reason, there’s always a significant demand for highly skilled workers with the innovations in cloud computing, big data and cyber security an aspiring I.T. professional has many avenues to pursue and grow from and I.T. professional never stops learning, and must always stay on top of the latest technology trend in order to be successful in the field. The more training and knowledge the I.T. professional has the more employable he or she will be.  Better income It is well known fact that information technology professionals are paid well, compared to other professionals. An I.T. professional with the right mix of certifications & experience can find a permanent position in either the public or private sector. Recently many companies have been extensively hiring experts in cloud computing, cyber security and network security to help enhance their current systems.
  • 9. Bachelor of Computer Application BCA is a part of information technology. In this age of computers and everything being digitalized, knowledge about machines is very important. It helps the person have a distinct advantage over the others who do not have a degree in computer applications. The domain is growing a rapid pace. In the 1990’s with the advent of globalization computers grew in prominence and slowly started to replace the paper and files in offices. It brought down the cost to quite an exist. BCA is a three year undergraduate degree course. Students will be taught subjects which are related to the technological applications that are requires in today’s practical work field. 1. Skills to be learnt – Students who study for a bachelor of computer application (BCA) will get skills and information not only about computer and information technology but also in communication, organization and management. One also get to learn programming languages such as C, C++, JAVA, JavaScript, HTML&CSS, SQL, FoxPro etc. 2. Career opportunities – BCA given a number of opportunities to individuals to go ahead and shine in their lives. The opportunities available for people doing BCA are galore. A few of them like software programmer, system and network administrator, web designer, faculty for computer science / communication technology etc. the range of chances in information technology are immense. According to our MDS University we have learnt many theory & practical subjects –  First Year o Management and accounting o Computer fundamental o PC software o Fundamentals of C Programming o Data structure and algorithm o Multimedia Basic  Second year o Communication skills o Database management system o Client server technology o Java Programming o C++ Programming o Computer Graphics  Third year o Visual Basic Programming
  • 10. o Relational database management system (ORACLE / SQL) o E - Commerce o Computer Network and Mobile Computing o Internet tools & website development (JavaScript, ASP) o Management Information System
  • 11. Chapter – 2 Introduction to Project The project is Supermarket Billing System software for monitoring and controlling the transactions in a supermarket. The project Supermarket Billing System is developed on visual basic language which mainly focuses on basic operation in a supermarket like – adding new employee, adding new products, updating information of employee, searching products and employees and facility to generate bills of customers and calculate total sales amount of the supermarket. Supermarket Billing System is a windows application designed to help staff or admin to maintain & organize supermarket system. Our application is easy to use for both beginners & advanced users. It features a familiar and well thought – out, an attractive user interface, combined with strong searching, insertion & deletion capabilities. It can also calculate GST amount on every product. The application Supermarket Billing system has four main module –  Insertion, Deletion, Updation to database module – User friendly input screen.  Extracting from the database module –Attractive output screen.  Generate bill module – generate bill of purchased products.  Search facility system Module – Search for products and employees. Many Supermarkets use this type of billing system for make their work easy. It is also improved according to requirements of sellers and users. In this Billing System we can maintain the security feature also. Why it is made – The main objective of this project is to provide a friendly environment to maintain the details of products and employees and generate bill for customers. The main purpose of this project is replace the manually work. What Language – Visual Basic 6.0 Language Visual basic (VB) is a 3rdgeneration event-driven programming language developed by Microsoft for their operating system windows. Visual basic is a widely understood high level programming language, written using simple English. Like – words & syntax. It is an interpreted language. Code can be run immediately after being written. Having an interpreter makes its simpler to use, as there is no need for the computer to compile the code, possibly finding errors to fix, before the compiled version can be run. Once the code is working, it can be compiled into an .exe file so that it will run on all modern windows computers, whether VB is installed or not. The language allows a beginning programmer to produce professional – looking windows applications, as its include drawing tools to create
  • 12. normal windows and structures which allow programs to be adapted for use with the internet. VB will not run on operating systems other than windows. Visual Basic has its origin in basic which was developed round about the year 1960, when high level languages were just being introduced to the computer community. Microsoft has made it extremely powerful by gearing all its good features to the windows environment. Evaluation of Visual Basic – VB 1.0 was introduced in 1991. The drag and drop design for creating the user interface is derived from prototype from generator developed by Allan cooper and his company called Tripod. Microsoft contracted with cooper and his associates to develop Tripod into a programmable form system for windows 3.0, under the code name Ruby (no relation to the Ruby programming language). Tripod did not include a programming language at all. Microsoft decided to combine Ruby with the basic language to create Visual Basic. Need of Visual Basic – Visual Basic is easy to learn programming language. With Visual Basic you can develop windows based applications and Games. Visual Basic is much easier to learn than others language (like Visual C++), and yet it’s powerful programming language. Visual Basic suite more for desktop application developing than for Games developing. You can create sophisticated games using Visual Basic, Visual Basic will be probably powerful enough to suite all your application and games programming needs. Integrated Development Environment – The working environment in VB is often referred to as the Integrated Development Environment or IDE, because it integrates many different functions such as design, editing, compiling and debugging within a common environment. Since all our projects are developed only in the IDE.
  • 13. Chapter – 3 Project & Their Facilities Supermarket Billing System is a project which aims in developing a computerized system to maintain all the daily work of supermarket. This project has many features which are like – Admin log or Employee login. It has also a feature of GST calculation of every product. We can easily add new products and add new employees in the database. It has secured database and admin and employee can only login with a unique ID and a password. Overall this project is ours is being developed to help in any supermarket to maintain the billing facility in the best way possible and also reduce the human efforts. Here is a list of some features which are in provided in this application –  Keep records of employees and products with Unique ID of every employee.  Easily generate GST calculations on bills.  Accurate data in the database.  Easy way to Log-In and Log-Out.  Bill generation of every customer on their mobile no.  Add data of customers in the database for future use.  No need to invest heavily on hardware. Objective of Supermarket Billing System – 1. Automation –The application automates each and every activity of the manual system and increases its throughput. Thus the response time of the system is very less and it works very fast. 2. Accuracy – The application provides the user a quick response with very accurate information regarding the bill calculation and customer detail etc. any details or system in an accurate manner, as when required. 3. User Friendly – The application Supermarket Billing System has a very user friendly interface. Thus the users will full very easy to work on it. The application provides accuracy along with a pleasant interface. Make the present manual system more interactive, speedy and user friendly. 4. Availability – All the Billing details stored permanently in the database admin can see the data, whatever needed. 5. Maintain Cost – Reduce the cost of maintenance. It is standalone application so no required of cost for maintain it.
  • 14. Chapter – 4 Project Design The project design process is not a step by step. But still much of design work depends on knowledge and experience of the designs, when we start working on project design, we will face different types of problems. However, following considerations should be kept in mind during the project design phase: Design Objectives – The primary objective of the design of course, is to deliver the requirements as specified already. In general the following design objectives kept in mind. Practically – The system must be stable and can be operated by people with average. Efficiency – This involves accuracy, timeliness, and comprehensiveness to the system output. Cost – It is desirable to aim for a system with a minimum cost subject to the condition that it must satisfy all requirements & maintain maintenance. Flexibility – The system should be modifiable depending on the changing needs if the user. It should also be portable to different computer system but not other than Windows OS. Security – This is very important aspect of the design and should cover areas of hardware reliability, fall back procedures, physical security if the data. System design involves first logical design and then physical construction of the system. Major Project Design Activities – Several development activities are carried out during structured design. They are database design, implementation planning, and system interface. Design Process – The system design process is an exercise of specifying how, the system will work. It is an interactive process which is based on what the system will be do as shown in the report. Mainly following two parts have been included in the system design process.
  • 15. 1. Output Design – The starting point of the design process is the proper knowledge of system requirements which will normally be converted on terms of output. 2. Input Design – Once the output requirements have been finalized the next step in to find out what data need to be made available to the system to procedure the desired outputs. Data Flow Diagrams of Supermarket Billing System:  DFD Level 0  DFD Level 1 +  DFD Level 2 Admin / Employee Request Response Admin / Employee Supermarket Billing System Database Request Request Response Response Admin / Employee Supermarket Billing System Database Interaction Store in MS Access Supermarket Billing System
  • 16.  DFD Level 3  DFD Level 4   Admin Supermarket Billing System Employee Employee details Product details Sales details Customer details Add new, Update, Search, and Remove Sales between Admin Supermarket Billing System Employee Bill Generation Today’s Sales
  • 17. Chapter – 5 Database Development This activity deals with the design of the physical database. A key is to determine how the access path art to be implemented. As a programmer, we are expected to design and develop any program that works correctly efficiently and the time is easy to be used by every person, who may or may not be well versed with computer and its capabilities. The project is based on the Supermarket Billing System, Being the Information System it requires extensive use of some Database Management System to store, manipulate & handle the huge and complex record. In DBMS we can act various attributes with the database like editing the records, modifications, deletions of the records, view the records in various formats, listing the database etc. MS Access – Microsoft Access is an office product that allows the user to create relational databases that have tables of data. MS Access stores data in its own format based on the Access Jet Database Engine. It can also import or link directly to data stored in other applications & databases. It’s an easy to use tool for quickly creating browser based database applications. In very simple term, MS Access is an Information Management tool that helps you store information for reference, reporting & analysis. Microsoft Access helps you analyze large amount of information, and manage related data more efficient than MS Excel or other spreadsheet applications. In our project we create 12 tables in MS Access-  Admin
  • 18.  Employee Details  Bill Details  Bill Number  City
  • 19.  Customer Details  GST  Product Category
  • 20.  Product Details  Product Type  Recover Employee Details
  • 21. All Forms and Coding of our project:  Splash Screen Dim a As Variant Dim b As Variant Private Sub Form_Load() Form1.Left = (Screen.Width - Screen.Width / 2) - (Form1.Width / 2) Form1.Top = (Screen.Height - Screen.Height / 2) - (Form1.Height / 2) Timer1.Enabled = True Form1.BackColor = RGB(247, 204, 120) a = 1 b = 0 Image1.Picture = LoadPicture("..billingimages2.jpg") Image2.Picture = LoadPicture("..billingimageslogo1.jpg")
  • 22. Label1.BackColor = RGB(255, 253, 251) Label2.Visible = False Label3.Visible = False Label4.Visible = False Shape1.FillColor = RGB(30, 99, 213) Shape2.FillColor = RGB(30, 99, 213) Shape3.FillColor = RGB(30, 99, 213) Shape4.FillColor = RGB(30, 99, 213) Shape5.FillColor = RGB(30, 99, 213) Shape6.FillColor = RGB(30, 99, 213) End Sub Private Sub Timer1_Timer() If b = 1 Then Label2.Visible = True ElseIf b = 2 Then Label3.Visible = True Label2.Visible = False ElseIf b = 3 Then Label4.Visible = True Label3.Visible = False Form2.Show Form1.Hide Timer1.Enabled = False End If If a = 1 Then Shape1.Visible = True Shape2.Visible = False Shape3.Visible = False Shape4.Visible = False
  • 23. Shape5.Visible = False Shape6.Visible = False a = a + 1 ElseIf a = 2 Then Shape1.Visible = False Shape2.Visible = True Shape3.Visible = False Shape4.Visible = False Shape5.Visible = False Shape6.Visible = False a = a + 1 ElseIf a = 3 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = True Shape4.Visible = False Shape5.Visible = False Shape6.Visible = False a = a + 1 ElseIf a = 4 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = False Shape4.Visible = True Shape5.Visible = False Shape6.Visible = False a = a + 1 ElseIf a = 5 Then Shape1.Visible = False Shape2.Visible = False
  • 24. Shape3.Visible = False Shape4.Visible = False Shape5.Visible = True Shape6.Visible = False a = a + 1 ElseIf a = 6 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = False Shape4.Visible = False Shape5.Visible = False Shape6.Visible = True a = a + 1 ElseIf a = 7 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = False Shape4.Visible = False Shape5.Visible = False a = a + 1 ElseIf a = 8 Then Shape1.Visible = True Shape2.Visible = False Shape3.Visible = False Shape4.Visible = False Shape5.Visible = False a = a + 1 ElseIf a = 9 Then Shape1.Visible = False Shape2.Visible = True
  • 25. Shape3.Visible = False Shape4.Visible = False Shape5.Visible = False a = a + 1 ElseIf a = 10 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = True Shape4.Visible = False Shape5.Visible = False a = a + 1 ElseIf a = 11 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = False Shape4.Visible = True Shape5.Visible = False a = a + 1 ElseIf a = 12 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = False Shape4.Visible = False Shape5.Visible = True a = a + 1 ElseIf a = 13 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = False Shape4.Visible = False a = a + 1
  • 26. ElseIf a = 14 Then Shape1.Visible = True Shape2.Visible = False Shape3.Visible = False Shape4.Visible = False a = a + 1 ElseIf a = 15 Then Shape1.Visible = False Shape2.Visible = True Shape3.Visible = False Shape4.Visible = False a = a + 1 ElseIf a = 16 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = True Shape4.Visible = False a = a + 1 ElseIf a = 17 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = False Shape4.Visible = True a = a + 1 ElseIf a = 18 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = False a = a + 1
  • 27. ElseIf a = 19 Then Shape1.Visible = True Shape2.Visible = False Shape3.Visible = False a = a + 1 ElseIf a = 20 Then Shape1.Visible = False Shape2.Visible = True Shape3.Visible = False a = a + 1 ElseIf a = 21 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = True a = a + 1 ElseIf a = 22 Then Shape1.Visible = False Shape2.Visible = False a = a + 1 ElseIf a = 23 Then Shape1.Visible = True Shape2.Visible = False a = a + 1 ElseIf a = 24 Then Shape1.Visible = False Shape2.Visible = True a = a + 1 ElseIf a = 25 Then Shape1.Visible = False a = a + 1
  • 28. ElseIf a = 26 Then Shape1.Visible = True a = a + 1 ElseIf a = 27 Then Shape1.Visible = False Shape2.Visible = False Shape3.Visible = False Shape4.Visible = False Shape5.Visible = False Shape6.Visible = False a = a + 1 ElseIf a = 28 Then b = b + 1 a = 1 End If End Sub
  • 29.  Login Page  Administrator Login
  • 30.  Administrative details  Employee details  Add employee
  • 31.  View Employee  Update Employee
  • 32.  Remove Employee  Recover Employee
  • 33.  Product Details  Add Products
  • 34.
  • 35. Source Code Private Sub Form_Load() Form13.Left = (Screen.Width - Screen.Width / 2) - (Form13.Width / 2) Form13.Top = (Screen.Height - Screen.Height / 2) - (Form13.Height / 2) Frame1.BackColor = RGB(255, 230, 217) Form13.BackColor = RGB(255, 230, 217) Image3.Picture = LoadPicture("..billingimageslogo2.jpg") Image2.Picture = LoadPicture("..billingimagesbutton3.jpg") Image1.Picture = LoadPicture("..billingimagesbutton3.jpg") Label15.Caption = Date Call connect pd.Close pd.Open "select * from product_details" If pd.RecordCount = 0 Then auto = 2001# Else Do While Not pd.EOF t = pd.Fields(0).Value l = Len(t) - 1 a = Mid(t, 3, l) If Val(a) > Val(auto) Then auto = a End If pd.MoveNext Loop auto = auto + 1 End If Label12.Caption = "pd" + LTrim(Str(auto)) pd.Close
  • 36. pd.Open "select * from product_category" If pd.RecordCount >= 1 Then Form13.Combo1.Clear Do While Not pd.EOF Form13.Combo1.AddItem pd.Fields(0).Value pd.MoveNext Loop Else MsgBox ("No Category Found") End If pd.Close pd.Open "select * from gst" If pd.RecordCount >= 1 Then Form13.Combo2.Clear Do While Not pd.EOF Form13.Combo2.AddItem pd.Fields(0).Value pd.MoveNext Loop Else MsgBox ("No Category Found") End If pd.Close End Sub Private Sub Text2_Change() a = Val(Text6.Text * Text5.Text) If Text1.Text <> "" Then a = a - (a * Text1.Text / 100) End If Label9.Caption = a End Sub
  • 37. Private Sub Image1_Click() Unload Me Form7.Show End Sub Private Sub Image2_Click() If Combo1.Text <> "" And Combo2.Text <> "" And Text1.Text <> "" And Text3.Text <> "" And Text4.Text <> "" And Text5.Text <> "" Then Call connect pd.Close pd.Open "select * from product_details" pd.AddNew pd.Fields(0).Value = Label12.Caption pd.Fields(1).Value = Combo1.Text pd.Fields(2).Value = Text3.Text pd.Fields(3).Value = Text4.Text pd.Fields(4).Value = Text5.Text pd.Fields(5).Value = Text6.Text If Text1.Text <> " " Then pd.Fields(6).Value = Text1.Text Else pd.Fields(6).Value = "0" End If If Combo2.Text <> " " Then pd.Fields(7).Value = Combo2.Text End If pd.Fields(8).Value = Label9.Caption pd.Fields(9).Value = Date pd.Update pd.Close MsgBox ("Product inserted") Unload Me Form13.Show
  • 38. Else MsgBox ("Please fill all the fields") End If End Sub Private Sub Label17_Click() If Combo1.Text <> "" And Combo2.Text <> "" And Text1.Text <> "" And Text3.Text <> "" And Text4.Text <> "" And Text5.Text <> "" Then Call connect pd.Close pd.Open "select * from product_details" pd.AddNew pd.Fields(0).Value = Label12.Caption pd.Fields(1).Value = Combo1.Text pd.Fields(2).Value = Text3.Text pd.Fields(3).Value = Text4.Text pd.Fields(4).Value = Text5.Text pd.Fields(5).Value = Text6.Text If Text1.Text <> " " Then pd.Fields(6).Value = Text1.Text Else pd.Fields(6).Value = "0" End If If Combo2.Text <> " " Then pd.Fields(7).Value = Combo2.Text End If pd.Fields(8).Value = Label9.Caption pd.Fields(9).Value = Date pd.Update pd.Close MsgBox ("Product inserted") Unload Me
  • 39.  Update Products  Search Products Form13.Show Else MsgBox ("Please fill all the fields") End If End Sub Private Sub Label19_Click() Unload Me Form7.Show End Sub Private Sub Timer1_Timer() Label8.Caption = Time End Sub
  • 40.  Sales Details  Customers Details
  • 41.  Employee Login  Employee Panel
  • 42.
  • 43.  Bill Generation Private Sub Combo2_Click() Call connect bill.Close bill.Open "select * from product_details where pcategory='" & Combo2.Text & "'", con, adOpenKeyset, adLockOptimistic If bill.RecordCount >= 1 Then Combo1.Clear Do While Not bill.EOF Combo1.AddItem bill.Fields(2).Value bill.MoveNext Loop End If bill.Close End Sub
  • 44. Private Sub Command1_Click() If IsNumeric(Text5.Text) Then If Val(Text5.Text) < Val(Label28.Caption) Then MsgBox ("Please Enter Correct Amount") Text5.Text = "" Text5.SetFocus Else Label15.Caption = Val(Text5.Text - Label28.Caption) End If Else MsgBox ("Please Enter Numeric Value Only") Text5.Text = "" Text5.SetFocus End If End Sub Private Sub Command10_Click() If ListView1.ListItems.Count >= 1 Then If Text5.Text <> "" And Label15.Caption <> "" Then Dim l As ListItem gst0 = 0 taxableamt0 = 0 gst5 = 0 taxableamt5 = 0 gst9 = 0 taxableamt9 = 0 gst12 = 0 taxableamt12 = 0 gst18 = 0 taxableamt18 = 0
  • 45. gst28 = 0 taxableamt28 = 0 totaltaxablerate = 0 gst = 0 totalamount = 0 tgstamt5 = 0 tgstamt9 = 0 tgstamt12 = 0 tgstamt18 = 0 tgstamt28 = 0 taxablerate5 = 0 taxablerate9 = 0 taxablerate12 = 0 taxablerate18 = 0 taxablerate28 = 0 taxableamtsum0 = 0 taxableamtsum5 = 0 taxableamtsum9 = 0 taxableamtsum12 = 0 taxableamtsum18 = 0 taxableamtsum28 = 0 gstamtsum5 = 0 gstamtsum9 = 0 gstamtsum12 = 0 gstamtsum18 = 0 gstamtsum28 = 0 For i = 1 To ListView1.ListItems.Count Set l = ListView1.ListItems.Item(i) r = Val(l.SubItems(2)) g = Val(l.SubItems(4))
  • 46. q = Val(l.SubItems(3)) If (g = 0) Then taxableamt0 = Val(r * q) taxableamtsum0 = Val(taxableamtsum0 + taxableamt0) ElseIf (g = 5) Then gst5 = Val(r * g / Val(100 + g)) tgstamt5 = Val(gst5 * q) taxablerate5 = Val(r - gst5) taxableamt5 = Val(taxablerate5 * q) taxableamtsum5 = Val(taxableamtsum5 + taxableamt5) gstamtsum5 = Val(gstamtsum5 + tgstamt5) ElseIf (g = 9) Then gst9 = Val(r * g / Val(100 + g)) tgstamt9 = Val(gst9 * q) taxablerate9 = Val(r - gst9) taxableamt9 = Val(taxablerate9 * q) taxableamtsum9 = Val(taxableamtsum9 + taxableamt9) gstamtsum9 = Val(gstamtsum9 + tgstamt9) ElseIf (g = 12) Then gst12 = Val(r * g / Val(100 + g)) tgstamt12 = Val(gst12 * q) taxablerate12 = Val(r - gst12) taxableamt12 = Val(taxablerate12 * q) taxableamtsum12 = Val(taxableamtsum12 + taxableamt12) gstamtsum12 = Val(gstamtsum12 + tgstamt12) ElseIf (g = 18) Then gst18 = Val(r * g / Val(100 + g)) tgstamt18 = Val(gst18 * q) taxablerate18 = Val(r - gst18) taxableamt18 = Val(taxablerate18 * q) taxableamtsum18 = Val(taxableamtsum18 + taxableamt18) gstamtsum18 = Val(gstamtsum18 + tgstamt18)
  • 47. ElseIf (g = 28) Then gst28 = Val(r * g / Val(100 + g)) tgstamt28 = Val(gst28 * q) taxablerate28 = Val(r - gst28) taxableamt28 = Val(taxablerate28 * q) taxableamtsum28 = Val(taxableamtsum28 + taxableamt28) gstamtsum28 = Val(gstamtsum28 + tgstamt28) End If Next gst = Val(gstamtsum5 + gstamtsum9 + gstamtsum12 + gstamtsum18 + gstamtsum28) totaltaxablerate = Val(taxableamtsum0 + taxableamtsum5 + taxableamtsum9 + taxableamtsum12 + taxableamtsum18 + taxableamtsum28) totalamount = Val(gst + totaltaxablerate) Label10.Caption = Format(totaltaxablerate, ".00") Label23.Caption = Format(Val(gst / 2), ".00") Label24.Caption = Format(Val(gst / 2), ".00") Label26.Caption = Format(gst, ".00") Label28.Caption = Round(totalamount) MsgBox ("Your Total Amount is " + Label28.Caption) t = MsgBox("Do you want to continue...", vbYesNo) If (t = 6) Then Form22.Show Form20.Hide End If Else MsgBox ("Please Enter Cash Amount and Click on Check") End If Else MsgBox ("Please Choose Your Products") End If End Sub Private Sub Command2_Click() Text1.Text = ""
  • 48. bill.Close ElseIf Combo1.Text = "" Or Combo2.Text = "" Or Text4.Text = "" Then If Combo1.Text = "" Then MsgBox "Please Choose Product Name" ElseIf Combo2.Text = "" Then MsgBox "Please Choose Product Category" ElseIf Text4.Text = "" Then MsgBox "Please Enter Quantity" End If End If End Sub Private Sub Command5_Click() a = MsgBox("Do you want to remove item", vbYesNo) If a = 6 Then ListView1.ListItems.Remove (ListView1.SelectedItem.Index) Command5.Enabled = False End If End Sub Private Sub Command7_Click() Dim l As ListItem gst0 = 0 taxableamt0 = 0 gst5 = 0 taxableamt5 = 0 gst9 = 0 taxableamt9 = 0 gst12 = 0 taxableamt12 = 0 gst18 = 0 taxableamt18 = 0 gst28 = 0
  • 49. taxableamt28 = 0 totaltaxablerate = 0 gst = 0 totalamount = 0 tgstamt5 = 0 tgstamt9 = 0 tgstamt12 = 0 tgstamt18 = 0 tgstamt28 = 0 taxablerate5 = 0 taxablerate9 = 0 taxablerate12 = 0 taxablerate18 = 0 taxablerate28 = 0 taxableamtsum0 = 0 taxableamtsum5 = 0 taxableamtsum9 = 0 taxableamtsum12 = 0 taxableamtsum18 = 0 taxableamtsum28 = 0 gstamtsum5 = 0 gstamtsum9 = 0 gstamtsum12 = 0 gstamtsum18 = 0 gstamtsum28 = 0 For i = 1 To ListView1.ListItems.Count Set l = ListView1.ListItems.Item(i) r = Val(l.SubItems(2)) g = Val(l.SubItems(4)) q = Val(l.SubItems(3)) If (g = 0) Then
  • 50. taxableamt0 = Val(r * q) taxableamtsum0 = Val(taxableamtsum0 + taxableamt0) ElseIf (g = 5) Then gst5 = Val(r * g / Val(100 + g)) tgstamt5 = Val(gst5 * q) taxablerate5 = Val(r - gst5) taxableamt5 = Val(taxablerate5 * q) taxableamtsum5 = Val(taxableamtsum5 + taxableamt5) gstamtsum5 = Val(gstamtsum5 + tgstamt5) ElseIf (g = 9) Then gst9 = Val(r * g / Val(100 + g)) tgstamt9 = Val(gst9 * q) taxablerate9 = Val(r - gst9) taxableamt9 = Val(taxablerate9 * q) taxableamtsum9 = Val(taxableamtsum9 + taxableamt9) gstamtsum9 = Val(gstamtsum9 + tgstamt9) ElseIf (g = 12) Then gst12 = Val(r * g / Val(100 + g)) tgstamt12 = Val(gst12 * q) taxablerate12 = Val(r - gst12) taxableamt12 = Val(taxablerate12 * q) taxableamtsum12 = Val(taxableamtsum12 + taxableamt12) gstamtsum12 = Val(gstamtsum12 + tgstamt12) ElseIf (g = 18) Then gst18 = Val(r * g / Val(100 + g)) tgstamt18 = Val(gst18 * q) taxablerate18 = Val(r - gst18) taxableamt18 = Val(taxablerate18 * q) taxableamtsum18 = Val(taxableamtsum18 + taxableamt18) gstamtsum18 = Val(gstamtsum18 + tgstamt18)
  • 51. ElseIf (g = 28) Then gst28 = Val(r * g / Val(100 + g)) tgstamt28 = Val(gst28 * q) taxablerate28 = Val(r - gst28) taxableamt28 = Val(taxablerate28 * q) taxableamtsum28 = Val(taxableamtsum28 + taxableamt28) gstamtsum28 = Val(gstamtsum28 + tgstamt28) End If Next gst = Val(gstamtsum5 + gstamtsum9 + gstamtsum12 + gstamtsum18 + gstamtsum28) totaltaxablerate = Val(taxableamtsum0 + taxableamtsum5 + taxableamtsum9 + taxableamtsum12 + taxableamtsum18 + taxableamtsum28) totalamount = Val(gst + totaltaxablerate) Label10.Caption = Format(totaltaxablerate, ".00") Label23.Caption = Format(Val(gst / 2), ".00") Label24.Caption = Format(Val(gst / 2), ".00") Label26.Caption = Format(gst, ".00") Label28.Caption = Round(totalamount) End Sub Private Sub Command8_Click() Form19.Show Unload Me End Sub Private Sub Command9_Click() Unload Me Form20.Show Form20.Label13.Caption = Form19.Label7.Caption End Sub Private Sub Form_Load() Form20.Left = (Screen.Width - Screen.Width / 2) - (Form20.Width / 2) Form20.Top = (Screen.Height - Screen.Height / 2) - (Form20.Height / 2)
  • 52. Image3.Picture = LoadPicture("..billingimageslogo2.jpg") Label3.Caption = Date Form20.BackColor = RGB(255, 230, 217) Frame2.BackColor = RGB(255, 230, 217) Frame3.BackColor = RGB(255, 230, 217) Call connect bill.Close bill.Open "select * from bill_details", con, adOpenKeyset, adLockOptimistic If bill.RecordCount = 0 Then auto = 1# Else Do While Not bill.EOF If bill.Fields(0).Value > auto Then auto = Val(bill.Fields(0).Value) End If bill.MoveNext Loop auto = auto + 1 End If If Len(auto) = 1 Then Label11.Caption = "000" + LTrim(Str(auto)) ElseIf Len(auto) = 2 Then Label11.Caption = "00" + LTrim(Str(auto)) ElseIf Len(auto) = 3 Then Label11.Caption = "0" + LTrim(Str(auto)) Else Label11.Caption = auto End If bill.Close bill.Open "select * from product_category" If bill.RecordCount >= 1 Then
  • 53. Combo2.Clear Do While Not bill.EOF Combo2.AddItem bill.Fields(0).Value bill.MoveNext Loop Else MsgBox ("No Category Found") End If bill.Close End Sub Private Sub ListView1_ItemClick(ByVal Item As ComctlLib.ListItem) Command5.Enabled = True End Sub Private Sub Text1_Change() If IsNumeric(Text1.Text) Or Text1.Text = "" Then If Len(Text1.Text) = 10 Then Call connect bill.Close bill.Open "select * from customer_details" a = 0 If bill.RecordCount >= 0 Then Do While Not bill.EOF If bill.Fields(0).Value = Text1.Text Then Text2.Text = bill.Fields(1).Value a = a + 1 End If bill.MoveNext Loop End If
  • 54. If a = 0 Then Command1.Enabled = True End If bill.Close ElseIf Text1.Text = "" Then Text2.Text = "" ElseIf Len(Text1.Text) > 10 Then MsgBox ("Invalid Mobile Number") Text1.Text = "" Text2.Text = "" End If Else MsgBox ("Please Enter Numeric Value Only") Text1.Text = "" End If End Sub Private Sub Timer1_Timer() Label5.Caption = Time End Sub
  • 55.  Customers Details Private Sub Command4_Click() Call connect bill.Close bill.Open "select * from bill_details where bill_no='" & Form20.Label11.Caption & "'", con, adOpenKeyset, adLockOptimistic Set DataReport1.DataSource = bill DataReport1.Show End Sub Private Sub Form_Load() Form22.Left = (Screen.Width - Screen.Width / 2) - (Form22.Width / 2) Form22.Top = (Screen.Height - Screen.Height / 2) - (Form22.Height / 2) Form22.BackColor = RGB(255, 230, 217) Frame1.BackColor = RGB(255, 230, 217) Image1.Picture = LoadPicture("..billingimagesbutton3.jpg")
  • 56. Image2.Picture = LoadPicture("..billingimagesbutton3.jpg") Image3.Picture = LoadPicture("..billingimageslogo2.jpg") Image4.Picture = LoadPicture("..billingimagesbutton3.jpg") Image5.Picture = LoadPicture("..billingimagesbutton3.jpg") Label3.Caption = Date End Sub Private Sub Image1_Click() Form21.Show Form21.Text1.Text = Form22.Text1.Text Form21.Text2.Text = Form22.Text2.Text End Sub Private Sub Image2_Click() If Text2.Text <> "" Then Call connect bill.Close bill.Open "select * from customer_details", con, adOpenKeyset, adLockOptimistic bill.AddNew bill.Fields(0).Value = Text1.Text bill.Fields(1).Value = Text2.Text bill.Update bill.Close MsgBox ("Data Added...") Else MsgBox ("Please fill the Text Field") End If End Sub Private Sub Image4_Click() Form20.Show Unload Me End Sub Private Sub Image4_Click() Form20.Show Unload Me End Sub
  • 57. pd.Close cb.Close bill.Open "select * from bill_details", con, adOpenKeyset, adLockOptimistic cb.Open "select * from billno", con, adOpenKeyset, adLockOptimistic pd.Open "select * from product_details", con, adOpenKeyset, adLockOptimistic Dim l As ListItem cb.AddNew cb.Fields(0).Value = Form20.Label11.Caption cb.Fields(1).Value = Text1.Text cb.Fields(2).Value = Text2.Text cb.Fields(3).Value = Form20.Label13.Caption cb.Fields(4).Value = Date cb.Fields(5).Value = Time cb.Update cb.Close For i = 1 To Form20.ListView1.ListItems.Count pd.MoveFirst Set l = Form20.ListView1.ListItems.Item(i) bill.AddNew bill.Fields(0).Value = Form20.Label11.Caption bill.Fields(1).Value = l.Text pid = Val(l.Text) pqty = Val(l.SubItems(3)) Do While Not pd.EOF If pd.Fields(0).Value = pid Then If pd.Fields(4).Value >= pqty Then pd.Fields(4).Value = Val(pd.Fields(4).Value - pqty) pd.Update Else MsgBox ("Product not available") End If
  • 58. End If pd.MoveNext Loop bill.Fields(2).Value = l.SubItems(1) bill.Fields(3).Value = l.SubItems(2) bill.Fields(4).Value = l.SubItems(3) bill.Fields(5).Value = l.SubItems(4) bill.Fields(6).Value = l.SubItems(5) bill.Fields(7).Value = l.SubItems(6) bill.Fields(8).Value = Date bill.Fields(9).Value = Time bill.Fields(10).Value = Form20.Label13.Caption bill.Update Next bill.Close pd.Close bill.Open "select * from bill_details where bill_no='" & Form20.Label11.Caption & "'" Set DataReport1.DataSource = bill DataReport1.Sections("Section2").Controls("label3").Caption = Date 'date DataReport1.Sections("Section2").Controls("label7").Caption = Form20.Label11.Caption 'bill no DataReport1.Sections("Section2").Controls("label5").Caption = Time 'time DataReport1.Sections("Section2").Controls("label9").Caption = Form20.Label13.Caption 'emp id If bill.RecordCount >= 1 Then a = 0 t = 0 q = 0 Do While Not bill.EOF If bill.Fields(0).Value = Form20.Label11.Caption Then a = a + 1 DataReport1.Sections("Section1").Controls("Text2").DataField = "p_name" DataReport1.Sections("Section1").Controls("Text6").DataField = "p_gst"
  • 59. DataReport1.Sections("Section1").Controls("Text3").DataField = "p_qty" q = Val(q + bill.Fields(4).Value) DataReport1.Sections("Section1").Controls("Text4").DataField = "p_rate" DataReport1.Sections("Section1").Controls("Text5").DataField = "total_amount" t = Val(t + bill.Fields(7).Value) End If bill.MoveNext Loop End If DataReport1.Sections("Section5").Controls("label17").Caption = a DataReport1.Sections("Section5").Controls("label19").Caption = q DataReport1.Sections("Section5").Controls("label21").Caption = t DataReport1.Sections("Section5").Controls("label35").Caption = taxableamt0 'taxable_amt0 DataReport1.Sections("Section5").Controls("label36").Caption = taxableamt5 'taxable_amt5 DataReport1.Sections("Section5").Controls("label37").Caption = taxableamt9 'taxable_amt9 DataReport1.Sections("Section5").Controls("label38").Caption = taxableamt12 'taxable_amt12 DataReport1.Sections("Section5").Controls("label39").Caption = taxableamt18 'taxable_amt18 DataReport1.Sections("Section5").Controls("label40").Caption = taxableamt28 'taxable_amt28 DataReport1.Sections("Section5").Controls("label41").Caption = 0 'cgst0 DataReport1.Sections("Section5").Controls("label42").Caption = Val(gstamtsum5 / 2) 'cgst5 DataReport1.Sections("Section5").Controls("label43").Caption = Val(gstamtsum9 / 2) 'cgst9 DataReport1.Sections("Section5").Controls("label44").Caption = Val(gstamtsum12 / 2) 'cgst12 DataReport1.Sections("Section5").Controls("label45").Caption = Val(gstamtsum18 / 2) 'cgst18 DataReport1.Sections("Section5").Controls("label46").Caption = Val(gstamtsum28 / 2) 'cgst28 DataReport1.Sections("Section5").Controls("label47").Caption = 0 'sgst0 DataReport1.Sections("Section5").Controls("label48").Caption = Val(gstamtsum5 / 2) 'sgst5 DataReport1.Sections("Section5").Controls("label49").Caption = Val(gstamtsum9 / 2) 'sgst9 DataReport1.Sections("Section5").Controls("label50").Caption = Val(gstamtsum12 / 2) 'sgst12 DataReport1.Sections("Section5").Controls("label51").Caption = Val(gstamtsum18 / 2) 'sgst18 DataReport1.Sections("Section5").Controls("label52").Caption = Val(gstamtsum28 / 2) 'sgst28
  • 60. DataReport1.Sections("Section5").Controls("label60").Caption = Val(totaltaxablerate) 'totalamt DataReport1.Sections("Section5").Controls("label61").Caption = Val(gst / 2) 'totalcgst DataReport1.Sections("Section5").Controls("label62").Caption = Val(gst / 2) 'totalsgst DataReport1.Sections("Section5").Controls("label63").Caption = Val(totalamount) 'totalamt DataReport1.Sections("Section5").Controls("label65").Caption = Form20.Text5.Text 'cash recd. DataReport1.Sections("Section5").Controls("label67").Caption = Form20.Label15.Caption 'change DataReport1.Show DataReport1.Left = (Screen.Width - Screen.Width / 2) - (DataReport1.Width / 2) DataReport1.Top = (Screen.Height - Screen.Height / 2) - (DataReport1.Height / 2) Form22.Hide Form19.Show Unload Form20 Unload Form22 Unload Form21 End Sub Private Sub Label10_Click() Call connect bill.Close pd.Close cb.Close bill.Open "select * from bill_details", con, adOpenKeyset, adLockOptimistic cb.Open "select * from billno", con, adOpenKeyset, adLockOptimistic pd.Open "select * from product_details", con, adOpenKeyset, adLockOptimistic Dim l As ListItem cb.AddNew cb.Fields(0).Value = Form20.Label11.Caption cb.Fields(1).Value = Text1.Text cb.Fields(2).Value = Text2.Text cb.Fields(3).Value = Form20.Label13.Caption cb.Fields(4).Value = Date cb.Fields(5).Value = Time
  • 61. cb.Update cb.Close For i = 1 To Form20.ListView1.ListItems.Count pd.MoveFirst Set l = Form20.ListView1.ListItems.Item(i) bill.AddNew bill.Fields(0).Value = Form20.Label11.Caption bill.Fields(1).Value = l.Text pid = Val(l.Text) pqty = Val(l.SubItems(3)) Do While Not pd.EOF If pd.Fields(0).Value = pid Then If pd.Fields(4).Value >= pqty Then pd.Fields(4).Value = Val(pd.Fields(4).Value - pqty) pd.Update Else MsgBox ("Product not available") End If End If pd.MoveNext Loop bill.Fields(2).Value = l.SubItems(1) bill.Fields(3).Value = l.SubItems(2) bill.Fields(4).Value = l.SubItems(3) bill.Fields(5).Value = l.SubItems(4) bill.Fields(6).Value = l.SubItems(5) bill.Fields(7).Value = l.SubItems(6) bill.Fields(8).Value = Date bill.Fields(9).Value = Time bill.Fields(10).Value = Form20.Label13.Caption bill.Update
  • 62. Next bill.Close pd.Close bill.Open "select * from bill_details where bill_no='" & Form20.Label11.Caption & "'" Set DataReport1.DataSource = bill DataReport1.Sections("Section2").Controls("label3").Caption = Date 'date DataReport1.Sections("Section2").Controls("label7").Caption = Form20.Label11.Caption 'bill no DataReport1.Sections("Section2").Controls("label5").Caption = Time 'time DataReport1.Sections("Section2").Controls("label9").Caption = Form20.Label13.Caption 'emp id If bill.RecordCount >= 1 Then a = 0 t = 0 q = 0 Do While Not bill.EOF If bill.Fields(0).Value = Form20.Label11.Caption Then a = a + 1 DataReport1.Sections("Section1").Controls("Text2").DataField = "p_name" DataReport1.Sections("Section1").Controls("Text6").DataField = "p_gst" DataReport1.Sections("Section1").Controls("Text3").DataField = "p_qty" q = Val(q + bill.Fields(4).Value) DataReport1.Sections("Section1").Controls("Text4").DataField = "p_rate" DataReport1.Sections("Section1").Controls("Text5").DataField = "total_amount" t = Val(t + bill.Fields(7).Value) End If bill.MoveNext Loop End If DataReport1.Sections("Section5").Controls("label17").Caption = a DataReport1.Sections("Section5").Controls("label19").Caption = q DataReport1.Sections("Section5").Controls("label21").Caption = t
  • 63. DataReport1.Sections("Section5").Controls("label35").Caption = taxableamt0 'taxable_amt0 DataReport1.Sections("Section5").Controls("label36").Caption = taxableamt5 'taxable_amt5 DataReport1.Sections("Section5").Controls("label37").Caption = taxableamt9 'taxable_amt9 DataReport1.Sections("Section5").Controls("label38").Caption = taxableamt12 'taxable_amt12 DataReport1.Sections("Section5").Controls("label39").Caption = taxableamt18 'taxable_amt18 DataReport1.Sections("Section5").Controls("label40").Caption = taxableamt28 'taxable_amt28 DataReport1.Sections("Section5").Controls("label41").Caption = 0 'cgst0 DataReport1.Sections("Section5").Controls("label42").Caption = Val(gstamtsum5 / 2) 'cgst5 DataReport1.Sections("Section5").Controls("label43").Caption = Val(gstamtsum9 / 2) 'cgst9 DataReport1.Sections("Section5").Controls("label44").Caption = Val(gstamtsum12 / 2) 'cgst12 DataReport1.Sections("Section5").Controls("label45").Caption = Val(gstamtsum18 / 2) 'cgst18 DataReport1.Sections("Section5").Controls("label46").Caption = Val(gstamtsum28 / 2) 'cgst28 DataReport1.Sections("Section5").Controls("label47").Caption = 0 'sgst0 DataReport1.Sections("Section5").Controls("label48").Caption = Val(gstamtsum5 / 2) 'sgst5 DataReport1.Sections("Section5").Controls("label49").Caption = Val(gstamtsum9 / 2) 'sgst9 DataReport1.Sections("Section5").Controls("label50").Caption = Val(gstamtsum12 / 2) 'sgst12 DataReport1.Sections("Section5").Controls("label51").Caption = Val(gstamtsum18 / 2) 'sgst18 DataReport1.Sections("Section5").Controls("label52").Caption = Val(gstamtsum28 / 2) 'sgst28 DataReport1.Sections("Section5").Controls("label53").Caption = Val(taxableamt0 + 0) 'totalamt0 DataReport1.Sections("Section5").Controls("label54").Caption = Val(taxableamt5 + tgstamt5) 'totalamt5 DataReport1.Sections("Section5").Controls("label55").Caption = Val(taxableamt9 + tgstamt9) 'totalamt9 DataReport1.Sections("Section5").Controls("label56").Caption = Val(taxableamt12 + tgstamt12) 'totalamt12 DataReport1.Sections("Section5").Controls("label57").Caption = Val(taxableamt18 + tgstamt18) 'totalamt18 DataReport1.Sections("Section5").Controls("label58").Caption = Val(taxableamt28 + tgstamt28) 'totalamt28 DataReport1.Sections("Section5").Controls("label60").Caption = Val(totaltaxablerate) 'totalamt DataReport1.Sections("Section5").Controls("label61").Caption = Val(gst / 2) 'totalcgst DataReport1.Sections("Section5").Controls("label62").Caption = Val(gst / 2) 'totalsgst DataReport1.Sections("Section5").Controls("label63").Caption = Val(totalamount) 'totalamt DataReport1.Sections("Section5").Controls("label65").Caption = Form20.Text5.Text 'cash recd. DataReport1.Sections("Section5").Controls("label67").Caption = Form20.Label15.Caption 'change
  • 64. DataReport1.Show DataReport1.Left = (Screen.Width - Screen.Width / 2) - (DataReport1.Width / 2) DataReport1.Top = (Screen.Height - Screen.Height / 2) - (DataReport1.Height / 2) Form22.Hide Form19.Show Unload Form20 Unload Form22 Unload Form21 End Sub Private Sub Label19_Click() Form21.Show Form21.Text1.Text = Form22.Text1.Text Form21.Text2.Text = Form22.Text2.Text End Sub Private Sub Label2_Click() If Text2.Text <> "" Then Call connect bill.Close bill.Open "select * from customer_details", con, adOpenKeyset, adLockOptimistic bill.AddNew bill.Fields(0).Value = Text1.Text bill.Fields(1).Value = Text2.Text bill.Update bill.Close MsgBox ("Data Added...") Else MsgBox ("Please fill the Text Field") End If End Sub
  • 65. Private Sub Label7_Click() Form20.Show Unload Me End Sub Private Sub Text1_Change() If IsNumeric(Text1.Text) Or Text1.Text = "" Then If Len(Text1.Text) = 10 Then Call connect bill.Close bill.Open "select * from customer_details" a = 0 If bill.RecordCount >= 0 Then Do While Not bill.EOF If bill.Fields(0).Value = Text1.Text Then Text2.Text = bill.Fields(1).Value a = a + 1 End If bill.MoveNext Loop End If If a = 0 Then Image2.Enabled = True Label2.Enabled = True Text2.Text = "" End If bill.Close ElseIf Text1.Text = "" Then Text2.Text = "" Image2.Enabled = False Label2.Enabled = False
  • 66. ElseIf Len(Text1.Text) > 10 Then MsgBox ("Invalid Mobile Number") Image2.Enabled = False Label2.Enabled = False Text1.Text = "" Text2.Text = "" End If Else MsgBox ("Please Enter Numeric Value Only") Text1.Text = "" End If End Sub Private Sub Timer1_Timer() Label5.Caption = Time End Sub
  • 68. Chapter – 6 System Requirements of PC Processor Core 2 Dual / 4.3 more RAM 1, 2 GB or more HDD 500 GB / 1 TB or more OS Window 7 or Later Database MS Access 2003
  • 69. Chapter – 7 Conclusion After we have completed the project we are sure the problems in the existing system world overcome. The “Supermarket Billing System” process made computerized to reduce human errors & to increase the efficiency. The main focus of this project is to less human efforts. The maintenance of the records is made efficient, as all the records are stored in the Access Database, through which data can be retrieved easily. The navigation control is provided in all the forms to navigate through the large amount of records. If the numbers of records are very large than user has to just type in the search string & user gets the results immediately. The editing is also made simples. The user has to just type in the required field & process the update button to update the desired field. The products & employees are given a particular unique id no. so that they can be access correctly & without errors. Our main aim of the project is to get the correct bills and maintain the data of the supermarket.
  • 70. Bibliography  www.google.com  www.youtube.com  www.stackoverflow.com  VB Black Book (Author: Steven Holzner)  MS Visual Basic 2010 step by step (Author: Michael Halverson)  The Complete Reference Visual Basic 6 (Author: Noel Jerk)  College Notes
  • 71. Thank You… PINKLE MAKHIJANI Bachelor of Computer Application Dezyne E´cole College 106/10, CIVIL LINES AJMER RAJASTHAN - 305001 (INDIA) (FEBRUARY, 2018) www.dezyneecole.com