You are on page 1of 14

Master Tables Structure

CR_TRACK: This table contains definition of Item Master.

Field
TI_ID TI_NAME TI_SHORT TI_DEP TI_LEVEL

Type
Numeric(10) VARCHAR(25) VARCHAR(15) CHAR(8) NUMERIC(1)

Comment
Item ID Item Name Short Name Department code Count Level (1=daily, 2=weekly, 3=bi-weekly, 4=monthly) Primary UOM ID reference to qc_uom Open Count Values = Y/N Open Count Values = Y/N Open Count Values = Y/N Open Count Values = Y/N Open Count Values = Y/N Open Count Values = Y/N Open Count Values = Y/N Open Count Values = Y/N Open Count Values = Y/N Item Type (0=Inventory, 2=Semi Finished, 3=Production) Count default UOM Transaction Default UOM Linked Product ID

TI_PUOM TI_OPEN TI_RCV TI_TRIN TI_TROUT TI_USAGE TI_WASTE TI_CLOSE TI_DSD TI_REQ TI_COST TI_TYPE

Numeric(3) Char(1) Char(1) Char(1) Char(1) Char(1) Char(1) Char(1) Char(1) Char(1) Numeric(15,8) Numeric(1)

TI_CUOM TI_TUOM TI_PROD

Numeric(3) Numeric(3) Numeric(10)

CR_UOM: This table contains the definitions of Unit of measurement used in inventory system. Description Unit ID (from ALOHA.INI) Unit ID Unit Code Unit Name Latin Unit Name Arabic

Field UOM_STR_ID UOM_ID UOM_CODE UOM_NAME UOM_NAME_A

CR_TRACKUOM: This table contains the link of items with UOM.

Field
TI_ID TIU_UOM TIU_PACK

Type
Numeric(10) Numeric(3) Numeric(20,10)

Comment
Item ID UOM ID UOM Packing

|Page1

CR_TRKDP: This table contains Department definitions.

Field
TDP_CODE TDP_NAME

Type
Char(8) Char(30)

Comment
Department Code Department Name

CR_SUPPLIER: This table contains definitions for suppliers master.

Field
SUP_ID SUP_NAME

Type
Numeric(10) Char(30)

Comment
Supplier ID Supplier Name

CR_SUPITEM: This table contains definitions for supplier items.

Field
SI_ID SI_LOC SI_ITEM SI_UOM SI_COST

Type
Numeric(10) Char(6) Numeric(10) Numeric(3) Numeric(15,8)

Comment
Supplier ID Supplier Location Supplier Item UOM UOM Cost

CR_STORE: Table contains definition for all stores. Description Store ID/ Unit ID (from ALOHA.INI) Stores Name Store Name/Arabic Store Adress Store Tel Store Fax Store Level Store Parent Store Child Store No

Field STR_ID STR_NAME STR_NAME_A STR_ADDRES STR_TEL STR_FAX STR_LVL STR_PARENT STR_CHILD STR_NO

|Page2

QC_FPMAS: Table contains definition for Bill of material header(Recipes)

Field
FP_REC FP_ID FP_PARENT FP_COST

Type
Number Number Number Number

Length
10 1

Key
YES YES YES

Comment
Serial Finished Product ID ID for Parent Cost

QC_FPDTL: Table contains definition for Bill of material(Recipes)

Field
FP_REC FP_ID FP_PARENT FP_TYPE

Type
Number Number Number Number

Length
10 10 1

Key
YES YES YES

Comment
Serial Finished Product ID Type =3 (Production) 1= Finished Product 2=Semi Finished Item ID UOM ID Quantity Packing Item Type (0=Inventory Item )

FPD_TI FPD_UOM FPD_QTY FPD_PACK FPD_TYPE

Number Number Number Number Number

10 3 15,5 20,10 1

YES

Field

Tender Master

CR_TDRTYPE Type
Numeric Varchar2(15) Varchar2(30) Char(1)

Comment
Tender ID Tender ShortName Tender LongName Y=Cash, N=Non Cash Payment

TDRT_ID TDRT_SHORTNAME TDRT_LONGNAME CASH

CR_ITEMCAT: table contains definitions of all item categories. Description Store ID/ Unit ID (from ALOHA.INI) Category ID Category Description Category Description/Arabic ??? ??? ???

Field CIT_STR_ID CIT_ID CIT_DESC CIT_DESC_A CIT_SALES CIT_RETAIL CIT_SUGGESTIVE

CR_MENUITEM: file contains all menu items defined in aloha Description Menu ID Short Description Long Description Cost

