Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 70

QUEZON CITY POLYTECHNIC UNIVERSITY

FORMULATING INVENTORY SYSTEM AND STOCK ANALYSIS FOR


LATERAL APPLIANCES

A capstone research submitted to:


Mr. Mark Jess Bolano, MBA

In partial fulfillment of the requirements


for the course inquiries, investigation, and immersion
BY
Ronel Adlawon
Lenny Ann Balanay
Jayvee Borja
Rashelle Capunis
Ryan Decena
Demeles Dolfo
Pamela Faballa
Lawrence Figueroa
Babylyn Gabales
Eugene Gabriel
Raymond Guanizo
Patric Guzman
Brendon Navia
Hanz David Ong
Jennifer Portillo
Ronelyn Situito
Jovilyn Uy
Savannah Lyka Shane Yambot

1
QUEZON CITY POLYTECHNIC UNIVERSITY

CHAPTER 1

INTRODUCTION

In today’s generation we are engaged in a highly computerized technology


aiming to enhance individual lifestyle and most especially in the world of business.
Certainly, there are plenty of small retail outlets, manufacturers, and other business
that continue to rely on manual means of inventory tracking. Many companies and
business are using sales monitoring and inventory systems for their success and
growth. It is an effective way of monitoring sales and tracking different products and
materials that are transferred in and materials that are transferred in and out of
company warehouse or establishments. Moreover, a sales monitoring inventory
system promotes effective inventory control which ensures stocking the marketable
and correct items in correct and incorrect quantities. This system can help the
company to avoid overstocking.
When a company overstocks materials, money is wasted since procuring
storing, and accounting for unneeded items require time, space, and money which
could have been used on more favorable and marketable assets. Having a
developed system on sales monitoring and inventory makes the company and its
client satisfied. The sales and inventory system is meant to help the company
employees and personnel to show customers more relevant items, hoping to
expedite and increase the profit of the company. With the aid of a sales monitoring
and inventory system the product management will be more consistent, reliable and
efficient.

The digitalization of their existing system is one of the primary reason why the
researcher conducted the study. The proponents believed that with the
computerized sales monitoring and inventory system the problem to their stocks will
lessen and eventually met the accurate stocks.

2
QUEZON CITY POLYTECHNIC UNIVERSITY

STATEMENT OF THE PROBLEM

The study aims to answer the following:

1. What is the demographic profile of the business in terms of:


a) No. of Years in the business
b) Product offered
c) No. of employees

2. What was the system used by the business in sales and inventory
monitoring?

3. What are the common problems encountered in using the old system?

4. How can computerized sales and inventory system help the VEEDAB?

3
QUEZON CITY POLYTECHNIC UNIVERSITY

CONCEPTUAL FRAMEWORK
INPUT PROCESS OUTPUT

I. Profile of
I. Inquiring the
business owner.
II. This study aims business owner.
The said system
to solve the will be applied to
II. Observed the
the business.
following existing
primary problems I. Computerized
manual sales system for
of the business.
Monitoring sales
monitoring and and inventory
III. Made an
inventory problems II. Monitoring the
inventory records
and records about
III. Monitoring
monitoring system.
available product.
the available
IV. Observation of IV. Effective and
products. Efficiency of sales
the business owner monitoring system.
III. Problems

Encountered to the researchers.


HYPOTHESIS

The purpose of this study is to determine the role played by inventory system
in achieving management. The sales and inventory system is creating a verb- based
system. The control and maintenance of inventory is vital problem experience almost
by a sector of the economy. This topic is very important as all organization deal with
inventories on daily basis. Neglecting the importance of the inventory in any
organizations can lead to the closing down of the company, especially if the factor of
the of productions are not well managed in order to meet customer needs to desires,
the company will grind to half. The inventory problem consist of having sufficient
items available when desire the customers. The stocks of the items must be
reasonable, meaning that it should not be too much or too little. The company should

4
QUEZON CITY POLYTECHNIC UNIVERSITY

be in a position to meet customers demand in terms of quantity and quality.


Managing inventory has become a special issue when selling globally because
holding goods in non- domestics markets is virtually a necessity if customers service
levels are to be maintained. Inventory manage of great of great importance
especially for managers who must decide how much (if- any) to hold and have to
administer to rest of logistics systems more creativity levels. That’s the reason why
inventory management requires a particular attention of the support of the entire
company’s management levels in order to meet customer satisfaction.

5
QUEZON CITY POLYTECHNIC UNIVERSITY

SCOPE AND LIMITATIONS

This study conducted aims to proposed computerized sales monitoring and


inventory system to VEEDAB General Merchandise located at K.P Rizal St. Brgy.
Sta Lucia, Novaliches Quezon City and helped achieved the following:

1. This can no longer be highly labor intensive because with the aid of the sales
monitoring and inventory system, they can monitor their sales and determine their
lacking and unavailable products with accurate reports that the system will generate.
2. After each customers transactions, the system generate records and from then,
they will be able to have a record and they will can now determine their earnings.
3. Promote updated security in items of making the files and easy to locate to
provide a faster mean of doing the inventory.
4. Enable to produce accurate reports. A sales report to know the earnings of the
business enterprise daily, weekly monthly and yearly and an inventory report to see
what products are lacking and unavailable.

However, the study did not cover the printing of receipts to be provided to the
customers.

6
QUEZON CITY POLYTECHNIC UNIVERSITY

DEFINITION OF TERMS

This portion of the study defines the operational terms that are mentioned relevant
and used in the study.

Accuracy - the ability to be precise and avoid unreliable stocks.

Complexity – the condition of being difficult to analyze, understand and solve.

Computer – machine that perform task, such as calculations , inventoring stocks


and electric communication, under the control of a set of instruction called program.

Computerize- to store information in a computer system or process it by a


computer.

Convenience – the quality of being or making things easy, useful or of increasing


comfort.

Customer – a person or a company that busy goods or services.

Data – information a form that suitable for storage in or processing by a computer.

Database – is a collection of information organize so that it can easily be accessed,


managed and update.

Employee – a paid worker.

Inventory System - Art tracking system that inform you of the amount of ram
materials, supplies or final products you have readily available.

Inventory – a complete list of terms such as property goods in stuck, or the contents
of a building.

Inventory System – combines desktop software, barcode scanners, barcodes


labels, and mobile devices to streamline the tracking of inventory as product flows
thought a warehouse environment.

Owner – a person or organization that something.

Receipt – the action of receiving something or the fact of its being received.

Researcher- a person who study something methodically.

Sales – the exchange of commodity for money, the action of selling something.

7
QUEZON CITY POLYTECHNIC UNIVERSITY

BIBLIOGRAPHY

8
QUEZON CITY POLYTECHNIC UNIVERSITY

CHAPTER 2
REVIEW OF RELATED LITERATURE AND STUDIES

This chapter deals with the review of related literature and studies, both local
and foreign. Literature refers to the readings made from books, articles, and
journals. It is presented to strengthen the thrust of study.

Local Literature
When it comes to investing in stocks, it is important that the investor is
capable of conducting a thorough technical analysis of stock charts. Technical
analysis is a term used to define the process of forecasting future price movements
based on the past price movements within stock charts. It is with the help of
technical analysis that investors are able to make financial decisions of buying,
holding, or selling stocks.

According to Consunji (2015) Inventory control is something that should be


front-of-mind for anyone in the wholesale distribution business. In the simplest of
terms, inventory control involves having greater oversight over one’s stock. Some
refer to it as “internal control” or even as an accounting system set up to safeguard
assets. Let’s take a look at why inventory control is so important as well as what’s
involved in developing an effective system.

You also don’t want to have excess inventory taking up space in your
warehouses unnecessarily. Too much inventory can trigger profit losses––whether a
product expires, gets damaged, or goes out of season. Key to proper inventory
control is a deeper understanding of customer demand for your products.

Foreign Literature

