Background of The Study

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

BACKGROUND OF THE STUDY

Cajes ice cream is a sole proprietorship business established by Ms. Carmen

Orjalisa Cajes and later carried out by her children for over 30 years. They are producing

ice cream with natural ingredients. It is located in Pagbilao, Quezon with one production

plant. They first sell their ice cream in sticks by peddling in Pagbilao area for 15 years.

Later on, they sell their ice cream in gallons and barrels. The price of the ice cream

amounted to Php 280 per gallons. Currently, they have 16 workers. They have six flavors

of ice cream namely, mango, avocado, pure cheese, sweet corn with cheese,

chocolate, and peanut with cheese. Cajes Ice Cream currently have the following

services they offered to increase their customers: a. Deliver (House-to-House) b. Walk-ins

c. Per Order through texting and social Medias. They also do canvassing in different parts

of Quezon. The Cajes Ice Cream already reached six different municipalities and cities in

Quezon namely, Pagbilao, Tayabas City, Lucena City, Sariaya, and Padre Burgos.

PROBLEM STATEMENT

With the increasing demand of ice cream, the manager finds it difficult to monitor

their sales and profit. For over 30 years, they manually input in their ledger the customer’s

order as well as the cost incurred per production of ice cream. They manually compute

all their sales as well as their cost in their production. Due to this, she personally admits

that it would be a great help if there will be an easier way to compute their profit. There

are also times that she forgot to input customers’ order in their log book Aside from it,

they’re having a hard time backtracking how many gallons of ice cream have they

produce and number of gallons sold as well as the stocks remaining since they have to
flip each page and trace it manually per flavor of ice cream. If they’ll be able to use a

system software that can solve these problems, it would be a great help.

PROPOSED SYSTEM FOR CAJE’S ICE CREAM IN PAGBILAO, QUEZON

The proposed system for Caje’s Ice Cream addresses the existing problem stated

above. It contains 4 command buttons; POS, Product, Stocks, Generate Profit and Exit

that functions individually.


USER’S MANUAL

o For POS (Point of Sales)


o For Product Button
o For Generate Report
Production Report
Sales Report per Customer

Sales Report
For Stocks
Codes used:

FORM: PRODUCTION ENTRY

Option Compare Database


Dim rowlist As Integer
Dim pid As Integer
Dim pname As String
Dim pdesc As String
Dim pstock As Integer
Dim Response As String

Private Sub btn_AddStocks_Click()


Dim x As String
Dim sql As String
Dim stocks As Integer
If pname = "" Then
MsgBox ("Please select a product")
Else
Response = InputBox("How many stocks of" & pname & " do you want to
add?", "Message Alert")
If StrPtr(Response) = 0 Then
x = MsgBox("Action has been canceled", , "Message Alert")
ElseIf Len(Response) = 0 Then
MsgBox ("Please input number of stock")
Else
x = MsgBox(Response & " " & pname & " stock/s added", , "Message Alert")
sql = "INSERT INTO production_tb(product_id, product_quantity,
production_date) VALUES ('" & pid & "', " & Response & ", '" & Date & "')"
CurrentDb.Execute sql
End If
End If
showlist1
End Sub

Private Sub btn_Search_Click()


strRowsource = "Select productID, product_name, product_desc,
available_stocks FROM Product_Stocks WHERE product_name LIKE ""*" &
srchtxtbx & "*"""
List1.RowSource = strRowsource
End Sub

Private Sub Form_Load()


showlist1
End Sub

Function showlist1()
strRowsource = "Select productID, product_name, product_desc,
available_stocks FROM Product_Stocks"
List1.RowSource = strRowsource
End Function

Private Sub List1_DblClick(Cancel As Integer)