Field MI_ID MI_SHORTNAME MI_LONGNAME MI_COST

|Page3

MI_PRICE_ID MI_PRICE MI_SKU MI_SKU2 MI_SKU3 MI_SKU4 MI_SKU5 MI_CONCEPT

Price level ID Sales Price SKU Code -1 SKU Code -2 SKU Code -3 SKU Code -4 SKU Code -5 Concept Name

CR_ORDER_MODE: File contains all definitions for order modes Description Store ID/ Unit ID (from ALOHA.INI) Order ID Order Name Order Name/Arabic

Field ORD_STR_ID ORD_ID ORD_NAME ORD_NAME_A

CR_REVENU: File contains all definitions for revenue centers. Description Store ID/ Unit ID (from ALOHA.INI) Revenue Center ID Revenue Center Name Latin Revenue Center Name Arabic

Field REV_STR_ID REV_ID REV_NAME REV_NAME_A

|Page4

Transactions Tables Structure


1. Transaction Master Table (CR_TRANMAS) Col Name Type Length Key
TRM_STR_ID TRM_DATE TRM_ID TRM_TYPE TRM_SUBTYP TRM_DOB TRM_REFSTR Numeric Date Numeric Varchar2 Varchar2 Varchar2 Number 30 8 10,0 4 4 8 10 Yes Yes Yes Yes Yes

Remarks
Store ID DOB Transaction ID Transaction Type Transaction Sub-Type (Daily, Weekly, Monthly) DOB In case DSD =Supplier ID In Case Transfer in = From Store In Case Transfer Out= To Store In Case DSD =Supplier Invoice Num Transaction Ref Date In Case DSD=Invoice Amount Transaction created date Transaction created user Transaction remarks Transaction Flag, 1 = Posted,0 Initial, 2 Voided,9 count

TRM_REFDES TRM_REFDAT TRM_REFAMT TRM_CRTDAT TRM_USER TRM_MEMO TRM_FLAG

Character Date Numeric DateTime Numeric Character Numeric

50

15,3 D 5 100 1

2. Transaction Detail (CR_TRANDTL) Col Name Type Length N.N


TRD_STR_ID TRD_DATE TRM_ID TRM_TYPE TRM_SUBTYP TRD_LINE TRD_DOB TRD_ITEM TRD_ITMNAM TRD_ITMNAM_A TRD_ITMTYP TRD_PQTY TRD_NQTY TRD_UOM TRD_PACK TRD_ECOST Numeric Character Numeric Numeric Numeric Numeric Varchar2 Numeric 30 8 10,0 4 4 5 8 20 35 35 4 15,6 15,6 4 15,6 15,3 Yes Yes Yes Yes Yes Yes

Remarks
Store Id DOB Transaction ID Transaction Type Used for counts transactions (Daily, Weekly, Monthly) line num DOB Item Code Item Name Item Name Arabic 0=Tracking Item 1=Menu Item Previous Quantity(Not Used) Current Quantity (this is the transaction quantity) UOM Pack quantity or UOM Factor Item Extended Cost (Used only in local purchasing Trans).

Varchar2 Numeric Numeric Numeric Numeric Numeric

|Page5

Transactions Types: Type Id 1 2 3 4 5 6 7 8 9 10 11 12 Desctiprion Open Close Usage Waste Receive Transfer In Transfer Out DSD Shift Count Spot Check Request Local Purchasing

3. Item Count Table (CR_COUNT) Col Name Type Length Key


CNT_STR_ID CNT_DATE CNT_ITEM CNT_DOB CNT_ITMNAME_A CNT_ITMNAME CNT_OPEN CNT_CLOSE CNT_USAGE CNT_WASTE CNT_RCV CNT_TRIN CNT_TROUT CNT_DSD CNT_SOLD CNT_VOID CNT_CLOSEC CNT_OPENC CNT_REQ CNT_COST CNT_CONS CNT_PROD Numeric Date Numeric Varchar2 5 10,0 8 Yes Yes Yes

Remarks
Store ID DOB Item Code DOB

Numeric Numeric Numeric Numeric Numeric Numeric Numeric Numeric Numeric Numeric Numeric Numeric Numeric Numeric Numeric Nuberic

15,5 15,5 15,5 15,5 15,5 15,5 15,5 15,5 15,5 15,5 15,5 15,5 15,5 15,5 15,5 15,5

Open Quantity Close Quantity Usage Quantity Waste Quantity Received Quantity Transfer in Quantity Transfer Out Quantity DSD Quantity Sold Quantity Voids Quantity Calculated Closed Quantity Calculated Open Quantity Requested Quantity Cost Consumption Quantity Production Quantity

