Professional Documents
Culture Documents
Quezon City Polytechnic University Formulating Inventory System and Stock Analysis For Lateral Appliances
Quezon City Polytechnic University Formulating Inventory System and Stock Analysis For Lateral Appliances
1
QUEZON CITY POLYTECHNIC UNIVERSITY
CHAPTER 1
INTRODUCTION
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
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
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
5
QUEZON CITY POLYTECHNIC UNIVERSITY
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.
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.
Receipt – the action of receiving something or the fact of its being received.
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.
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 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.
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
Motherboard: __________________
PSU: __________________
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
FORM LOG IN
Imports System.Data.OleDb
14
QUEZON CITY POLYTECHNIC UNIVERSITY
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
18
QUEZON CITY POLYTECHNIC UNIVERSITY
FRMFORGETPASS
Imports System.Data.OleDb
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
End If
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
22
QUEZON CITY POLYTECHNIC UNIVERSITY
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
FRMLOADITEM
27
QUEZON CITY POLYTECHNIC UNIVERSITY
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
FRMMAIN
Imports System.Data.OleDb
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
32
QUEZON CITY POLYTECHNIC UNIVERSITY
Try
sqL = "SELECT ItemCode, IDescription, UnitPrice, itemNo FROM ITEM Where IDescription = '" & Val(txtSearch.Text) &
"'"
ConnDB()
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
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
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()
Else
itemNum = dr("ItemNo")
itemPrice = dr("UnitPrice")
Try
sql = "INSERT INTO transactionDetail(InvoiceNo, ItemNo, itemPrice, Quantity) Values('" & lblInvoiceNo.Text &
"', '" & itemNum & "', '" & itemPrice & "', '" & txtQuantity.Text & "')"
ConnDB()
cmd.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.Message)
34
QUEZON CITY POLYTECHNIC UNIVERSITY
Finally
cmd.Dispose()
conn.Close()
End Try
UpdateDecreaseQuantity()
txtSearch.Clear()
End If
End While
Catch ex As Exception
MsgBox(ex.Message)
Finally
conn.Close()
End Try
End Sub
lbldate.Text = Date.Now.ToString("dddd")
End Sub
viewitm.Show()
35
QUEZON CITY POLYTECHNIC UNIVERSITY
End Sub
'''''''''''''''''''''''
Else
e.SuppressKeyPress = True
txtQuantity.Focus()
End If
End If
End Sub
Try
ConnDB()
ds.Tables.Add(dt)
da.Fill(dt)
Dim r As DataRow
txtSearch.AutoCompleteCustomSource.Clear()
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
btnPayment.PerformClick()
btnNewTransacation.PerformClick()
btnRemove.PerformClick()
btnClose.PerformClick()
End If
End Sub
Me.KeyPreview = True
btnNewTransacation.PerformClick()
getinvoiceNo()
Timer1.Start()
autocomplete()
End Sub
37
QUEZON CITY POLYTECHNIC UNIVERSITY
Me.Show()
Me.Close()
End Sub
''''''''''''''''''''''''''''''''
Else
e.SuppressKeyPress = True
addtolist()
totalCost += totalprice
txtQuantity.Clear()
txtSearch.Focus()
End If
End If
End Sub
Try
sqL = "Update Item SET StocksOnHand = stocksOnHand - " & Val(txtQuantity.Text) & " WHERE IDescription = '" &
txtSearch.Text & "'"
ConnDB()
38
QUEZON CITY POLYTECHNIC UNIVERSITY
cmd.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
dgvItems.Rows.Clear()
lblTotalCost.Text = "0.00"
totalCost = 0
txtSearch.Focus()
End Sub
If dgvItems.Rows.Count = 0 Then
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
Try
sqL = "Update Item SET StocksOnHand = stocksOnHand + '" & dgvItems.CurrentRow.Cells(0).Value & "' WHERE
ItemNo = " & getProdtoDelete & ""
ConnDB()
cmd.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.Message)
Finally
cmd.Dispose()
conn.Close()
End Try
End Sub
GetProductIDToDelete()
UpdateIncreaseQuantity()
dgvItems.Rows.Remove(dgvItems.SelectedRows.Item(0))
totalCost = lblTotalCost.Text
40
QUEZON CITY POLYTECHNIC UNIVERSITY
End Sub
Try
sqL = "SELECT ItemNo FROM item Where itemCode = '" & dgvItems.CurrentRow.Cells(1).Value & "'"
ConnDB()
dr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
getProdtoDelete = dr("itemNo")
Try
sqL = "DELETE FROM transactionDetail WHERE itemNo = " & getProdtoDelete & " AND InvoiceNo = '" &
lblInvoiceNo.Text & "'"
ConnDB()
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
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
44
QUEZON CITY POLYTECHNIC UNIVERSITY
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
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.
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?
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
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.
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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