rowlist = List1.Value
pid = List1.Column(0)
pname = List1.Column(1)
pdesc = List1.Column(2)
pstock = List1.Column(3)
Response = MsgBox("You have selected " & pname, vbOKOnly, "Message
Alert")
End Sub

FORM: PRODUCT DETAILS

Option Compare Database

Dim rowlist As Integer

Private Sub btn_Search_Click()


strRowsource = "Select ID, product_name, product_desc, product_price FROM
product_details_tb WHERE product_name LIKE ""*" & srchtxtbx & "*"""
List1.RowSource = strRowsource
End Sub

Private Sub Command21_Click()

End Sub

Private Sub Form_Load()


showlist
End Sub

Private Sub List1_DblClick(Cancel As Integer)


rowlist = List1.Value

TextPID.Value = List1.Column(0)
TextPName.Value = List1.Column(1)
TextPDesc.Value = List1.Column(2)
TextPPrice.Value = List1.Column(3)
Text_ProdCost.Value = List1.Column(4)
End Sub

Private Sub btn_New_Click()


cleartxtbox
End Sub

Private Sub btn_Save_Click()


Dim sql As String
Dim sql1 As String
Dim sql2 As String
If rowlist > 0 Then
sql = "UPDATE product_details_tb SET product_name = '" & TextPName & "',
product_desc = '" & TextPDesc & "', product_price = '" & TextPPrice & "',
production_cost = '" & Text_ProdCost & "' WHERE ID = " & TextPID & ""
CurrentDb.Execute sql
showlist
Else
sql = "INSERT INTO product_details_tb(product_name, product_desc,
product_price, production_cost) VALUES ('" & TextPName & "', '" & TextPDesc & "',
'" & TextPPrice & "', '" & Text_ProdCost & "')"
CurrentDb.Execute sql
showlist
List1 = List1.ItemData(1)
rowlist = List1.Value
sql1 = "INSERT INTO production_tb(product_id, product_quantity,
production_date) VALUES ('" & rowlist & "', 0, '" & Date & "')"
CurrentDb.Execute sql1
sql2 = "INSERT INTO transaction_item_tb(productID, t_quantity) VALUES ('" &
rowlist & "', 0)"
CurrentDb.Execute sql2
End If

cleartxtbox
End Sub

Private Sub btn_Delete_Click()


Dim sql As String
If TextPID > 0 Then
Dim ans
ans = MsgBox("Do you want to delete " & TextPName & "?", vbYesNo,
"Warning")
If ans = vbYes Then
sql = "DELETE FROM product_details_tb WHERE ID = " & rowlist & ""
CurrentDb.Execute sql
Else
MsgBox ("Delete Canceled")
End If
Else
MsgBox ("Please select a record")
End If
showlist
cleartxtbox
End Sub

Function showlist()
strRowsource = "Select ID, product_name, product_desc, product_price,
production_cost FROM product_details_tb ORDER BY ID DESC"
List1.RowSource = strRowsource
End Function
Function cleartxtbox()
TextPID.Value = ""
TextPName.Value = ""
TextPDesc.Value = ""
TextPPrice.Value = ""
Text_ProdCost.Value = ""
rowlist = 0
End Function

FORM: GENERATE REPORT


Option Compare Database

Private Sub Command8_Click()

If IsNull(Text3.Value) Then
MsgBox ("Please enter date")
Text3.SetFocus
ElseIf IsNull(Text6.Value) Then
MsgBox ("Please enter date")
Text6.SetFocus
ElseIf IsNull(Combo1) Then
MsgBox ("Please Select Report")
Combo1.SetFocus
Else
Dim x As Integer
x = DateDiff("d", Text3.Value, Text6.Value)
If x < 0 Then
MsgBox ("Please enter correct date")
Text3.SetFocus
Else
If Combo1 = "Sales Report" Then
DoCmd.OpenReport "Sales_Report", acViewReport
ElseIf Combo1 = "Sales Report per Customer" Then
DoCmd.OpenReport "Customer_Report", acViewReport
ElseIf Combo1 = "Production Report" Then
DoCmd.OpenReport "Production_Report", acViewReport
End If
End If
End If
End Sub

Private Sub Form_Load()


FillCBox
End Sub

Function FillCBox()
Combo1.AddItem ("Sales Report")
Combo1.AddItem ("Sales Report per Customer")
Combo1.AddItem ("Production Report")
End Function

FORM: POS

Option Compare Database

Dim rowlist As Integer


Dim rowlist2 As Integer
Dim pid As Integer
Dim pname As String
Dim pdesc As String
Dim pquantity As Integer
Dim pprice As Double
Dim Response As String
Dim tranID As Integer
Dim sqlsc As String
Dim sqlttb As String

Function showlist12()
strRowsource = "Select productID, product_name as Product, product_desc
as Size, available_stocks as Stocks, product_price as Price FROM Product_Stocks"
List28.ColumnWidths = "500,4000,800,700,200"
List28.RowSource = strRowsource
pid = 0
End Function

Function AddheaderListbox()
List11.ColumnCount = 6
List11.ColumnWidths = "500,3000,800,1000,1000,200"
item = "'PID';'Product';'Size';'Item Cost';'Quantity';'Price'"
List11.AddItem item
End Function

Public Sub GrandTotal()


Dim sum1 As Double
sum1 = 0
For i = 1 To List11.ListCount - 1
sum1 = sum1 + List11.Column(5, i)
Next
TextGTotal.Value = sum1
End Sub

Public Sub save_cart()


Dim sct_ID, scproductID, sct_quantity As Integer
Dim scPrice As Double

For i = 1 To List11.ListCount - 1
scproductID = List11.Column(0, i)
sct_quantity = List11.Column(4, i)
scPrice = List11.Column(3, i)
sct_ID = tranID
sqlsc = "INSERT INTO transaction_item_tb(t_ID,productID, t_quantity, t_Price)
VALUES ('" & tranID & "', '" & scproductID & "', '" & sct_quantity & "', '" & scPrice &
"')"
CurrentDb.Execute sqlsc
Next
sqlttb = "INSERT INTO transaction_tb(t_ID, client_name, client_address,
t_sales, t_date) VALUES ('" & tranID & "', '" & TextCname & "', '" & TextCaddress &
"', '" & TextGTotal & "', '" & Date & "')"
CurrentDb.Execute sqlttb
showlist12
clear
End Sub
Function clear()
TextCname.Value = ""
TextCaddress.Value = ""
TextGTotal.Value = ""
TextPayment.Value = ""
Text3.Value = ""
rowlist = 0
rowlist2 = 0
Dim i As Integer
For i = List11.ListCount - 1 To 0 Step -1
List11.RemoveItem (i)
Next i
AddheaderListbox
End Function
Function get_TID()
If DCount("*", "transaction_tb") = 0 Then
tranID = 1
Else
Dim x As Integer
x = DMax("[t_ID]", "transaction_tb", "[t_ID]" <> "0")
tranID = (x + 1)
Text31 = tranID
End If
End Function

Private Sub btn_Add_Click()


Dim x As String
Dim item As String

If pid = 0 Then
x = MsgBox("Please select an item", , "Message Alert")
Else
Response = InputBox("How many " & pname & " do you want to add?",
"Add to Cart")
If StrPtr(Response) = 0 Then
x = MsgBox("Action has been canceled", , "Message Alert")
ElseIf Len(Response) = 0 Then
MsgBox ("Please input a number")
ElseIf Response > pquantity Then
x = MsgBox("Not enough stock of " & pname, , "Message Alert")
Else
List11.ColumnCount = 6
item = "'" & pid & "';'" & pname & "';'" & pdesc & "';'" & pprice & "';'" &
Response & "';'" & (Response * pprice) & "'"
List11.AddItem item
GrandTotal
x = MsgBox("Item added to Cart", , "Message Alert")
showlist12
End If
End If

End Sub

Private Sub btn_Pay_Click()


If IsNull(TextCname.Value) Then
MsgBox ("Please enter name")
TextCname.SetFocus
ElseIf IsNull(TextCaddress) Then
MsgBox ("Please enter address")
TextCaddress.SetFocus
ElseIf TextGTotal > TextPayment Then
MsgBox ("Please enter right amount")
TextPayment.SetFocus
ElseIf IsNull(TextPayment.Value) Then
MsgBox ("Please Enter an Amount")
TextPayment.SetFocus
Else
MsgBox ("Change: " & (TextPayment - TextGTotal))
get_TID
save_cart
showlist12
DoCmd.OpenReport "t_Receipt", acViewReport

End If
End Sub

Private Sub btn_Void_Click()


Dim ii As Integer
With List11
For ii = 0 To .ListCount - 1
If .Selected(ii) = True Then
.RemoveItem ii
End If
Next
End With
GrandTotal
End Sub

Private Sub Command5_Click()


strRowsource = "Select productID, product_name as Product, product_desc
as Size, available_stocks as Stocks, product_price as Price FROM Product_Stocks
WHERE product_name LIKE ""*" & Text3 & "*"""
List28.ColumnWidths = "500,4000,800,700,200"
List28.RowSource = strRowsource
pid = 0
End Sub

Private Sub Form_Load()


showlist12
AddheaderListbox
get_TID
End Sub

Private Sub List11_Click()


rowlist2 = List11.ItemsSelected.Count
End Sub

Private Sub List28_Click()


rowlist = List28.Value
pid = List28.Column(0)
pname = List28.Column(1)
pdesc = List28.Column(2)
pquantity = List28.Column(3)
pprice = List28.Column(4)
End Sub

FORM: MENU

Option Compare Database

Private Sub Command0_Click()


DoCmd.OpenForm "POS"
End Sub

Private Sub Command1_Click()


DoCmd.OpenForm "Generate_Report"
End Sub

Private Sub Command2_Click()


DoCmd.Close acForm, "Menu", acSaveYes
End Sub

Private Sub Command3_Click()


DoCmd.OpenForm "Product_Details"
End Sub

Private Sub Command5_Click()


DoCmd.OpenForm "Production_Entry"
End Sub
Republic of the Philippines
Southern Luzon State University
College of Engineering
Lucban, Quezon

AUTOMATED CALCULATIONS OF DAILY


TRANSACTION RECORDS OF CAJE’S ICE
CREAM IN PAGBILAO, QUEZON

Submitted By:
Caringal, King Aljon L.
Cullarin, Jazteen Faye
De Asis, John Anghelo A

Engr. Maribelle A. Gaytano


Instructor

December 10, 2019

You might also like