|Page6

CR_GNDSALE: This file contains sales information

Col Name
EMPLOYEE CHECKID PERIOD TYPE TYPEID AMOUNT OPENHOUR OPENMIN ORDERHOUR

Type
Number

Length Key
Yes

Remarks
Employee ID who closed the check, but not necessarily the employee who sold the items. Check number Period ID Sales type associated with TYPE, if any Amount Hour the check was opened Minute the check was opened Hour when the first item on this check was ordered Minute when the first item on this check was ordered Hour the check was closed Minute the check was closed Employee shift number for the day (0 if not applicable). For Example, the first time the clock-in for the day is shift one, the second time they clock-in for the same day is shift two, and so on. Depends on record TYPE (see the GNDSALE.DBF Type Constants table). For TYPE 25, 51 and 54, the COUNT field is also the Tax ID. Revenue Center ID The tippable employee (employee who opened the check) Unit ID (from ALOHA.INI) DOB Item category for a sold BackOffice gift certificate if the TYPE is 23 (See the GNDSALE.DBF type constants table). The Tax ID for TYPE 25, 51 and 54. Event ID (SuperSite) Unused

Number Number Number Number Number Number Number Number Number

5 5 5 5 5 5 5

Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes

ORDERMIN CLOSEHOUR CLOSEMIN

Number Number Number

SHIFT Number

COUNT REVENUE TIPEMP STR_ID DOB

Number Number Varchar2 Date Number 30 Yes Yes

TYPEID2 OCCASION REVID2

Number Number

Type 1 2 3 4 5 6 7 8 9

Sales Types Description


Total (including inclusive taxes) of all items sold by sales category. Does not include exclusive taxes or voids) Exclusive taxes, by Tax ID Tax-exempt exclusive taxes, by Tax ID Payments, by tender ID Comps, by comp ID Promotions, by promotion ID Comp tax not collected, by tax ID Promotion tax not collected, by tax ID Taxable sales for inclusive and vendor taxes, by tax ID

|Page7

10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68

Total guests Total checks Amount of tip share paid Total voided sales, by employee ID Tip reduction, by employee ID Petty cash, by manager employee ID and account ID Non-collected surcharges Collected surcharges Order mode charges Comps, by sales category ID Promotions, by sales category ID Server performance measure, by performance measure ID Declared cash from checkouts Gift certificates sold, by gift certificate ID Tax, by sales category ID Taxable sales for inclusive taxes, by sales category ID inclusive tax formula: TAX= (AMOUNT * RATE) / (1 + RATE) Non-redeemed payments (over-payment without return change) Net sales, by order mode ID Total calculated inclusive taxes Calculated inclusive taxes, by check number Auto gratuity, by check number Refunds, by Sales Category ID Total tax refunded Taxable refunds Tax exempt refunds Tax refunds, by sales category ID Taxable refunds, by sales category ID Tax-exempt taxable sales Over/short, by employee ID (if available) Number of checks, by order mode ID Perpetual check counter information Rounding adjustment total Order attributes Number of 'no sale' transactions (QuickService only) Foreign currency payments, by tender ID Guests, by order mode ID Credit card refunds Exclusive tax taxable sales, by sales category ID Straight sales inclusive tax comps (if NETHASCOMPS=TRUE) promotions (if NETHASCOMPS=TRUE), by sales category ID. Straight sales + Exclusive tax, by sales category Inclusive tax, by sales category ID Cash cards sold Voided gift certificates, by gift certificate ID Declared tenders from Payment Reconciliation Uncollected surcharges, by sales category ID Collected surcharges, by sales category ID Order mode charges, by sales category ID Revenue center ID for type 60 order mode charges Additional charges (Aloha Manager\Maintenance\Store Settings\Financials\Add Charges) Goods and services tax (GST) $0.00 checks Total comps applied to gift certificates, by comp ID Total promos applied to gift certificates, by promo ID Total comps applied to gift certificates, by sales category ID Total promos applied to gift certificates, by sales category ID

|Page8


Field TYPE

CR_GNDITEM: This

file contains one record for every item sold.


Length 1 10 Key Description The type of record ('0' for a normal sale, '1' for a refund) Employee ID who sold the item, but not necessarily the employee who closed the check. Check number Item ID Item ID number of the parent item if this item acted as a modifier Sales category ID Order mode ID Period ID Transaction hour Transaction minute Tax ID Revenue center ID assigned to the check Terminal ID Menu ID Submenu ID or modifier menu ID Price ??? Store ID or Unit ID (from ALOHA.INI) DOB If pivot seating is used, the seat number the item was ordered from A unique entry ID generated by the Front-of-House (FOH) Event ID (SuperSite) Item quantity (usually one except when using quantity pricing)

