adding time to line printers

General Discussions
Post Reply
annerich
Member
Member
Posts: 14
Joined: Mon Aug 10, 2009 12:29 pm

adding time to line printers

Post by annerich »

How do I include the time the order was taken on the line printer?
User avatar
Scott
Site Admin
Site Admin
Posts: 2566
Joined: Wed Apr 16, 2003 5:35 pm
Location: Western PA

Re: adding time to line printers

Post by Scott »

I am not sure which print method you are using, but if it is box label format use %to in your label layout.

If you are using the graphical receipts then it is %d4 for the equivalent. There are also additional time types.

Below are the label commands for the make-line system:

Code: Select all

Label Codes for Box Labels setup with POS Pizza:

The code will contain bare text on a single line only and will use the following variables to represent POS Pizza information for a particular order item.

   Time - Date Variables

   %ds = Today's Date MM-DD-YY format
   %dc = Today's Date YYMMDD format
   %dt = Date & Time YYMMDDHHMM format using a 24 hour clock
   %t1 = current time 12-hour format (eg. 5:22p)
   %t2 = current time 24-hour format (eg. 17:22)
   %to = order time 24-hour format (eg. 17:22)

   Customer Info Variables

   %fn = Customer's First Name
   %ln = Customer's Last Name
   %ph = Customer's Phone Number (Main)
   %ad = Customer's Address in (Address line 1, City) format.
   %ca = Same as %ad if Delivery, otherwise blank.
   %a1 = Customer's Address Line 1
   %a2 = Customer's Address Line 2
   %ct = Customer's City
   %st = Customer's State
   %zc = Customer's Zip Code
   %cw = Customer Warning Msg (From Customer Rec)

   Order Variables

   %ot = Order Total Amount (eg. $15.25)
   %it = Item Total Amount(eg. $4.95)
   %tx = Tax Total (eg. $0.77) - Total of ALL applicable Taxes to entire order
   %id = Item Description including additions, toppings etc.
   %si = Item "Special Instructions"
   %ic = Total Item Count for entire order
   %tc = Total Item Count for this console only.
   %cc = Current Item Count for this item.
   %on = Order Number (eg. 00723) - 5-Digit Numerals only.
   %tp = Order Type (eg. Dlv, Car, Din).
   %ef = Extra Data Field Name
   %ed = Extra Data


   Formatting Variable

   %bn = New Line would begin printing on the next line down.
   %bs = New Line ONLY IF previous line has data on it...
   %ff = Form Feed - Should only be used with Line-Printers!


Below is an example of a Label Code Line and the output that it would generate:

#%on - %ln, %ph%bn%ad%bs%id%bnItem %cc of %ic - %ot

The above code would print the following on the box label

+ -------------------------------------- +
| #00723 - Smith, (800) 555-1212         |
| 126 Bedford Ave., YourTown             |
| Lg. Pizza w/Pep, Msh, Xch              |
| Item 1 of 3 - $22.79                   |
|                                        |
+ -------------------------------------- +

During translation each % code will be replaced by the appropriate field or command.

If a code is blank, then the default (built-in) format will be used depending on the type of printer used on the given line.

Default Label Codes are:

DYMO:
#%on - %ln, %ph%bn%ad%bs%id%bnItem %cc of %ic - %ot

