Welcome to the Payfrit App!

Please select a menu item
Please login or register for an account!
UPDATE Orders SET StatusID = 2 WHERE ID = #form.OrderID# UPDATE OrderLineItems SET StatusID = 2 WHERE OrderID = #form.OrderID#
UPDATE OrderLineItems SET StatusID = 2 WHERE ID = #form.OrderLineItemID#
UPDATE Orders SET StatusID = 3 WHERE ID = #form.OrderID# UPDATE OrderLineItems SET StatusID = 3 WHERE OrderID = #form.OrderID#
UPDATE OrderLineItems SET StatusID = 3 WHERE ID = #form.OrderLineItemID#
un-ack'd kitchen items:
SELECT O.ID FROM Orders O, Businesses B WHERE O.StatusID = 1 AND O.BusinessID = B.ID AND B.ID = #request.BusinessID# ORDER BY O.AddedOn ASC

ack order
SELECT I.Name, OL.Quantity, OL.Remark, O.AddedOn, OL.ID, O.ID, O.Remarks, C.Name FROM Orders O, OrderLineItems OL, Items I, Categories C WHERE O.StatusID = 1 AND OL.ItemID = I.ID AND OL.IsDeleted = 0 AND OL.ParentOrderLineItemID = 0 AND I.CategoryID = C.ID AND O.ID = #get_orders.ID# AND O.ID = OL.OrderID
ORDER ON: #dateformat(get_line_items.AddedOn,"YYYY-MM-DD")# @ #timeformat(get_line_items.AddedOn,"HH:NN:SS")#
(#get_line_items.Quantity#) #Name# : #get_line_items.Name#
ORDER NOTES: #get_line_items.Remarks#
SELECT I.Name, I.ID, I.Price, I.ParentItemID, O.ParentOrderLineItemID, O.Remark FROM OrderLineItems O, Items I WHERE OrderID = #get_line_items.OrderID# AND O.ItemID = I.ID AND ParentOrderLineItemID = #get_line_items.OrderLineItemID# ORDER BY AddedOn DESC SELECT Name FROM Items WHERE ID = #get_child_line_items.ParentItemID#   #get_parent_item_Name.Name# : #get_child_line_items.Name#
  ITEM NOTES: #get_line_items.Remark#

Kitchen items being prepared:
SELECT O.ID FROM Orders O, Businesses B WHERE O.StatusID = 2 AND O.BusinessID = B.ID AND B.ID = #request.BusinessID# ORDER BY O.AddedOn ASC

ready order
SELECT I.Name, OL.Quantity, O.AddedOn, OL.ID FROM Orders O, OrderLineItems OL, Items I WHERE O.StatusID = 2 AND OL.StatusID = 2 AND OL.ItemID = I.ID AND OL.IsDeleted = 0 AND O.ID = #get_orders.ID# AND O.ID = OL.OrderID
(#get_line_items.Quantity#) #get_line_items.Name# #dateformat(get_line_items.AddedOn,"YYYY-MM-DD")# @ #timeformat(get_line_items.AddedOn,"HH:NN:SS")#
ready item
Please become a business first!
Please login or register for an account!
SELECT ID, FirstName FROM Users WHERE ((EmailAddress = '#form.username#') OR (ContactNumber = '#form.username#')) AND Password = '#hash(form.password)#' AND IsEmailVerified = 1 AND IsContactVerified > 0 SELECT Name, ID FROM Businesses WHERE UserID = #request.userid#
No user found!

Please login.
SELECT Name, ID FROM Businesses WHERE UserID = #request.UserID# You have multiple businesses, please select one:

Name Become
#Name#
Become



Add New Business

SELECT B.Name FROM Businesses B WHERE B.ID = #request.BusinessID# You are logged in as

#get_biz_name.Name#

SELECT B.*, A.Addressline1, A.Addressline2, A.City, A.StateID, A.ZIPCode FROM Businesses B, Addresses A WHERE B.ID = #request.BusinessID# AND A.BusinessID = B.ID AND A.AddressTypeID = 2 Problem!
#ListElement#


Add a new business to Payfrit:Edit business info:

SELECT ID, Name FROM tt_States ORDER BY Name SELECT ID, Name FROM tt_OrderTypes ORDER BY ID
Business Name:
Address Line 1:
Address Line 2:
City:
Select State:
ZIP Code:
Sales Tax Rate: %
Select Order Types: CHECKED>#get_OrderTypes.Name#
Hiring? checked>
Business Radius: mi
Business Delivery ZIP Codes:
Demo Mode? checked>
Private? checked>
Value="Update Info"Value="Add Business" name=SUBMIT>



Upload new logo




Delete header

Upload new header



Your schedule:

SELECT H.*, D.Abbrev FROM Hours H, tt_Days D WHERE BusinessID = #request.BusinessID# AND H.DayID = D.ID ORDER BY DayID
#Abbrev##lcase(timeformat(OpenTime, "h:mmtt"))# to #lcase(timeformat(ClosingTime, "h:mmtt"))# #Abbrev#    ~ CLOSED ~

Edit your schedule

Hiring Status:

Currently you are NOT HIRING

Currently you ARE HIRING
Toggle hiring status


Your Employees:
SELECT U.FirstName, U.LastName, U.EmailAddress, U.ContactNumber FROM Users U, Employees E WHERE U.ID = E.UserID AND E.BusinessID = #request.BusinessID# AND E.IsActive = 1 AND E.StatusID = 2 ORDER BY U.LastName
#LastName#, #FirstName# #EmailAddress# #formatted_phnum#

Open applicants:
SELECT U.FirstName, U.LastName, U.EmailAddress, U.ContactNumber FROM Users U, Employees E WHERE U.ID = E.UserID AND E.BusinessID = #request.BusinessID# AND E.IsActive = 0 AND E.StatusID = 1 ORDER BY U.LastName
#LastName#, #FirstName# #EmailAddress# #formatted_phnum#
Upload a logo (jpg, jpeg, gif, png) at least 300 pixels wide, images will be resized automatically to a square.

UPDATE Businesses SET LogoImageExtension = '#cffile.ClientFileExt#' WHERE BusinessID = #form.BusinessID#
Your upload attempt has been rejected for the following reason(s):

#messages#

Return to editing

Upload a header image (jpg, jpeg, gif, png) at least 300 pixels wide, H:W ratio of 2:1, images will be resized automatically.

UPDATE Businesses SET HeaderImageExtension = '#cffile.ClientFileExt#' WHERE BusinessID = #form.BusinessID#
Your upload attempt has been rejected for the following reason(s):

#messages#

Return to editing

UPDATE Businessess SET LogoImageExtension = null WHERE BusinessID = #request.BusinessID#
UPDATE Businesses SET BusinessheaderImageExtension = null WHERE BusinessID = #request.BusinessID#

Your schedule:

SELECT H.*, D.Abbrev FROM Hours H, tt_Days D WHERE BusinessID = #request.BusinessID# AND H.DayID = D.ID ORDER BY DayID
#Abbrev#  to 
Save this schedule

SELECT H.*, D.Abbrev FROM Hours H, tt_Days D WHERE BusinessID = #request.BusinessID# AND H.DayID = D.ID ORDER BY DayID UPDATE Hours SET OpenTime = '#evaluate(open_temp)#', ClosingTime = '#evaluate(closing_temp)#' WHERE BusinessID = #request.BusinessID# AND DayID = #dotw_looper#
UPDATE Businesses SET Name = '#values.Name#', TaxRate = #values.TaxRate#, OrderTypes = '#values.OrderTypes#', DeliveryRadius = #values.DeliveryRadius#, DeliveryZIPCodes = '#values.DeliveryZIPCodes#', IsDemo = #values.IsDemo#, IsPrivate = #values.IsPrivate# WHERE BusinessID = #request.BusinessID# UPDATE Addresses SET Addressline1 = '#values.Addressline1#', Addressline2 = '#values.Addressline2#', City = '#values.City#', StateID = #values.StateID#, ZIPCode = '#values.ZIPCode#' WHERE BusinessID = #request.BusinessID# AND AddressTypeID = 2 Business info updated!

INSERT INTO Addresses ( UserID, BusinessID, AddressTypeID, Addressline1, Addressline2, City, StateID, ZIPCode, AddedOn ) VALUES ( #request.UserID#, 0, 2, '#values.Addressline1#', '#values.Addressline2#', '#values.City#', #values.StateID#, '#values.ZIPCode#', #createODBCDateTime(now())# ) SELECT ID FROM Addresses ORDER BY AddressID DESC LIMIT 0,1 INSERT INTO Businesses ( UserID, Name, AddressID, TaxRate, OrderTypes, DeliveryRadius, DeliveryZIPCodes, IsDemo, IsPrivate, AddedOn ) VALUES ( #request.UserID#, '#values.Name#', #get_inserted_address.ID#, #values.TaxRate#, '#values.OrderTypes#', #values.DeliveryRadius#, '#values.DeliveryZIPCodes#', #values.IsDemo#, #values.IsPrivate#, #createODBCDateTime(now())# ) SELECT ID FROM Businesses ORDER BY BusinessID DESC LIMIT 0,1 UPDATE Addresses SET BusinessID = #get_inserted_business.ID# WHERE AddressID = #get_inserted_address.ID# INSERT INTO Employees ( BusinessID, UserID ) VALUES ( #get_inserted_business.ID#, #request.UserID# ) INSERT INTO Hours ( BusinessID, DayID, OpenTime, ClosingTime ) VALUES ( #get_inserted_business.ID#, #day_looper#, '07:00', '22:00' )
No user found!

Please login.

Categories

SELECT C.ID, C.Name, B.Name, B.ID FROM Categories C, Businesses B WHERE C.BusinessID = B.ID AND UserID = #request.userid# AND C.BusinessID = #request.BusinessID# ORDER BY SortOrder

Name

Edit

#Name#
Edit

Add New Category

SELECT C.Name, C.ID, C.SortOrder, B.ID, C.ImageExtension FROM Categories C, Businesses B WHERE CategoryID = #form.CategoryID# AND C.BusinessID = B.ID Problem!
#ListElement#


Add newEdit Category
Category Name:
Category Sort Order:
Value="Update Info"Value="Add Category" name=SUBMIT tabindex="2">
Delete image


Upload an image

Upload an image (jpg, jpeg, gif, png), images will be resized automatically to a rectangle with dimensions 300px wide and 100 pixels high.

UPDATE Categories SET ImageExtension = '#cffile.ClientFileExt#' WHERE CategoryID = #form.CategoryID#
Your upload attempt has been rejected for the following reason(s):

#messages#

Return to editing

UPDATE Categories SET ImageExtension = null WHERE CategoryID = #form.CategoryID#
UPDATE Categories SET Name = '#values.Name#', SortOrder = #values.SortOrder# WHERE CategoryID = #form.CategoryID# Category info updated!

INSERT INTO Categories ( BusinessID, Name, SortOrder, AddedOn ) VALUES ( #request.BusinessID#, '#form.Name#', #form.SortOrder#, #createODBCDateTime(now())# ) Category inserted!

No user found!

Please login.
SELECT ID, Name FROM Categories WHERE BusinessID = #request.BusinessID# SELECT Name, ItemID FROM Items WHERE CategoryID = #get_business_categories.CategoryID# AND ParentItemID = 0 AND IsActive is true ORDER BY SortOrder DESC SELECT Name, ItemID FROM Items WHERE CategoryID = #get_business_categories.CategoryID# AND ParentItemID = 0 AND IsActive is false

Category: #get_business_categories.Name#

Active items:

Name Edit
#Name#
Edit
Inactivate

Inactive items:

#Name#
Edit
Activate

Add New Item

SELECT * FROM Items WHERE ID = #form.ItemID# Problem!
#ListElement#


Add Edit Item

SELECT ID, Name FROM Categories WHERE BusinessID = #request.BusinessID# ORDER BY SortOrder
Item Name:
Select Category:
Item Description:
Item Price:
Item Is Active? checked tabindex="5">
Item Is Checked By Default? checked>
Item requires child selection? checked tabindex="7">
If required, max number to select?
Item children are collapsed? checked tabindex="9">
Item sort order
Value="Update Info" Value="Add Item" name=SUBMIT tabindex="6">


Delete image


Upload an image

UPDATE Items SET IsActive = true WHERE ItemID = #form.ItemID#
UPDATE Items SET IsActive = false WHERE ItemID = #form.ItemID#
SELECT IsCollapsible FROM Items WHERE ID = #form.ItemID# UPDATE Items SET IsCollapsible = 1 WHERE ItemID = #form.ItemID# UPDATE Items SET IsCollapsible = 0 WHERE ItemID = #form.ItemID#
Upload an image (jpg, jpeg, gif, png), images will be resized automatically to a rectangle/square with no dimension larger than 1280 pixels.

UPDATE Items SET ImageExtension = '#cffile.ClientFileExt#' WHERE ItemID = #form.ItemID#
Your upload attempt has been rejected for the following reason(s):

#messages#

Return to editing

UPDATE Items SET ImageExtension = null WHERE ItemID = #form.ItemID#
UPDATE Items SET Name = '#values.Name#', CategoryID = '#values.CategoryID#', Description = '#values.Description#', Price = #values.Price#, IsActive = #values.IsActive#, IsCheckedByDefault = #values.IsCheckedByDefault#, RequiresChildSelection = #values.RequiresChildSelection#, MaxNumSelectionReq = #values.MaxNumSelectionReq#, IsCollapsible = #values.IsCollapsible#, SortOrder = #values.SortOrder# WHERE ItemID = #form.ItemID#
INSERT INTO Items ( Name, CategoryID, Description, Price, IsActive, IsCheckedByDefault, AddedOn, RequiresChildSelection, MaxNumSelectionReq, IsCollapsible, SortOrder ) VALUES ( '#values.Name#', #values.CategoryID#, '#values.Description#', #values.Price#, 1, #values.IsCheckedByDefault#, #createODBCDateTime(now())#, #values.RequiresChildSelection#, #values.MaxNumSelectionReq#, #values.IsCollapsible#, #values.SortOrder# ) Item inserted!

Please select a business!
No user found!

Please login.
This operation will take an existing item structure and clone that item (and all children of that item) onto one or more menu items in one action.

This is a very powerful tool and can make large-scale changes to your menu with just a couple clicks. Please be careful!

You are about to clone the following structure:

SELECT Name, Price FROM Items WHERE ID = #form.ItemID# #Name# - #dollarformat(Price)#

Proceed > > >
Please select the menu items you would like to apply this child structure to:

SELECT ID, Name FROM Categories WHERE BusinessID = #request.BusinessID#

#get_business_categories.Name#

SELECT Name, Price, ItemID FROM Items WHERE ParentItemID = 0 AND CategoryID = #get_business_categories.CategoryID# AND IsActive = 1 ORDER BY SortOrder DESC  #get_items.Name# - #dollarformat(get_items.Price)#

Proceed > > >
You are about to clone the following structure:

SELECT Name, Price FROM Items WHERE ID = #form.ItemID# #Name# - #dollarformat(Price)#

To the following category:

SELECT Name FROM Categories WHERE ID in (#right(form.itemIDstoclone,(len(ItemIDstoclone)-1))#)

#Name#


To the following items:

SELECT Name FROM Items WHERE ID in (#form.itemIDstoclone#) #Name#

THIS OPERATION CANNOT BE UNDONE

Proceed > > >
SELECT * FROM Items WHERE ID = #form.ItemID# INSERT INTO Items ( CategoryID, Name, Description, ParentItemID, Price, IsActive, IsCheckedByDefault, RequiresChildSelection, MaxNumSelectionReq, IsCollapsible, SortOrder, AddedOn ) VALUES ( #get_main_item.CategoryID#, '#get_main_item.Name#', '#get_main_item.Description#', #clonelooper#, #get_main_item.Price#, #get_main_item.IsActive#, #get_main_item.IsCheckedByDefault#, #get_main_item.RequiresChildSelection#, #get_main_item.MaxNumSelectionReq#, #get_main_item.IsCollapsible#, #get_main_item.SortOrder#, #createODBCDateTime(now())# ) INSERT INTO Items ( CategoryID, Name, Description, ParentItemID, Price, IsActive, IsCheckedByDefault, RequiresChildSelection, MaxNumSelectionReq, IsCollapsible, SortOrder, AddedOn ) VALUES ( #right(form.itemIDstoclone,(len(ItemIDstoclone)-1))#, '#get_main_item.Name#', '#get_main_item.Description#', 0, #get_main_item.Price#, #get_main_item.IsActive#, #get_main_item.IsCheckedByDefault#, #get_main_item.RequiresChildSelection#, #get_main_item.MaxNumSelectionReq#, #get_main_item.IsCollapsible#, #get_main_item.SortOrder#, #createODBCDateTime(now())# ) SELECT ID FROM Items ORDER BY ItemID DESC Limit 1

Current menu

View Your Menu


SELECT C.ID, C.Name, B.Name FROM Categories C, Businesses B WHERE B.ID = #request.BusinessID# AND C.BusinessID = B.ID
SELECT C.ID, C.Name, B.Name, I.Name, I.ID, I.Price, I.IsCollapsible FROM Categories C, Businesses B, Items I WHERE C.ID = #get_business_categories.CategoryID# AND C.BusinessID = B.ID AND I.CategoryID = C.ID AND I.IsActive is true AND I.ParentItemID = 0 ORDER BY I.SortOrder   #get_category_items.Name# - #dollarformat(get_category_items.Price)#
  #get_category_items.Name# - #dollarformat(get_category_items.Price)#

Edit menu


SELECT ID, Name FROM Categories WHERE BusinessID = #request.BusinessID#

#get_business_categories.Name#

SELECT Name, Price, ItemID, IsCheckedByDefault, IsCollapsible FROM Items WHERE ParentItemID = 0 AND CategoryID = #get_business_categories.CategoryID# AND IsActive = 1 ORDER BY SortOrder DESC  #get_items.Name# - #dollarformat(get_items.Price)#
    
edit
   
no coll
   
delete
   
clone
     Name: Price: Default? checked> add child here

#get_items.Name# - #dollarformat(get_items.Price)#
    
edit
   
no coll
   
delete
   
clone
     Name: Price: Default? checked> add child here

Name: Price: Add New Top-Level Item to #get_business_categories.Name#


INSERT INTO Items ( Name, Price, IsCheckedByDefault, CategoryID, ParentItemID, AddedOn ) VALUES ( '#form.Name#', #form.Price#, #form.IsCheckedByDefault#, #form.CategoryID#, #form.ParentItemID#, #createODBCDateTime(now())# )
UPDATE Items SET IsActive = 0 WHERE ItemID=#form.ItemID#
no mode!
No user found!

Please login!
SELECT U.*, A.* FROM Users U, Addresses A WHERE U.ID = #request.UserID# AND A.UserID = U.ID AND A.AddressTypeID = 1 Problem!
#ListElement#


Edit account

Edit business



SELECT ID, Name FROM tt_States ORDER BY Name
First Name:
Last Name:
Address Line 1:
Address Line 2:
City:
Select State:
ZIP Code:

Delete image


Upload an image

Upload an image (jpg, jpeg, gif, png), images will be resized automatically to a rectangle with max dimensions 600px wide and 600 pixels high.

UPDATE Users SET ImageExtension = '#cffile.ClientFileExt#' WHERE ID = #request.UserID#
Your upload attempt has been rejected for the following reason(s):

#messages#

Return to editing

UPDATE Users SET ImageExtension = null WHERE ID = #request.UserID#
UPDATE Users SET FirstName = '#values.FirstName#', LastName = '#values.LastName#' WHERE ID = #request.UserID# UPDATE Addresses SET Line1 = '#values.Line1#', Line2 = '#values.Line2#', City = '#values.City#', StateID = #values.StateID#, ZIPCode = '#values.ZIPCode#' WHERE ID = #request.UserID# AND AddressTypeID = 1 User info updated!

No user found!

Please login!
UPDATE Businesses SET IsHiring = 10 WHERE BusinessID = #request.BusinessID#
Please input either your email address or cell phone:

Submit

SELECT EmailAddress, ContactNumber, UUID FROM Users WHERE (EmailAddress = '#form.credential#' OR ContactNumber = '#parsed_phnum#') AND IsEmailVerified = 1 AND IsContactVerified > 0
">
If there is registered Payfrit account with that information you will receive instructions on how to reset your password.
User not found!

Please input your new password:



Please type it again:



Submit

UPDATE Users SET Password = '#hash(new_password)#' WHERE UUID = '#form.UUID#' Password updated!

Please login.
Values did not match, please try again!

Please input your new password:



Please type it again:



Submit

Orders Reporting

Today
|
Yesterday
|
Last week


Custom range:
Custom Range


Today's orders

SELECT * FROM Orders WHERE BusinessID = #request.BusinessID# AND AddedOn > #createODBCDate(now())# ORDER BY AddedOn DESC LIMIT 0,10 Last ten orders

SELECT * FROM Orders WHERE BusinessID = #request.BusinessID# ORDER BY AddedOn DESC LIMIT 0,10 Yesterday's orders

SELECT * FROM Orders WHERE BusinessID = #request.BusinessID# AND AddedOn > #createODBCDate(dateadd("d", -1, now()))# AND AddedOn < #createODBCDate(now())# ORDER BY AddedOn DESC LIMIT 0,10 Last seven day's orders

SELECT AddedOn, U.FirstName, U.LastName, O.ID, O.UUID, U.EmailAddress, U.ContactNumber FROM Orders O, Users U WHERE O.BusinessID = #request.BusinessID# AND O.UserID = U.ID AND O.AddedOn < #createODBCDate(now())# AND O.StatusID > 3 ORDER BY O.AddedOn DESC LIMIT 0,10
DetailDateCustomer
#OrderID#
#dateformat(AddedOn, "mm-dd-yyyy")##formatted_phnum# #EmailAddress# #FirstName# #LastName#
Orders from #dateformat(form.startdate, "mm-dd-yyyy")# to #dateformat(form.enddate, "mm-dd-yyyy")#

SELECT * FROM Orders WHERE BusinessID = #request.BusinessID# AND AddedOn > #createODBCDate(form.startdate)# AND AddedOn < #createODBCDate(form.enddate)# ORDER BY AddedOn DESC LIMIT 0,10
No primary mode provided!