Type Number Number

EMPLOYEE CHECKID ITEM

Number Number Number

10 10 10

Yes Yes

PARENT CATEGORY MODEID PERIOD HOUR MINUTE TAXID REVID TERMID MENU ORIGIN PRICE MODCODE UNIT DOB

Number Number Number Number Number Number Number Number Number Number Number Number Number Date Number

10 10 10 2 2 10 10 10 10 10 15,2 2 6

Yes Yes

SEAT Number ENTRYID OCCASION 10 Yes

Number Number

10 15,4

QUANTITY

|Page9

CR_TENDER: This file contains a record for all applied payments. Field Type Varchar2 Date Number Number Varchar2 Length 30 Key Yes Yes Yes Yes Description Store ID/ Unit ID (from ALOHA.INI) Key DOB-Key Line ID-Key Tender Id ID Tender Type 1=Tender 2=Promotion 3=Comp Amount Identifier, if tender or promotion Authorization, if tender Expiration, if tender Guest name, if available Comp unit, if comp Tip Non-redeemed payment (overpayment without change provided) House account ID, if house account Employee ID who authorized the transaction Check ID Transaction hour Transaction minute

TDR_STR_ID TDR_INVM_DOB TDR_LINEID TDR_TENDER_ID

10 10 4

TDR_TYPE TRD_AMOUNT TDR_IDENT TRD_AUTH TRD_EXP TRD_NAME TDR_UNIT TDR_TIP

Number Varchar2 Varchar2 Varchar2 Varchar2 Varchar2 Number Number

15,3 20 20 8 20 4 15,3 15,3

TDR_NR Number TDR_HOUSEID Number TDR_MANAGER TDR_CHECK TDR_HOUR TDR_MIN Number Number Number 10 Yes 10

| P a g e 10

CR_ADJTIME (Labor Hours File): This table contains the shift data. Field Description Employee ID EMPLOYEE Employee shift number for the day. For example, the first time the SHIFT_ID clock-in for the day is shift one, the second time they clock-in for the same day is shift two, and so on. TRUE if this shift has been discarded INVALID Social Security Number SSN DOB DOB Job code ID JOBCODE Clock-in hour INHOUR Clock-in minute INMINUTE Clock-out hour OUTHOUR Clock-out minute OUTMINUTE Total minutes (including overtime) MINUTES Total hours (including overtime) HOURS Pay rate RATE Total pay for shift (including overtime) PAY Overtime minutes OVERMIN Overtime hours OVERHRS Overtime rate OVERRATE Overtime pay OVERPAY Earned Delivery Fees DRIVERFEES Credit card tips (less any reductions) CCTIPS Declared tips DECTIPS Tippable gross sales closed by server SALES Tippable gross sales closed by server, rung by someone else SALESIN Tippable gross sales rung by server, closed by someone else SALESOUT Non-tippable gross sales closed by server NOTIPSALES Employee ID who created, edited, or deleted this shift MANAGER Number minutes worked for paid break PAIDRK Number hours worked for unpaid break PAIDBRKHRS Paid Break Wages PAIDBRKPAY Number minutes worked for unpaid break UNPAIDBRK Number hours worked for unpaid break UNPDBRKHRS Unpaid break time UNPDBRKPAY TRUE if shift was tipped TIPPED TRUE if changes have been reported to employee SEEN Regular overtime minutes REGOVMIN Regular overtime hours REGOVHRS Regular overtime pay REGOVPAY Daily overtime minutes DAYOVMIN Daily overtime hours DAYOVHRS Daily overtime pay DAYOVPAY Edited punch unique id PUNCH_ID Unit ID (from ALOHA.INI) UNIT Event ID (SuperSite) OCCASION Driver starting miles STARTMILES Driver ending miles ENDMILES Delivery runs DLVRUNS Delivery orders DLVORDERS Delivery sales DLVSALES Tippable Credit Card Sales CCTIPSALES Total Employee contribution to vizor vest program VIZOR

| P a g e 11

CR_GNDLINE: This file contains line item detail records for applied Comps and Promos. Description Promo or comp ID Item ID Price (when check was closed) Price (when item was ordered) Amount of discount Type of discount : 1 Payment 2 Promo 3 Comp 4 Comp category 5 Promo category 6 Gift certificate promo 7 Gift certificate comp 8 Comp category 9 Promo category Sales category ID Promo or comp ID Check ID Unit ID (from ALOHA.INI) DOB A unique entry ID generated by the FOH Event ID (SuperSite) Concept ID