Other:
Item %cc of %ic%bn%tp %ph %ln, %fn  (#%on)%bn%id%bn%si%bn%bn%bn

Below are the custom receipt layout codes for the graphical receipts:

Code: Select all

Receipt Print Markup Language

' Formatting Control Codes

'  FONT-CHANGE and LINE FORMATTING *MUST* appear prior to any other codes or text on a given line!

%cl  -  Centering ON
%nn  -  No New Line, Remaining data is on the same line as last data (continuation of previous line)
%lj  -  left justify ON (default)
%rj  -  right justify ON
%f1  -  Use Font 1
%f2  -  Use Font 2  -  Fonts will be defined like "Verdana,10,1" (10 pt Bold) in a TEXT field in database.
%f3  -  Use Font 3  -  All of the template will also be stored in a text field.
%f4  -  Use Font 4
%el  -  empty line

'  Conditional Printing

%po  -  Print only if following parameter is NON-ZERO or Not NULL.
           Useage:  %po%t1%rjTax 1: %t1  Would print Tax 1: $0.33
           only if %t1 (tax 1 amount in this case) is not zero.
           Otherwise everything on a line after this command is ignored.
%fd  -  Flag "Is Delivery",  returns 1 if order is a delivery or 0 if not.  This is for use with %po to
        determine whether or not an order is a delivery order
%fc  -  Flag "Is Carry-Out"  returns 1 if order is a carry out order, otherwise 0 is returned.
%fn  -  Flag "Is Dine-In"  returns 1 if order is a dine-in order, otherwise 0 is returned.
%fp  -  Flag "Print Phone" returns 1 if Always Print Phone is enabled OR if order is a delivery. Otherwise 0 is returned.
%fa  -  Flag "Print Address" returns 1 if Always Print Addr is enabled OR if order is a delivery. Otherwise 0 is returned.
%fx  -  Flag "Is Tax Exempt" returns 1 if order is Tax Exempt, otherwise 0 is returned
%ft  -  Flag "Is *NOT* Tax Exempt" returns 0 if an order is Tax Exempt, otherwise 1 is returned (opposite of %fx)


'  Header & Layout Codes

%li  -  Legal License Name/City/Phone  MUST APPEAR 1 TIME or will be inserted at top of receipt
%ln  -  Line
%lg  -  Logo
%ed  -  Extra Data
%ef  -  Extra Data Field Name
%rp  -  Reprint (is "Reprint" if receipt is a reprint otherwise it is empty)
%on  -  Order Number
%tp  -  Order Type (Dine, Cary, Deliv)
%tb  -  Table Name/# if dine-in module order (should be used with the %po command to test for data first)
%cn  -  Cashier (Display Name)
%sn  -  Station (Computer Name)
%ca  -  Customer Name
%cp  -  Customer Phone #
%ce  -  Customer Email Address
%cf  -  Customer Full (Street) Address (House + Street + AddrLine2 + City, St + Zip)
%cs  -  Customer Street Address (House + Street Only)
%c2  -  Customer Address Line2
%ct  -  Customer Points Available
%ot  -  Order Time/Date   (SQL Format)
%dy  -  Order Year
%dm  -  Order Month Number
%dd  -  Order Date (Day number)
%dM  -  Order Month Name (Abreviated 3 characters)
%dD  -  Order Day Name (Abreviated 3 characters)
%d2  -  Order Time (12 Hour)
%d4  -  Order Time (24 Hour)
%pt  -  Print Time/Date   (SQL Format)
%py  -  Print Year
%pm  -  Print Month Number
%pd  -  Print Date (Day number)
%pM  -  Print Month Name (Abreviated 3 characters)
%pD  -  Print Day Name (Abreviated 3 characters)
%p2  -  Print Time (12 Hour)
%p4  -  Print Time (24 Hour)
%di  -  Delivery Instructions (Directions)
%pr  -  Promo Message
%sl  -  Slogan Message (single-spaced)
%s2  -  Slogan Message (double-spaced)
%em  -  Store Email Address
%dc  -  Delivery Charge Name  eg.  "Delivery Fee"
%n1  -  Tax 1 Name
%n2  -  Tax 2 Name
%n3  -  Tax 3 Name
%n4  -  Tax 4 Name
%dn  -  Discount Name

' Total Codes
%z1  -  Cash Tendered Amount
%z2  -  Check Tendered Amount
%z3  -  Credit Card Tendered Amount
%z4  -  Gift Card Tendered Amount
%z5  -  Billed To Account Amount
%z6  -  Customer Credit Awarded Amount
%z7  -  Points charged (taken from customer) Amount
%z8  -  Points earned (given to customer) Amount
%z9  -  Change given back to customer Amount
%z0  -  CashBack Amount (Debit Card Purchase)
%za  -  Debit Card Tendered Amount
%tt  -  Total Tax Amount
%t1  -  Tax 1 Amount
%t2  -  Tax 2 Amount
%t3  -  Tax 3 Amount
%t4  -  Tax 4 Amount
%t5  -  Delivery Tax Amount
%df  -  Delivery Fee Amount
%ds  -  Discount Amount
%st  -  Sub-Total
%to  -  Total


'  Per Order Item Codes

%fi  -  Full Item Info (No other codes needed)
%if  -  Item Name + Toppings (traditional style)
%qt  -  Quantity
%it  -  Item Name
%nf  -  Next Topping (Full Name) - Must appear twice to show layout for all of the toppings and only if %fi or %if NOT USED!
%nt  -  Next Topping (Abev Name) - Must appear twice to show layout for all of the toppings and only if %fi or %if NOT USED!
%ic  -  Item Charge
%si  -  Special Instructions


;  -  Comment, can be the fist thing on a line or after other data.  Everything after this and all space from last
      entry up to this point will be ignored.

Each line will print as a single line of text.  Any line breaks in the script are ignored so if you want multiple
line breaks use the %el (Empty Line) command to force a line-feed on your receipt.

The %nn command on the otherhand will continue a line of text on the same line as the one above it so you could
have 2 separate lines of data in a script that actually print as a single line if the 2nd line begins with %nn.
The %nn must be first on a line or it will be ignored.





---- Example Script ----

%lg                    ; Print Logo
%f3                    ; Use Font 3
%cl%li                 ; Center Legal Name
%f1                    ; Use Font 1
%el                    ; empty line
%ln                    ; Print a LINE
%el%lj                 ; empty line & Left Justify
%f2Cashier: %cn        ; Cashier Name
%po%tb%nn%rjTable: %tb ; Right Justified Table on same line as cashier
                       ; IF Table is Valid!
%el%f2                 ; another empty line, font 3
%cl#%on - %ot          ; Order # and time/date in SQL format
                       ; empty lines are ignored
%f1                    ; back to font 1 for items
%el%ln%el              ; a couple emty lines, and then a LINE
:For Each Item         ; Begin Per Item Layout
%lj                    ; Items will print like:
%qt  %it%po%si / %si   ;   1 Large Pizza / Unbaked         $12.49
%nn%rj%ic              ;        Pep, Msh, 1/2a(BOlv, On)
;%lj     %nt, %nt      ; *if it wraps it won't indent!
%cl%nt
%cl%nt
:End Item              ; end of per item layout
%el                    ; print an empty line
%ln                    ; print a LINE
%el                    ; another empty line
%rj%po%ds%dn: %ds      ; discount (if present)
Tax: %tt               ; Right Justified,      Tax: $0.45
Total: %to             ; Right Justified,   Total: $15.85
%el                    ; empty line
%clT H A N K   Y O U ! ; Centered, Literal Text
%el                    ; empty line
%clEmail: %em          ; Centered, Email: ouraddress@ourdomain.com
%el%el%el              ; empty line
                       ; job end
Scott
Post Reply