Bezos (2012) Ultimately, the more automated your system is, the less
paperwork there will be. There is a whole host of inventory management software
options out there. These software systems may offer integration with your enterprise
resource planning systems, or multichannel integrations.

9
QUEZON CITY POLYTECHNIC UNIVERSITY

Local Studies
Ayala (2013) there are many different ways to keep control of your inventory.
One basic way is to create a spreadsheet with various columns for product name,
item number, and quantity. You can have a column to deduct what you sell and ship.
You can also keep a log of returns and new incoming stock.

Foreign Study

Sena Cases (2016) it would have been impossible for us to work with any big
retailer because we didn't have real-time visibility into inventory or into our daily
multi-channel sales. With NetSuite, we can now commit to on-time wholesale
product deliveries to Apple's regional hubs, and we can respond to their queries
quickly and accurately, without risking stock run-outs because of faulty information"

10
QUEZON CITY POLYTECHNIC UNIVERSITY

CHAPTER 3

TECHNICAL SPECIFICATIONS
Software

The proposed system is going to be developed using the following software


applications as platforms and for the proposed systems developing environment.
Table 3.1
Software Specification

Software Development Implementation


Requirements Specification Specification

Operating System Windows 7 Windows XP and up

LAN base system Visual Studio 2013

Browser Google Chrome


/Mozilla Firefox

The proponents chose Visual Studio 2013 for the systems developing
environment because of the flexibility of Visual Studio for object oriented
programming. The vb.net is a formal programming language for developing the
Inventory system for lateral appliances therefore Visual Studio is essentially the
developing environment of the proposed system.

The inventory system for lateral appliances will be using Windows 7 as


operating system for its running environment because of the commonality of the
mentioned operating system among users making it easier for developing the
system in this platform.

11
QUEZON CITY POLYTECHNIC UNIVERSITY

For the database, the proponents decide to use Microsoft Access 2010 for
development and its implementation because it can easily installed and can be run
on multiple platform.

Hardware

The proposed system will be developed and implemented with the following
hardware specifications; which the proponents thought is best for the system.

Table 3.2

Hardware Specification

DEVELOPMENT
Hardware IMPLEMENTATION SYSTEM
Requirements SYSTEM SPECIFICATION
SPECIFICATION

Processor: Intel® Core™ i3- __________________


2328m CPU “ 2.20GHz
(4CPUs)

Motherboard: __________________

Memory (RAM): 4GB RAM __________________

PSU: __________________

Hard Disk Drive: 500GB __________________

Keyboard: __________________ __________________

Mouse: __________________ __________________

Monitor: __________________ __________________

12
QUEZON CITY POLYTECHNIC UNIVERSITY

The proponents decided to build the project using the specification mention
above due to the availability of the said hardware. These kinds of specifications are
easy to avail and are very useful in terms of system development.

The specification is fit for developing the proposed project since the project
does not require much of the hardware in development and implementation besides
the workstations and the networking tools that shall be used in inventory system for
lateral appliances.

The proponents thought that using too much high-end technology will not be
feasible for the project concluding that the stated specification is the most fitting for
the development.

13
QUEZON CITY POLYTECHNIC UNIVERSITY

INVENTORY SYSTEM

Output

INVENTORY SYSTEM (NEW)

FORM LOG IN

Imports System.Data.OleDb

Public Class formlogin


Dim cmd As OleDbCommand = Nothing
Private Sub CmdAdminLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles CmdAdminLogin.Click
If Len(Trim(TxtAdminUserName.Text)) = 0 Then

14
QUEZON CITY POLYTECHNIC UNIVERSITY