Field ID ITEMID PRICE OPRICE AMT

TYPE CATID TYPEID CHECKID STR_ID DOB ENTRYID OCCASION CONCEPTID

CR_TURN: This file contains detailed information for each opened and closed table, enabling reports to track the lifetime of the table. By analyzing these times, a manager can determine where guests are spending their time and focus on improving service in those areas. By speeding up table turnover, the restaurant can serve more guests and generate more revenue. Description Field Unit ID (from ALOHA.INI) TO_STR_ID DOB TO_DOB LINE ID TO_LINEID Number of minutes an order was promised TO_PROMISED CATEGORY ID TO_CATEGORYID Employee ID who closed the check, but not necessarily the employee who sold the item. TO_EMPLOYEE Employee ID (who delivered the order) TO_DRIVER Job code ID TO_JOBCODE Table number TO_TABLE A unique ID generated by the FOH TO_TABLEID Table name (table number or Tab name) TO_TABLENAME Sales period TO_PERIOD Revenue center TO_REVID Total minutes the table was open TO_MINUTES Total sales closed on the table TO_SALES Number of checks closed on the table TO_CHECKS Number of guests at the table TO_GUESTS Hour when party began waiting for table (if using a seating system) TO_WAITHOUR

| P a g e 12

TO_WAITMIN TO_WAITSEC TO_SEATHOUR TO_SEATMIN TO_SEATSEC TO_OPENHOUR TO_OPENMIN TO_OPENSEC TO_CLOSEHOUR TO_CLOSEMIN TO_CLOSESEC TO_FIRSTORDHR TO_FIRSTORDMN TO_FIRSTORDSC TO_LASTORDHR TO_LASTORDMN TO_LASTORDSC TO_FIRSTPAYHR TO_FIRSTPAYMN TO_FIRSTPAYSC TO_LASTPAYHR TO_LASTPAYMN TO_LASTPAYSC TO_BUSHOUR TO_BUSMIN TO_BUSSEC TO_FIRSTBMPHR TO_FIRSTBMPMN TO_FIRSTBMPSC TO_LASTBMPHR TO_LASTBMPMN TO_LASTBMPSC TO_READYHOUR TO_READYMIN TO_READYSEC TO_ASSIGNHOUR TO_ASSIGNMIN TO_ASSIGNSEC TO_DRVOUTHOUR TO_DRVOUTMIN TO_DRVOUTSEC TO_DRVINHOUR TO_DRVINMIN TO_DRVINSEC

Minute when party began waiting for table (if using a seating system) Second when party began waiting for table (if using a seating system) Hour when party was seated (if using a seating system) Minute when party was seated (if using a seating system) Second when party was seated (if using a seating system) Hour when table was opened in the POS Minute when table was opened in the POS Second when table was opened in the POS Hour when table was closed in the POS Minute when table was closed in the POS Second when table was closed in the POS Hour when first item ordered for the table Minute when first item ordered for the table Second when first item ordered for the table Hour when last item ordered for the table Minute when last item ordered for the table Second when last item ordered for the table Hour when first payment applied for the table Minute when first payment applied for the table Second when first payment applied for the table Hour when last payment applied for the table Minute when last payment applied for the table Second when last payment applied for the table Hour when table was bused (if using a seating system) Minute when table was bused (if using a seating system) Second when table was bused (if using a seating system) Hour when first order bumped Minute when first order bumped Second when first order bumped Hour when last order bumped Minute when last order bumped Second when last order bumped Time for order to be bumped (hour) Time for order to be bumped (minute) Time for order to be bumped (second) Time order was assigned (hour) Time order was assigned (minute) Time order was assigned (second) Driver out time (hour) Driver out time (minute) Driver out time (second) Driver in time (hour) Driver in time (minute) Driver in time (second)

| P a g e 13

CR_VOIDS: This file contains a record for every item voided. Description Unit ID (from ALOHA.INI) DOB Line ID Employee ID Manager ID Table Name Item ID Price Hour Minutes Void Reason Return to inventory flag Revenue ID

Field VD_STR_ID VD_DATE VD_INVM_ID VD_LINEID VD_EMPLOYEE VD_MANAGER VD_TABLENAME VD_ITEM VD_PRICE VD_HOUR VD_MINUTE VD_REASON VD_INVENTORY VD_REVID

| P a g e 14

You might also like