ALOHA Report Command Line Parameters
You can print ALOHA application software reports from a command line, which enables you to automatically print reports for a Date-of-Business (DOB) each night using Winhook. This document explains the report command line parameters and usage information associated with RPT.EXE.
Command Line
RPT.EXE uses the following syntax and parameters:
- /IBERDIR declares the location of the Aloha application software folder. This does not need to be declared if the variable already resides in the system environment.
- /DATE specifies the DOB to report. It is based on the dated folder’s label. Winhook uses the %1 variable to specify the date. The %1 parameter is standard syntax for referring to command-line variables from within a batch file.
- /Rzto specifies the report to print. Replace z with a parameter listed later in this document.
- Use /LOAD “y” to specify a setting file for the Labor Report, Sales Report, and Product Mix Report, where yif the report settings file name.
- Use /Xzin place of /Rz to export the report to a file rather than print the report. Replace z with a parameter listed later in this document. The report is exported using the format and location information already existing in the report’s export settings. The export will not function properly unless you have previously saved these settings in Aloha Manager, which creates an .EXP file for this report.
The following command line prints a Sales (Cash) Report for 1/7/2000:
%IBERDIR%\BIN\RPT.EXE /DATE 20000107 /RC /LOAD “DEFAULT.SLS.SET”
The following command line exports a Sales (Cash) Report for 1/7/2000:
%IBERDIR%\BIN\RPT.EXE /DATE 20000107 /XC /LOAD “DEFAULT.SLS.SET”
Reporting Consecutive Days
/DAYS n creates a report for a span of consecutive days defined by n. The n variable is a positive or negative number that defines the number of subsequent or previous days to include in the report, including the date specified by the DATE variable. For example, you could print a Sales report for 3/1/2005 through 3/7/2005 using either of the following command lines:
%IBERDIR%\BIN\RPT.EXE /DATE 20010301 /RC /DAYS 7 /LOAD “DEFAULT.SLS.SET”
%IBERDIR%\BIN\RPT.EXE /DATE 20010307 /RC /DAYS -7 /LOAD “DEFAULT.SLS.SET”
If you are using Winhook to print these reports, then you must use the latter option, with the negative number. For example, if you want to print a Sales report after each EOD for the previous week, then you would insert something similar to the following in your Winhook batch file:
%IBERDIR%\BIN\RPT.EXE /DATE %1 /RC /DAYS -7 /LOAD “DEFAULT.SLS.SET”
Report Parameters
Parameter – Function
A – Labor Report. In versions 5.0x and lower, use /NUM n to declare the Labor Report number (1-3).
AD – Daily Cashout Summary
B – Employee Break Report
C – Sales Report
CW – Weekly Sales Report
D – ADP Payroll Export File
DD – Delivery Driver Report
DP – Delivery Production Report
E – Entertainer Income Report
F – ReMacs Menu Item Sales Export File
G – Gift Certificate Tracking Report
H – Hourly Sales and Labor Report
HW – Weekly Hourly Sales and Labor Report
I – Menu Item Forecast Report
J – Tip Income Report
K – Comparative Server Sales Report
L – Scheduled Vs Actual Labor Report. You cannot fully automate this report from a command line.
M – Edited Punches Report
N – Surcharge Report
O – Overtime Warning Report
OD – Open Drawer Report
P – Product Mix Report
PQ – Weekly Quick Count Report
PW – Weekly Product Mix Report
Q – Employee Performance Measures Report
R – RealWorld Payroll Export File
S – Landry’s Sales Report
T – Top Item Movement Report
TD – Tipshare Detail Report
TR – Tipshare Summary Report
TS – Team Service Tip Split Report
U – Edit Deposits Report
V – Void Report
W – Server Sales Report (There is not a way to select the employees to list in this report from a command line, so printing this report from a command line produces a blank report.)
Y – Payment Detail Report
Z – Sales By Revenue Center Report
1 – Coconut Code Payroll Export File
11 – Overtime Forecast Report
2 – Coconut Code Sales Mix Export File
3 – Coconut Code Daily Sales Export File
4 – Back-of-House User Security
5 – Back-of-House Security Levels
6 – Detailed Access Levels
7 – Front-of-House Cash Owed Report
8 – Speed of Service Report
9 – Tiered Tax Report
Default Printer’ Error Messages
If you experience error messages regarding the ‘default printer’ when you try to print reports via Winhook. In this case, you must edit the Windows registry to ensure the default printer is properly defined before Winhook can print reports.
The incorrect use of the Windows Registry Editor can lead to serious, system-wide problems that may require the reinstallation of the operating system. Use this tool at your own risk.
All Registry entries are case sensitive.
- To open the Windows Registry Editor, select Start/Run, type REGEDIT, and click OK.
- Path out HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Devices.
- Verify if a string for the default printer exists with a value of winspool,LPT1:. Note the printer name assigned to the string’s name.
This document assumes that you are connecting the printer to a parallel port (LPT1). The port name will differ (such as Ne00) if you are using a USB port or a virtual port.
- Path out HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PrinterPorts.
- Verify if a string for the default printer exists with a value of winspool,LPT1:,14,45 (or something similar, such as winspool,LPT1:,15,45). Note the value assigned to the printer string.
- Path out HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows.
- Verify if the Device string exists with a value of [printer name] ,winspool,LPT1:.
- HKEY_USER\DEFAULT\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Devices.
- Create a new string based on the printer’s name and assign a value of winspool,LPT1:.
- HKEY_USER\DEFAULT\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PrinterPorts.
- Create a new string name based on the printer’s name and assign the same value as assigned in step 5. For example, winspool,LPT1:,14,45.
- Path out HKEY_USER\DEFAULT\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows.
- Verify if the Device string exists with a value of [printer name] ,winspool,LPT1:.
- Select Registry/Exit to exit the Windows Registry Editor.
- Restart Windows.
Deposit Prompt
Some reports prompt you for a deposit if you have not already entered one for the DOB. You can add /NODEPOSIT to the command line for report types C (Sales Report) and 3 (Coconut Code Daily Sales Export File) in order to suppress the prompt for deposit amounts.
WAIT.EXE
Use the WAIT.EXE utility to create a timed pause in a batch file. Some printers do not have the buffer capabilities to process multiple reports sent in quick succession. Use WAIT.EXE to create a 30-second pause between each report, which gives the printer time to process the previous report.
Prompt for Date
If you want to initiate a report from a command line and still prompt for the date, then omit the /DATE variable from the command line.