MessageBox.Show("Please enter user name", "Input Error", MessageBoxButtons.OK,


MessageBoxIcon.Exclamation)
TxtAdminUserName.Focus()
Exit Sub
End If
If Len(Trim(TxtAdminPassword.Text)) = 0 Then
MessageBox.Show("Please enter password", "Input Error", MessageBoxButtons.OK,
MessageBoxIcon.Exclamation)
TxtAdminPassword.Focus()
Exit Sub
End If
Try
Dim cn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & connStr
& "")
If cn.State = ConnectionState.Open Then
cn.Close()
End If
cn.Open()
Dim dr1 As OleDbDataReader
Dim com As New OleDbCommand
com.CommandText = "select [UserID],[Pass] from AdminInfo where UserID = @UName"
Dim UName As OleDbParameter = New OleDbParameter("@UName", OleDbType.VarWChar, 20)
UName.Value = UCase(TxtAdminUserName.Text.ToString())
com.Parameters.Add(UName)
com.Connection = cn
dr1 = com.ExecuteReader
If dr1.Read Then
If UCase(dr1("Pass")) = UCase(TxtAdminPassword.Text) Then
cn.Close()
CBformState.SelectedItem = "Admin"
Dim obj As New main
Me.Hide()
obj.Show()
Else
MessageBox.Show("Incorrect Username", "Input Error", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
cn.Close()
LinkLabel2.Visible = True
LinkLabel2.Text = "Forget Password"
txtPassword.Focus()
Return
End If
Else
MessageBox.Show("Incorrect Password", "Input Error", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
cn.Close()
txtUserName.Focus()
Return
End If

15
QUEZON CITY POLYTECHNIC UNIVERSITY

Catch ex As Exception
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
Private Sub CmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
CmdLogin.Click
If Len(Trim(txtUserName.Text)) = 0 Then
MessageBox.Show("Please enter user name", "Input Error", MessageBoxButtons.OK,
MessageBoxIcon.Exclamation)
txtUserName.Focus()
Exit Sub
End If
If Len(Trim(txtPassword.Text)) = 0 Then
MessageBox.Show("Please enter password", "Input Error", MessageBoxButtons.OK,
MessageBoxIcon.Exclamation)
txtPassword.Focus()
Exit Sub
End If
Try
Dim cn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & connStr
& "")
If cn.State = ConnectionState.Open Then
cn.Close()
End If
cn.Open()
Dim dr1 As OleDbDataReader
Dim com As New OleDbCommand
com.CommandText = "select [UserID],[Pass] from UserInfo where UserID = @UName"
Dim UName As OleDbParameter = New OleDbParameter("@UName", OleDbType.VarWChar, 30)
UName.Value = UCase(txtUserName.Text.ToString())
com.Parameters.Add(UName)
com.Connection = cn
dr1 = com.ExecuteReader
If dr1.Read Then
If UCase(dr1("Pass")) = UCase(txtPassword.Text) Then
cn.Close()
CBformState.SelectedItem = "User"
Dim obj As New main
Me.Hide()
obj.Show()
Else
MessageBox.Show("Incorrect Password", "Input Error", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
cn.Close()
LinkLabel1.Visible = True
LinkLabel1.Text = "Forget Password"
txtPassword.Focus()
Return
End If

16
QUEZON CITY POLYTECHNIC UNIVERSITY

Else
MessageBox.Show("Incorrect Username, "Input Error", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
cn.Close()
txtUserName.Focus()
Return
End If

Catch ex As Exception
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
Private Sub CmdCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
CmdCancel.Click
End
End Sub
Private Sub CmdAdmincancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles CmdAdmincancel.Click
End
End Sub
Private Sub TxtAdminUserName_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TxtAdminUserName.KeyPress
Dim NotAllowed As String = "~`@%^&+={[}]()!:,;'><?/|\-.#+"
If e.KeyChar <> ControlChars.Back = True Then
If NotAllowed.IndexOf(e.KeyChar) = -1 = False Then
e.Handled = True
End If
End If
End Sub
Private Sub TxtAdminPassword_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles TxtAdminPassword.KeyPress
Dim NotAllowed As String = "~`@%^&+={[}]()!:,;'><?/|\-.#+"
If e.KeyChar <> ControlChars.Back = True Then
If NotAllowed.IndexOf(e.KeyChar) = -1 = False Then
e.Handled = True
End If
End If
End Sub
Private Sub txtUserName_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtUserName.KeyPress
Dim NotAllowed As String = "~`@%^&+={[}]()!:,;'><?/|\-.#+"
If e.KeyChar <> ControlChars.Back = True Then
If NotAllowed.IndexOf(e.KeyChar) = -1 = False Then
e.Handled = True
End If
End If
End Sub
Private Sub txtPassword_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtPassword.KeyPress

17
QUEZON CITY POLYTECHNIC UNIVERSITY

Dim NotAllowed As String = "~`@%^&+={[}]()!:,;'><?/|\-.#+"


If e.KeyChar <> ControlChars.Back = True Then
If NotAllowed.IndexOf(e.KeyChar) = -1 = False Then
e.Handled = True
End If
End If
End Sub
Private Sub FrmLogin_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
End
End Sub
Private Sub LinkLabel1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles
LinkLabel1.Click
Me.Hide()
TxtAdminUserName.Text = ""
TxtAdminPassword.Text = ""
txtUserName.Text = ""
txtPassword.Text = ""
LinkLabel1.Visible = False
LinkLabel2.Visible = False
Me.CBformState.Text = "User"
FrmForgetPass.Show()
End Sub
Private Sub LinkLabel2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles
LinkLabel2.Click
Me.Hide()
TxtAdminUserName.Text = ""
TxtAdminPassword.Text = ""
txtUserName.Text = ""
txtPassword.Text = ""
LinkLabel1.Visible = False
LinkLabel2.Visible = False
Me.CBformState.Text = "Admin"
FrmForgetPass.Show()
End Sub
Private Sub TabControl1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles
TabControl1.Click
TxtAdminUserName.Text = ""
TxtAdminPassword.Text = ""
txtUserName.Text = ""
txtPassword.Text = ""
LinkLabel1.Visible = False
LinkLabel2.Visible = False
End Sub
End Class

18
QUEZON CITY POLYTECHNIC UNIVERSITY

FRMFORGETPASS

Imports System.Data.OleDb

Public Class frmforgetpass


Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button3.Click

Me.Close()
End Sub
Private Sub FrmForgetPass_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Me.Dispose()
formlogin.Show()
End Sub
Private Sub LinkLabel2_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel2.LinkClicked
Me.Dispose()
formlogin.Show()
End Sub
Sub clear()
txtUserName.Clear()
dtpDOB.Value = Today
txtPOB.Clear()
txtUserID.Clear()
End Sub
Private Function RequiredEntry() As Boolean
If txtUserName.Text = "" Or txtPOB.Text = "" Or txtUserID.Text = "" Then
MsgBox("Please enter all information....", MsgBoxStyle.Critical, "Attention...")
Return True
Exit Function
End If
End Function

19
QUEZON CITY POLYTECHNIC UNIVERSITY

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


Button1.Click
If RequiredEntry() = True Then
Return
End If
Try
Dim cn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" &
connStr & "")
Dim dr1 As OleDbDataReader
Dim com As New OleDbCommand

If formlogin.CBformState.Text = "User" Then


If cn.State = ConnectionState.Open Then
cn.Close()
End If
cn.Open()
com.CommandText = "select [UserID],[UserName],[DateOfBirth],[PlaceOfBirth],[Pass] from
userinfo where userid = '" & txtUserID.Text & "'"
com.Connection = cn
If cn.State = ConnectionState.Closed Then cn.Open()
dr1 = com.ExecuteReader
If dr1.Read Then
If UCase(dr1(1)) = UCase(txtUserName.Text) And UCase(dr1(2)) = UCase(dtpDOB.Text) And
UCase(dr1(3)) = UCase(txtPOB.Text) Then
MessageBox.Show("Your password is .:[ '" & UCase(dr1(4)).ToString() & "' ]:. ", "Info",
MessageBoxButtons.OK, MessageBoxIcon.Information)
LinkLabel2.Visible = True
cn.Close()
Else
MessageBox.Show("Incorect input", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error)
cn.Close()
End If
Else
MessageBox.Show("UserID is wrong", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error)
cn.Close()
End If

End If

If formlogin.CBformState.Text = "Admin" Then


If cn.State = ConnectionState.Open Then
cn.Close()
End If
cn.Open()
com.CommandText = "select [UserID],[UserName],[DateOfBirth],[PlaceOfBirth],[Pass] from
AdminInfo where userid = '" & txtUserID.Text & "'"
com.Connection = cn

20
QUEZON CITY POLYTECHNIC UNIVERSITY

dr1 = com.ExecuteReader
If dr1.Read Then
If UCase(dr1("UserName")) = UCase(txtUserName.Text) And UCase(dr1("DateOfBirth")) =
UCase(dtpDOB.Text) And UCase(dr1("PlaceOfBirth")) = UCase(txtPOB.Text) Then
MessageBox.Show("Your password is .:[ '" & UCase(dr1(4)).ToString() & "' ]:. ", "Info",
MessageBoxButtons.OK, MessageBoxIcon.Information)
LinkLabel2.Visible = True
cn.Close()
Else
MessageBox.Show("Incorect input!!! ", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error)
cn.Close()
End If
Else
MessageBox.Show("UserID is wrong!!! ", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error)
cn.Close()
End If
End If
Catch ex As Exception
MessageBox.Show(ex.Message.ToString(), "Data Error")
Exit Sub
End Try
End Sub
Private Sub FrmForgetPass_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
dtpDOB.Value = Today
End Sub
End Class

FRMITEM

21
QUEZON CITY POLYTECHNIC UNIVERSITY

Imports System.Data.OleDb
Public Class frmItem
Dim adding As Boolean
Dim updating As Boolean
Public search As Boolean
Dim getStocksOnHand As Integer

Private Sub GetQuantity()


Try
sqL = "SELECT StocksOnhand FROM Item WHERE ItemNo = " & txtItemNo.Text & ""
ConnDB()
cmd = New OleDbCommand(sqL, conn)
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
If dr.Read = True Then
getStocksOnHand = dr(0)
End If
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub AddStocksInUpdating()
If txtItemNo.Text = "" Then
MsgBox("Please select item to add stocks.", MsgBoxStyle.Critical, "Select Item")
Exit Sub
End If

Dim strStocksIn As String

22
QUEZON CITY POLYTECHNIC UNIVERSITY

strStocksIn = InputBox("Enter number of items : ", "Stocks In")


txtQuantity.Text = Val(txtQuantity.Text) + Val(strStocksIn)
Try
sqL = "INSERT INTO StocksIn(ItemNo, ItemQuantity, SIDate, CurrentStocks) VALUES('" &
txtItemNo.Text & "', '" & strStocksIn & "', '" & Format(Date.Now, "Short Date") & "', " & txtQuantity.Text & ")"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
Dim i As Integer
i = cmd.ExecuteNonQuery()
If i > 0 Then
MsgBox("Stocks added successfully", MsgBoxStyle.Information, "Stocks In")
Updateproduct()
End If
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub AddStocksInAdding()
Try
sqL = "INSERT INTO StocksIn(ItemNo, ItemQuantity, SIDate) VALUES('" & txtItemNo.Text & "', '" &
txtQuantity.Text & "', '" & Format(Date.Now, "Short Date") & "')"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
cmd.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub GetItemNo()
Try
sqL = "SELECT ItemNo From Item Order By ItemNo desc"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
If dr.Read = True Then
txtItemNo.Text = dr(0) + 1
Else
txtItemNo.Text = 1
End If
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()

23
QUEZON CITY POLYTECHNIC UNIVERSITY

conn.Close()
End Try
End Sub
Private Sub AddItem()
txtUnitPrice.Text = txtUnitPrice.Text.Replace(",", "")

Try
sqL = "Insert Into Item(ItemCode, iDescription, StocksOnHand, UnitPrice) VALUES('" &
txtItemCode.Text & "', '" & txtDescription.Text & "', '" & txtQuantity.Text & "', '" & txtUnitPrice.Text & "')"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
Dim i As Integer
i = cmd.ExecuteNonQuery
If i > 0 Then
MsgBox("Item Added", MsgBoxStyle.Information, "Add Item")
Else
MsgBox("Failed to add item", MsgBoxStyle.Critical, "Add Item")
End If
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub UpdateItem()
txtUnitPrice.Text = txtUnitPrice.Text.Replace(",", "")
Try
sqL = "UPDATE Item SET ItemCode = '" & txtItemCode.Text & "', iDescription = '" &
txtDescription.Text & "', StocksOnHand = '" & txtQuantity.Text & "', UnitPrice = '" & txtUnitPrice.Text & "'
WHERE ItemNo = " & txtItemNo.Text & ""
ConnDB()
cmd = New OleDbCommand(sqL, conn)
Dim i As Integer
i = cmd.ExecuteNonQuery
If i > 0 Then
MsgBox("Item Updated", MsgBoxStyle.Information, "Update Item")
Else
MsgBox("Failed to update item", MsgBoxStyle.Information, "Update Item")
End If
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub GetItemRecord()
Try

24
QUEZON CITY POLYTECHNIC UNIVERSITY

sqL = "SELECT ItemCode, iDescription, StocksOnHand, UnitPrice FROm Item Where ItemNo = "
& txtItemNo.Text & ""
ConnDB()
cmd = New OleDbCommand(sqL, conn)
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
If dr.Read = True Then
txtItemCode.Text = dr(0)
txtDescription.Text = dr(1)
txtQuantity.Text = dr(2)
txtUnitPrice.Text = dr(3)
End If
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub ClearFields()
txtItemNo.Text = ""
txtItemCode.Text = ""
txtDescription.Text = ""
txtQuantity.Text = ""
txtUnitPrice.Text = ""
End Sub
Private Sub EnabledText()
txtItemNo.Enabled = True
txtItemCode.Enabled = True
txtDescription.Enabled = True
txtQuantity.Enabled = True
txtUnitPrice.Enabled = True
End Sub
Private Sub DisabledText()
txtItemNo.Enabled = False
txtItemCode.Enabled = False
txtDescription.Enabled = False
txtQuantity.Enabled = False
txtUnitPrice.Enabled = False
End Sub
Private Sub EnabledButton()
btnAdd.Enabled = True
btnUpdate.Enabled = True
btnSearch.Enabled = True
btnClose.Enabled = True
btnSave.Enabled = False
btnCancel.Enabled = False
End Sub
Private Sub DisabledButton()
btnAdd.Enabled = False

25
QUEZON CITY POLYTECHNIC UNIVERSITY

btnUpdate.Enabled = False
btnSearch.Enabled = False
btnClose.Enabled = False
btnSave.Enabled = True
btnCancel.Enabled = True
End Sub
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnAdd.Click
adding = True
updating = False
EnabledText()
DisabledButton()
ClearFields()
GetItemNo()
txtItemCode.Focus()
txtItemNo.Enabled = False
End Sub
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnUpdate.Click
adding = False
updating = True
EnabledText()
DisabledButton()
txtItemCode.Focus()
txtItemNo.Enabled = False
End Sub
Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnSearch.Click
search = True
viewitm.ShowDialog()
End Sub
Private Sub txtItemNo_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles txtItemNo.TextChanged
If search = True Then
GetItemRecord()
search = False
End If
End Sub
Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnClose.Click
Me.Close()
End Sub
Private Sub Updateproduct()
GetQuantity()
UpdateItem()
DisabledText()
EnabledButton()
ClearFields()
End Sub

26
QUEZON CITY POLYTECHNIC UNIVERSITY

Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


btnSave.Click
If adding = True Then
AddItem()
AddStocksInAdding()
DisabledText()
EnabledButton()
ClearFields()
Else
Updateproduct()
End If
End Sub
Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
btnCancel.Click
DisabledText()
EnabledButton()
ClearFields()
End Sub
Private Sub frmItem_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
EnabledButton()
DisabledText()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
AddStocksInUpdating()
End Sub
End Class

FRMLOADITEM

27
QUEZON CITY POLYTECHNIC UNIVERSITY

Imports System. Data.OleDb

Public Class frmLoadItem


Private Sub LoadItem()
Try
sqL = "SELECT ItemNo, itemCode, iDescription, StocksOnHand FROM Item Order By iDescription"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
dgw.Rows.Clear()
Do While dr.Read = True
dgw.Rows.Add(dr(0), dr(1), dr(2), dr(3))
Loop
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub Search()
Try
sqL = "SELECT ItemNo, itemCode, iDescription, StocksOnHand FROM Item WHERE iDescription
LIKE '" & TextBox1.Text & "%' Order By iDescription"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
dgw.Rows.Clear()
Do While dr.Read = True
dgw.Rows.Add(dr(0), dr(1), dr(2), dr(3))
Loop

Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub frmLoadItem_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
LoadItem()
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles TextBox1.TextChanged
Search()
End Sub

28
QUEZON CITY POLYTECHNIC UNIVERSITY

Private Sub dgw_CellDoubleClick(ByVal sender As Object, ByVal e As


System.Windows.Forms.DataGridViewCellEventArgs) Handles dgw.CellDoubleClick
If frmItem.search = True Then
frmItem.txtItemNo.Text = dgw.CurrentRow.Cells(0).Value
frmItem.search = False
Me.Close()
End If
End Sub
End Class

FRMMAIN

Imports System.Data.OleDb

Public Class main


Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Timer1.Tick
TimeStatusLabel.Text = Now.ToLongTimeString.ToString()
End Sub
Private Sub FrmMain_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If formlogin.CBformState.Text = "" Then
Me.Dispose()
formlogin.Show()
formlogin.TxtAdminUserName.Text = ""
formlogin.TxtAdminPassword.Text = ""
formlogin.txtUserName.Text = ""

29
QUEZON CITY POLYTECHNIC UNIVERSITY

formlogin.txtPassword.Text = ""
Return
End If
Try
Dim cn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & connStr
& "")
If cn.State = ConnectionState.Open Then
cn.Close()
End If
cn.Open()
Dim dr1 As OleDbDataReader
Dim com As New OleDbCommand
If formlogin.CBformState.Text = "User" Then
com.CommandText = "select [UserID],[UserName] from userinfo where UserID = '" &
formlogin.txtUserName.Text & "'"
com.Connection = cn
dr1 = com.ExecuteReader
If dr1.Read Then
Dim intResponse As Integer
intResponse = MessageBox.Show("Do you really want to logout?", "Response",
MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If intResponse = MsgBoxResult.No Then
e.Cancel = True
Else
MsgBox("Thank you!! '" & UCase(dr1("UserName")).ToString() & "'" & vbNewLine & "" &
vbNewLine & " God Bless U...", MsgBoxStyle.Information, "God Bless...")
cn.Close()
Me.Dispose()
formlogin.Show()
formlogin.TxtAdminUserName.Text = ""
formlogin.TxtAdminPassword.Text = ""
formlogin.txtUserName.Text = ""
formlogin.txtPassword.Text = ""
End If
End If
Else
If formlogin.CBformState.Text = "Admin" Then
Dim intResponse As Integer
intResponse = MessageBox.Show("Do you really want to logout? ", "Response",
MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If intResponse = MsgBoxResult.No Then
e.Cancel = True
Else
MsgBox("Thank you, God Bless...", MsgBoxStyle.Information, "God Bless U...")
cn.Close()
Me.Dispose()
formlogin.Show()
formlogin.TxtAdminUserName.Text = ""
formlogin.TxtAdminPassword.Text = ""

30
QUEZON CITY POLYTECHNIC UNIVERSITY

formlogin.txtUserName.Text = ""
formlogin.txtPassword.Text = ""
End If
End If
End If
Catch ex As Exception
MsgBox(ex.Message(), MsgBoxStyle.Critical, "Error...")
End Try
End Sub
Private Sub FrmMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ToolStripStatusLabel1.Text = "UserName :"
ToolStripStatusLabel3.Text = "Date :"
DateStatusLabel.Text = Format(Now, "dd/MM/yyy")
ToolStripStatusLabel5.Text = "Time :"
Try
If formlogin.CBformState.Text = "User" Then
Dim cn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" &
connStr & "")
If cn.State = ConnectionState.Open Then
cn.Close()
End If
cn.Open()
Dim dr1 As OleDbDataReader
Dim com As New OleDbCommand
com.CommandText = "select [UserID],[UserName] from UserInfo where UserID = @UName"
Dim UName As OleDbParameter = New OleDbParameter("@UName", OleDbType.VarWChar,
30)
UName.Value = UCase(formlogin.txtUserName.Text.ToString())
com.Parameters.Add(UName)
com.Connection = cn
dr1 = com.ExecuteReader
If dr1.Read Then
UserNameStatusLabel.Text = UCase(dr1("UserName").ToString())
ToolStripRegistartion.Visible = False
ToolStripSeparator4.Visible = False
cn.Close()
Return
End If
Else
UserNameStatusLabel.Text = "ADMIN"
ToolStripRegistartion.Visible = True
End If
Catch ex As Exception
MsgBox(ex.Message(), MsgBoxStyle.Critical, "Error...")
End Try
End Sub
Private Sub ToolStripRegistartion_Click(sender As Object, e As EventArgs) Handles
ToolStripRegistartion.Click
registration.Show()

31
QUEZON CITY POLYTECHNIC UNIVERSITY

End Sub
Private Sub ToolStripButton1_Click(sender As Object, e As EventArgs) Handles ToolStripButton1.Click
frmItem.Show()
End Sub
Private Sub ToolStripButton2_Click(sender As Object, e As EventArgs) Handles ToolStripButton2.Click
frmtransaction.Show()
End Sub
Private Sub ToolStripUserInfo_Click(sender As Object, e As EventArgs) Handles ToolStripUserInfo.Click
frmLoadItem.Show()
End Sub
Private Sub ToolStripLogout_Click(sender As Object, e As EventArgs) Handles ToolStripLogout.Click
Me.Close()
formlogin.Show()
End Sub
End Class

FRMTRANSACTION

Imports System.Data.OleDb

Public Class frmtransaction

Dim totalprice As Double

Dim totalCost As Double

Dim getProdtoDelete As Integer

32
QUEZON CITY POLYTECHNIC UNIVERSITY

Private Sub GetItemInfo()

Try

sqL = "SELECT ItemCode, IDescription, UnitPrice, itemNo FROM ITEM Where IDescription = '" & Val(txtSearch.Text) &
"'"

ConnDB()

cmd = New OleDbCommand(sqL, conn)

dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)

If dr.Read = True Then

productCode = dr("ItemCode")

itemDesc = dr("IDescription")

itemPrice = dr("UnitPrice")

itemNum = dr("itemNo")

End If

txtSearch.Text = ""

Catch ex As Exception

MsgBox(ex.Message)

Finally

cmd.Dispose()

conn.Close()

End Try

End Sub

Public Sub addtolist()

Dim sql As String

Dim cmd As New OleDb.OleDbCommand

Dim dr As OleDb.OleDbDataReader

Try

sql = "SELECT * FROM item where IDescription = '" & txtSearch.Text & "'"

33
QUEZON CITY POLYTECHNIC UNIVERSITY

ConnDB()

With cmd

.CommandText = sql

.Connection = conn

End With

dr = cmd.ExecuteReader

While dr.Read()

If txtSearch.Text = "" Then

Else

Dim price As Decimal = dr("UnitPrice")

Dim stockonhand As Decimal = dr("StocksOnHand")

Dim itemcode As String = dr("ItemCode")

Dim itemdesc As String = dr("IDescription")

itemNum = dr("ItemNo")

itemPrice = dr("UnitPrice")

Try

sql = "INSERT INTO transactionDetail(InvoiceNo, ItemNo, itemPrice, Quantity) Values('" & lblInvoiceNo.Text &
"', '" & itemNum & "', '" & itemPrice & "', '" & txtQuantity.Text & "')"

ConnDB()

cmd = New OleDbCommand(sql, conn)

cmd.ExecuteNonQuery()

Catch ex As Exception

MsgBox(ex.Message)

34
QUEZON CITY POLYTECHNIC UNIVERSITY
Finally

cmd.Dispose()

conn.Close()

End Try

totalprice = Val(txtQuantity.Text) * price

dgvItems.Rows.Add(txtQuantity.Text, itemcode, itemdesc, price, totalprice)

UpdateDecreaseQuantity()

txtSearch.Clear()

End If

End While

Catch ex As Exception

MsgBox(ex.Message)

Finally

conn.Close()

End Try

End Sub

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick

lblTime.Text = Format(Date.Now, "Long Time")

lbldate.Text = Date.Now.ToString("dddd")

End Sub

Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click

viewitm.Show()

35
QUEZON CITY POLYTECHNIC UNIVERSITY
End Sub

Private Sub txtSearch_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles


txtSearch.KeyDown

If txtSearch.Text = Nothing Then

'''''''''''''''''''''''

Else

If e.KeyCode = Keys.Enter Then

e.SuppressKeyPress = True

txtQuantity.Focus()

End If

End If

End Sub

Private Sub autocomplete()

Try

ConnDB()

Dim dt As New DataTable

Dim ds As New DataSet

ds.Tables.Add(dt)

Dim da As New OleDbDataAdapter("Select IDescription from Item", conn)

da.Fill(dt)

Dim r As DataRow

txtSearch.AutoCompleteCustomSource.Clear()

For Each r In dt.Rows

txtSearch.AutoCompleteCustomSource.Add(r.Item(0).ToString)

Next

36
QUEZON CITY POLYTECHNIC UNIVERSITY
conn.Close()

Catch ex As Exception

MessageBox.Show(ex.ToString)

End Try

End Sub

Private Sub frmtransaction_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles


Me.KeyDown

If (e.Control AndAlso (e.KeyCode = Keys.P)) Then

btnPayment.PerformClick()

ElseIf (e.Control AndAlso (e.KeyCode = Keys.N)) Then

btnNewTransacation.PerformClick()

ElseIf (e.Control AndAlso (e.KeyCode = Keys.R)) Then

btnRemove.PerformClick()

ElseIf (e.Control AndAlso (e.KeyCode = Keys.Escape)) Then

btnClose.PerformClick()

End If

End Sub

Private Sub frmtransaction_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Me.KeyPreview = True

btnNewTransacation.PerformClick()

getinvoiceNo()

Timer1.Start()

autocomplete()

End Sub

37
QUEZON CITY POLYTECHNIC UNIVERSITY

Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

Me.Show()

Me.Close()

End Sub

Private Sub txtQuantity_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles


txtQuantity.KeyDown

If txtQuantity.Text = Nothing Then

''''''''''''''''''''''''''''''''

Else

If e.KeyCode = Keys.Enter Then

e.SuppressKeyPress = True

addtolist()

totalCost += totalprice

lblTotalCost.Text = Format(totalCost, "#0")

txtQuantity.Clear()

txtSearch.Focus()

End If

End If

End Sub

Private Sub UpdateDecreaseQuantity()

Try

sqL = "Update Item SET StocksOnHand = stocksOnHand - " & Val(txtQuantity.Text) & " WHERE IDescription = '" &
txtSearch.Text & "'"

ConnDB()

cmd = New OleDbCommand(sqL, conn)

38
QUEZON CITY POLYTECHNIC UNIVERSITY
cmd.ExecuteNonQuery()

Catch ex As Exception

MsgBox(ex.Message)

Finally

cmd.Dispose()

conn.Close()

End Try

End Sub

Private Sub btnNewTransacation_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles


btnNewTransacation.Click

dgvItems.Rows.Clear()

lblTotalCost.Text = "0.00"

totalCost = 0

txtSearch.Focus()

End Sub

Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click

If dgvItems.Rows.Count = 0 Then

MsgBox("No Transaction", MsgBoxStyle.Exclamation, "Remove Item")

txtSearch.Focus()

Exit Sub

Else

If MsgBox("Are you sure you want to Delete?", MsgBoxStyle.YesNo, "Delete Item") = MsgBoxResult.Yes Then

RemoveItem()

txtSearch.Focus()

39
QUEZON CITY POLYTECHNIC UNIVERSITY
Else

Exit Sub

End If

End If

End Sub

Private Sub UpdateIncreaseQuantity()

Try

sqL = "Update Item SET StocksOnHand = stocksOnHand + '" & dgvItems.CurrentRow.Cells(0).Value & "' WHERE
ItemNo = " & getProdtoDelete & ""

ConnDB()

cmd = New OleDbCommand(sqL, conn)

cmd.ExecuteNonQuery()

Catch ex As Exception

MsgBox(ex.Message)

Finally

cmd.Dispose()

conn.Close()

End Try

End Sub

Private Sub RemoveItem()

lblTotalCost.Text = Format(lblTotalCost.Text - dgvItems.CurrentRow.Cells(4).Value, "#,##0.00")

GetProductIDToDelete()

UpdateIncreaseQuantity()

dgvItems.Rows.Remove(dgvItems.SelectedRows.Item(0))

totalCost = lblTotalCost.Text

40
QUEZON CITY POLYTECHNIC UNIVERSITY
End Sub

Private Sub GetProductIDToDelete()

Try

sqL = "SELECT ItemNo FROM item Where itemCode = '" & dgvItems.CurrentRow.Cells(1).Value & "'"

ConnDB()

cmd = New OleDbCommand(sqL, conn)

dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)

If dr.Read = True Then

getProdtoDelete = dr("itemNo")

Try

sqL = "DELETE FROM transactionDetail WHERE itemNo = " & getProdtoDelete & " AND InvoiceNo = '" &
lblInvoiceNo.Text & "'"

ConnDB()

cmd = New OleDbCommand(sqL, conn)

Dim i As Integer

i = cmd.ExecuteNonQuery

If i > 0 Then

Else

End If

Catch ex As Exception

MsgBox(ex.Message)

End Try

End If

Catch ex As Exception

41
QUEZON CITY POLYTECHNIC UNIVERSITY
MsgBox(ex.Message)

Finally

cmd.Dispose()

conn.Close()

End Try

End Sub

Private Sub btnPayment_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPayment.Click

frmpayment.ShowDialog()

End Sub

End Class

FRMPAYMENT

42
QUEZON CITY POLYTECHNIC UNIVERSITY

Imports System.Data.OleDb
Public Class frmpayment
Dim result As Integer
Private Sub frmpayment_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
txttotalcost.Text = frmtransaction.lblTotalCost.Text
txtrecieved.Select()
txtchange.Text = "0.00"
End Sub
Private Sub txtrecieved_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles txtrecieved.KeyDown
If e.KeyCode = Keys.Enter Then
e.SuppressKeyPress = True
Try
ConnDB()
Dim cmd As New OleDbCommand
sqL = "INSERT INTO tbltransaction (InvoiceNo, transactionDate, transactionTime, TotalAmount,
CustomerNo) VALUES ('" & frmtransaction.lblInvoiceNo.Text & "' , '" & Date.Today & "' , '" &
frmtransaction.lblTime.Text & "' , '" & txttotalcost.Text & "' , '" & frmtransaction.lblCustomerName.Text & "')"
With cmd
.CommandText = sqL
.Connection = conn
End With
result = cmd.ExecuteNonQuery
If result > 0 Then
MsgBox("Thank you!")
txtchange.Clear()

43
QUEZON CITY POLYTECHNIC UNIVERSITY

txtrecieved.Clear()
txttotalcost.Clear()
getinvoiceNo()
frmtransaction.btnNewTransacation.PerformClick()
conn.Close()
Me.Close()
Else
MsgBox("Transaction not Saved!")
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
End Sub
Private Sub txtrecieved_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles txtrecieved.TextChanged
txtchange.Text = Val(txtrecieved.Text) - Val(txttotalcost.Text)
If Val(txtrecieved.Text) < Val(txttotalcost.Text) Then
txtchange.Text = "0.00"
End If
End Sub
End Class

FRMLOADITEM

Imports System.Data.OleDb

Public Class frmLoadItem

44
QUEZON CITY POLYTECHNIC UNIVERSITY

Private Sub LoadItem()


Try
sqL = "SELECT ItemNo, itemCode, iDescription, StocksOnHand FROM Item Order By iDescription"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
dgw.Rows.Clear()
Do While dr.Read = True
dgw.Rows.Add(dr(0), dr(1), dr(2), dr(3))
Loop
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub Search()
Try
sqL = "SELECT ItemNo, itemCode, iDescription, StocksOnHand FROM Item WHERE iDescription
LIKE '" & TextBox1.Text & "%' Order By iDescription"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
dgw.Rows.Clear()
Do While dr.Read = True
dgw.Rows.Add(dr(0), dr(1), dr(2), dr(3))
Loop
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub frmLoadItem_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
LoadItem()
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles TextBox1.TextChanged
Search()
End Sub
Private Sub dgw_CellDoubleClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles dgw.CellDoubleClick
If frmItem.search = True Then
frmItem.txtItemNo.Text = dgw.CurrentRow.Cells(0).Value
frmItem.search = False
Me.Close()

45
QUEZON CITY POLYTECHNIC UNIVERSITY

End If
End Sub
End Class

FRMSALEREPORT

Imports System.Data.OleDb
Public Class salereport
Private Sub LoadItem()
Try
sqL = "SELECT transactionID, transactionDate, transactionTime, TotalAmount FROM
tbltransaction Order By transactionDate"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
dgw.Rows.Clear()
Do While dr.Read = True
dgw.Rows.Add(dr(0), dr(1), dr(2), dr(3))
Loop
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
Private Sub salereport_Load(sender As Object, e As EventArgs) Handles MyBase.Load
LoadItem()
End Sub

46
QUEZON CITY POLYTECHNIC UNIVERSITY

CONNECTION MODULE
Imports System.Data.OleDb

Module connection
Public message As String = ""
Public sqL As String
Public cmd As OleDbCommand
Public dr As OleDbDataReader
Public conn As OleDbConnection
Public connStr As String = System.Environment.CurrentDirectory.ToString & "\Capstone.accdb"
Public Sub ConnDB()
Try
conn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & connStr &
"")
conn.Open()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Module

LOAD MODULE
Module loaddgv
Dim da As New OleDb.OleDbDataAdapter
Public Sub findThis(ByVal sql As String)
Try
conn.Open()
With cmd
.CommandText = sql
.Connection = conn
End With
Catch ex As Exception
MsgBox(ex.Message)
Finally

conn.Close()
End Try
End Sub
Public Sub fillTable(ByVal dtg As Object)
Dim dt As New DataTable
Try
da.SelectCommand = cmd
da.Fill(dt)
If dt.Rows.Count > 0 Then
dtg.Datasource = dt

47
QUEZON CITY POLYTECHNIC UNIVERSITY

End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Module
TRANSACTION MODULE
Imports System.Data.OleDbo
Public productCode As String
Public itemDesc As String
Public itemPrice As Double
Public itemNum As Integer
Sub getinvoiceNo()
Try
sqL = "SELECT InvoiceNo FROm tbltransaction Order By InvoiceNo desc"
ConnDB()
cmd = New OleDbCommand(sqL, conn)
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
If dr.Read = True Then
frmtransaction.lblInvoiceNo.Text = Val(dr("InvoiceNo")) + 1
Else
frmtransaction.lblInvoiceNo.Text = 100000000
End If
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
End Module

48
QUEZON CITY POLYTECHNIC UNIVERSITY

CHAPTER 4

ANALYSIS, PRESENTATION OF DATA

This chapter discussed the data analysis, presentation of data for inventory
system. The data gathered is through interviewed originally from the statement of
the said company owner. The research purpose is to help the management of small
business through menu system.

INTERVIEW METHODOLOGY
Mr. Fidelidindo Bolanos, the company owner was the only person who is being
interviewed the study no one is involved aside from her workers. The owner’s answer
the question honestly and researchers promised that the information wills kept
confidently and only for academic purposes.

1.) Does your establishment have an inventory system before?

No, we only use manual inventory, printed on a paper.


Mr. Fidelidindo Bolanos

2.) What do you think are the benefits of having an inventory system?

It’ll be more convenient and listing items will be made easy and secured.
Mr. Fidelidindo Bolanos

3.) Are you satisfied with the inventory system formulated by the students?

Not yet but the system is easy to use


Mr. Fidelidindo Bolanos

4.) Are you satisfied with the security to the system?

Not yet satisfied because it only requires 1 account to log


Mr. Fidelidindo Bolanos

49
QUEZON CITY POLYTECHNIC UNIVERSITY

5.) Which do you prefer, customized design or the design created by the
researchers?

I prefer the design made by the researchers I would like to see their creativity when it
comes in business.
Mr. Fidelidindo Bolanos

6.) Have you encountered any difficulties while using the system?

None so far.
Mr. Fidelidindo Bolanos

7.)Is the system helpful to your company?

So far, I haven’t transferred the list of the items but as soon as the new system is done by the
researchers, I will observe how the system will help my company.

Mr. Fidelidindo Bolanos

8.) Does the system developed / improved your company?

Not yet so far.


Mr. Fidelidindo Bolanos

9.) Rate the system fom 1 – 10

Mr. Fidelidindo Bolanos

10.) Do you have any recommendations for the improvement of the system?

I would like to have an inventory system that has a simple design but not plain, easy to
read font sizes.
50 Mr. Fidelidindo Bolanos
QUEZON CITY POLYTECHNIC UNIVERSITY

CHAPTER 5
REPORTING FINDINGS, DRAWING CONCLUSIONS AND MAKING
RECOMMENDATIONS

SUMMARY OF FINDINGS
Upon interview, interpretation of data, the following Findings arrived:

1. VEEDAB company offers different household appliances like washing machine,


electricfan, refrigerator. They’ve been into the industry for _ years, and they only
have three staffs including the owner.

2. VEEDAB Company uses manual sales and inventory monitoring.

3. The usual problems encountered by VEEDAM in terms of sale and inventory


monitoring are as follows:
.
 Unsystematic recording of products
 The business owner will find it difficult to see if some products are
lacking or missing because they don’t have any written records about
the available products.
 Unreliable inventory and sales transactions, they cannot produce any
inventory or sales report that are finally consistent and dependable.

Conclusions
VEEDAB Company common difficulty is under the proper and systematic
monitoring of sales and inventory. Mr. Bolanos cannot easily checked and accessed
which appliances are out of stocks, outdated and must be disposed. This result for a
delay and providing quality products to the customers.

Computerized Sales and Inventory System will give convenience for VEEDAB,
the proposed system is composed of details like Model, Category, Price and
Quantity of the product, date and time purchased and disposed.

Recommendation
The researcher recommended using inventory system for monitoring the sales
inventory, monitoring the records, monitoring available product and effective and
efficiency of sales monitoring system.

51
QUEZON CITY POLYTECHNIC UNIVERSITY

List of References
https://bizfluent.com/about-5518506-importance-inventory-management-
systems.html
https://www.handshake.com/blog/what-is-inventory-control/
https://yourbusiness.azcentral.com/role-inventory-systems-13701.html

https://www.scanco.com/top-five-benefits-of-a-good-inventory-management-
strategy/
https://www.hashmicro.com/blog/importance-inventory-management-software-
industries/

https://ph.zapmeta.ws/ws?q=inventory%20mangement%20system&asid=zm_ph_gb
_1_cg1_10&mt=b&nw=g&de=c&ap=1o1

52
QUEZON CITY POLYTECHNIC UNIVERSITY

RONEL SALMASAN ADLAWON

Address : #47Kadalagahan st. Brgy.Gulod Novaliches Quezon City


Contact No : 09394033660
Email Address : ronelhyper12r@gmail.com

PERSONAL INFORMATION

Nickname : Nel
Age : 18 y/o
Birthdate : May 31, 1999
Birth Place : Quezon City
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’7”
Weight : 50 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Bonifacio Adlawon
Mother’s Name: Mrs. Gloria Adlawon
Skills : Create a program using Turbo C++ and Visual Basic Studio

53
QUEZON CITY POLYTECHNIC UNIVERSITY

LENNY ANN COLLADO BALANAY

Address : #44 h – Duhat St. Balingasa, Balintawak, Quezon City


Contact No : 09096071884
Email Address : balanaylennyann@gmail.com

PERSONAL INFORMATION

Nickname : Len
Age : 17 y/o
Birthdate : April 14, 2000
Birth Place : Manila
Gender : Female
Nationality : Filipino
Status : Single
Height : 5’1”
Weight : 57 kls
Religion : Iglesia Ni Cristo
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Antonio Q. Balanay
Mother’s Name: Mrs. Belinda C. Balanay
Skills : Create a program using Turbo C++ , Visual Basic Studio and Editing Skills

54
QUEZON CITY POLYTECHNIC UNIVERSITY

JAYVEE ACOSTA BORJA

Address : #JP RIZAL st. Brgy.Sta lucia Novaliches Quezon City


Contact No : 09469217208
Email Address : jayveelyka0708@gmail.com

PERSONAL INFORMATION

Nickname : Vee
Age : 18 years old
Birthdate : November 8, 1999
Birth Place : House
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’7”
Weigt : 65 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Christopher Borja
Mother’s Name: Mrs. Rowena Borja
Skills : Create a program using Turbo C++ and Visual Basic Studio

55
QUEZON CITY POLYTECHNIC UNIVERSITY

RASHELLE CAPUNIS

Address : #27 L, Tullahan rd. Sta. Quieteria Caloocan City


Contact No : 099050571192
Email Address : rashelle.capunis01@yahoo.com

PERSONAL INFORMATION

Nickname : Rashelle
Age : 18 y/o
Birthdate : January 01, 2000
Birth Place : Caloocan City
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’5”
Weight : 68 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Roger Capunis
Mother’s Name: Mrs. Louisil Capunis
Skills : Create a program using Turbo C++ and Visual Basic Studio

56
QUEZON CITY POLYTECHNIC UNIVERSITY

RYAN BARBARA DECENA

Address : #56 Sarmiento st. Brgy. Sta. Monica Novaliches Quezon City
Contact No : 09062005391
Email Address : yang_decena@yahoo.com

PERSONAL INFORMATION

Nickname : Ryan
Age : 18 y/o
Birthdate : October 19, 1999
Birth Place : Quezon City
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’5”
Weight : 44 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Dennis Decena
Mother’s Name: Mrs. Angelina Decena
Skills : Create a program using Turbo C++ and Visual Basic Studio

57
QUEZON CITY POLYTECHNIC UNIVERSITY

DEMELES DOLFO JR.

Address : Don Crispulo st, Brgy.Gulod Novaliches Quezon City


Contact No : 09270279709
Email Address : olaportjennifer@gmail.com

PERSONAL INFORMATION

Nickname : Jay R
Age : 18
Birthdate : July 24, 1999
Birth Place : Proj 8 Quezon City
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’9
Weight : 49 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Demeles D Dolfo Sr
Mother’s Name: Mrs. Rowena F, Ramos
Skills : Assembly and Disassembly

58
QUEZON CITY POLYTECHNIC UNIVERSITY

PAMELA CATIS FABALLA

Address : #4 T Alonzo st. Brgy. Sta.Lucia Novaliches Quezon City


Contact No : 09128347272
Email Address : pamela.faballa@yahoo.com

PERSONAL INFORMATION

Nickname : Ella
Age : 17 y/o
Birthdate : July 20, 2000
Birth Place : East Avenue
Gender : Female
Nationality : Filipino
Status : Single
Height : 5’1”
Weight : 38 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Joel Faballa
Mother’s Name: Mrs. Amabelle Faballa
Skills : Create a program using Turbo C++ and Visual Basic Studio

59
QUEZON CITY POLYTECHNIC UNIVERSITY

LAWRENCE FIGUEROA

Address : #31 J.Abad Santos st. Brgy.Sta lucia Novaliches Quezon City
Contact No : 09270279709
Email Address : olaportjennifer@gmail.com

PERSONAL INFORMATION

Nickname : Lawrence
Age : 18 y/o
Birthdate : October 19, 1999
Birth Place : Memorial Circle
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’8”
Weight : 58 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Mark Jeffrey Portillo
Mother’s Name: Mrs. Florence Portillo
Skills : Create a program using Turbo C++ and Visual Basic Studio

60
QUEZON CITY POLYTECHNIC UNIVERSITY

BABYLYN GABALES

Address : Diego silang st. T.S Cruz subd. Novaliches Quezon City
Contact No : 09070627004
Email Address : babylyngabales.2000@gmail.com

PERSONAL INFORMATION

Nickname : Babylyn
Age : 18 years old
Birthdate : February 17 ,2000
Birth Place : Caloocan City
Gender : Female
Nationality : Filipino
Status : Single
Height : 5’6
Weight : 49 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Ricardo Gabales
Mother’s Name: Mrs. Mary Gallenero
Skills : Create a program using Turbo C++ and Visual Basic Studio

61
QUEZON CITY POLYTECHNIC UNIVERSITY

EUGENE MENK GABRIEL

Address : #125 J.Abad Santos st. Brgy.Sta lucia Novaliches Quezon City
Contact No : 09270279709
Email Address : olaportjennifer@gmail.com

PERSONAL INFORMATION

Nickname : Gab
Age : 18 years old
Birthdate : October 19, 1999
Birth Place : House
Gender : Female
Nationality : Filipino
Status : Single
Height : 5’4
Weight : 43 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Nam : Father’s Name : Mr. Mark Jeffrey Portillo
Mother’s Name: Mrs. Florence Portillo
Skills : Create a program using Turbo C++ and Visual Basic Studio

62
QUEZON CITY POLYTECHNIC UNIVERSITY

RAYMOND VALERO GUANIZO

Address : Lt11Blk13 Tawid Sapa II Phase II Brgy, Kaligayahan Novaliches Quezon City
Contact No : 09950874300
Email Address : raymondgapo@yahoo.com

PERSONAL INFORMATION

Nickname : Mond
Age : 18 y/o
Birthdate : August 13, 1999
Birth Place : Quezon City
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’5”
Weight : 46 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Ramon Apo
Mother’s Name: Mrs. Janeet Apo
Skills : Create a program using Turbo C++ and Visual Basic Studio

63
QUEZON CITY POLYTECHNIC UNIVERSITY

PATRIC ABO GUZMAN

Address : #029 Don Crispulo st, Brgy.Gulod Novaliches Quezon City


Contact No : 09271310237
Email Address : patricguzman675@yahoo.com

PERSONAL INFORMATION

Nickname : Pat
Age : 18 years old
Birthdate : November 8, 1998
Birth Place : QezonCity
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’5”
Weight : 60 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Arcadio Malio Guzman
Mother’s Name: Mrs. Wenefreda Boco Abo
Skills : Assembling and Disassembling

64
QUEZON CITY POLYTECHNIC UNIVERSITY

BRENDON NAVIA

Address : Don Crispulo st, Brgy.Gulod Novaliches Quezon City


Contact No : 09469587422
Email Address : dondon.navia@gmail.com

PERSONAL INFORMATION

Nickname : Dondie
Age : 17 y/o
Birthdate : May 09, 2000
Birth Place : Caloocan, Sangandaan
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’10”
Weight : 61 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Efren Atillo
Mother’s Name : Mrs. Analiza Atillo
Skills : Create a program using Turbo C++ and Visual Basic Studio

65
QUEZON CITY POLYTECHNIC UNIVERSITY

HANZ DAVID MARCELO ONG

Address : 7 Claims st. Brgy. Sangandaan Project 8 Quezon City


Contact No : 09424209090
Email Address : hanzdavid_ong@yahoo.com

PERSONAL INFORMATION

Nickname : Hanz
Age : 18 y/o
Birthdate : Feb 16, 2000
Birth Place : General Santos Hospital
Gender : Male
Nationality : Filipino
Status : Single
Height : 5’5”
Weight : 49 kls
Religion : Born Again
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Leon Ong
Mother’s Name : Mrs. Herminia Ong
Skills : Create a program using Turbo C++ and Visual Basic Studio

66
QUEZON CITY POLYTECHNIC UNIVERSITY

JENNIFER FERNANDEZ PORTILLO

Address : #125 J.Abad Santos st. Brgy.Sta lucia Novaliches Quezon City
Contact No : 09270279709
Email Address : olaportjennifer@gmail.com

PERSONAL INFORMATION

Nickname : Angel
Age : 18 years old
Birthdate : October 19, 1999
Birth Place : House
Gender : Female
Nationality : Filipino
Status : Single
Height : 5’4
Weight : 43 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Mark Jeffrey Portillo
Mother’s Name: Mrs. Florence Portillo
Skills : Create a program using Turbo C++ and Visual Basic Studio

67
QUEZON CITY POLYTECHNIC UNIVERSITY

RONELYN SITIUTO

Address : #23 JP RIZAL st. Brgy.Sta lucia Novaliches Quezon City


Contact No : 09469378532
Email Address : ronelyn.situito01@gmail.com

PERSONAL INFORMATION

Nickname : Ron
Age : 18 y/o
Birthdate : October 19, 1999
Birth Place : House
Gender : Female
Nationality : Filipino
Status : Single
Height : 4`9”
Weight : 39 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Mark Delfin Sitiuto
Mother’s Name: Mrs. Josephine Sitiuto
Skills : Create a program using Turbo C++ and Visual Basic Studio

68
QUEZON CITY POLYTECHNIC UNIVERSITY

JOVILYN LACOSTA UY

Address : #59 Road 2 Bagong Pagasa Quezon City


Contact No : 09464152832
Email Address : jovilynuy@gmail.com

PERSONAL INFORMATION

Nickname : Joy
Age : 17 y/o
Birthdate : June 22, 2000
Birth Place : Quezon City
Gender : Female
Nationality : Filipino
Status : Single
Height : 5,4”
Weight : 53 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Alejandro Uy
Mother’s Name: Mrs. Jovita Uy
Skills : Create a program using Turbo C++ and Visual Basic Studio

69
QUEZON CITY POLYTECHNIC UNIVERSITY

SAVANNAH LYKA SHANE YAMBOT

Address : Lt9 Blk15 Casa Bonita, Sitio Mendez Quezon City


Contact No : 09556558512
Email Address : lykayambot21@gmail.com

PERSONAL INFORMATION

Nickname : Sab
Age : 18 y/o
Birthdate : April 21, 1999
Birth Place : Bayombong, Nueva Vizcaya
Gender : Female
Nationality : Filipino
Status : Single
Height : 5”
Weight : 48 kls
Religion : Roman Catholic
Languages Spoken : Tagalog, English
Parents Name : Father’s Name : Mr. Ronnie Yambot
Mother’s Name: Mrs. Soledad Yambot
Skills : Create a program using Turbo C++ and Visual Basic Studio

70

You might also like