Skip to content
Saleculator
Saleculator
  • Features
  • Downloads
  • Docs
  • Pricing
  • Blog
  • Partners
  • Contact

Setting Printer.Ticket for 80 column pre-printed form

HomeSetting Printer.Ticket for 80 column pre-printed form

Get Support

Getting Started

  • Introduction
  • Installing Saleculator on Windows
  • Printer setup
  • Performing your first sale!
  • Basic POS Operations
  • Understand Saleculator User Interface
  • Keyboard Shortcuts
  • Building a low cost POS System with Raspberry Pi and Saleculator
  • Activating Saleculator
  • Building a Saleculator Point of Sale System (Linux)
  • Using MySQL for Saleculator
  • Saleculator Webin Introduction

What's New?!

  • Dynamic product labeling and more
  • Updates focusing multi-retail management
  • Introducing a whole new UI
  • Custom POS Reports and more
  • Cash counting while closing
  • Now Print, Email, or Save your reports with a single click! Check the latest update.

Saleculator Features

  • Different Billing Methods or Modes in Saleculator
  • Cash Closing in Saleculator
  • Close cash reports
  • Multiple outlet control from a single point
  • Bill settlement

Tutorials

  • Cashier Guide
  • Manager Guide
  • Administrator Guide

How To's

  • Happy hour sale
  • Edited bills report
  • Printing reports in thermal receipt printer
  • Assign product categories to user roles
  • Printing encoded product cost on label
  • Installing AnyDesk in Saleculator
  • Get quantity from price embedded barcodes
  • Print Open Items in Close Cash Report
  • Update cumulative stock balance in stock diary
  • Using Saleculator for subscription based billing
  • Automatic Billing On Events
  • Printing Expiry Date On Product Labels
  • Dynamic item pricing based on auxiliary item
  • Applying tax on an open item
  • VAT Update Resources for UAE and KSA
  • Apply discount on a selected item
  • Print total amount in words
  • GST Update for India
  • Setting offer to choose any 5 items for the price of 3
  • Buy One Get One Sale
  • Tag-Along items
  • Print accounts report on every 1st of month
  • Show stock of selected item or stop selling out of stock item
  • Change warehouse for current sale
  • Stock movement in close cash report
  • Configure second display with Saleculator
  • Allowing Saleculator to access gmail account for sending mails
  • Setting a shortcut on sales screen to call another screen
  • Updating Saleculator to the latest version
  • Assign dining tables to waiters
  • Payment report based on payment type
  • Dynamic printer or print format selection
  • Tax based on customer
  • Multiple taxes
  • Setting Printer.Ticket for 80 column pre-printed form
  • Get the credit card type
  • How to backup Saleculator data
  • Support for individual person billing sitting in the same table
  • Print Token/Sequence number in receipt & KOT
  • Print total amount in Arabic numerals
  • How to setup KOT Printing
  • How to use auxiliary product as item note or modifier
  • Calculate cash balance in the drawer
  • Printer item wise sales report in close cash report
  • Foreign currency support
  • Print last bill from sales screen
  • Automatically return to billing mode after KOT
  • Embedding Chrome browser in Saleculator POS
  • HO to Branch Sale
  • Print priority notification on KOT
  • Restrict KOT cancellation
  • Calculating quantity from amount
  • Price/Weight/Quantity embedded barcode configuration
  • Installing Saleculator Webin on Windows
  • How To Bulk load data using Saleculator Webin
  • Laundry Operations With Saleculator POS
  • Handling Customer Debts Using Saleculator Software
  • Assigning USB printer to LPT port in Windows
  • Using Saleculator for Salon Business
  • Setting Static IP for the Raspberry LAN connection
  • Reset Saleculator from Root Shell
  • How to setup receipt and KOT on the same printer
  • Adding Taxes to the bill receipt
  • Printing Receipt with KOT
  • How to print duplicate receipt copy
  • Remote access WEBIN and Putty
  • Deleting Products and Categories from Saleculator POS Menu
  • How to restore a backup from the raspberry root using a flash drive
  • Adding service charge button and resource
  • Adding Menu Search option on the sales screen
  • Printing receipts on A4 & A5 printer sheets
  • Adding shortcut buttons for Cash, Card and Debt payment modes
  • Downloading PLU file for Label Scale
  • Transaction cutting above certain amount limits
  • Retrieve The License Key from the Root
  • Protected: PIN Reset
  • Installing Saleculator on Android Tab/Phone
  • Manual Update of Date and Time from Raspberry root
  • Print Barcode Label using WEBIN
  • How to enable the buzzer sound (Beep) for your KOT printers
  • Create User Roles as per your needs and permissions (E.g, Create a Role for sending KOT only!)
  • Change product button size
  • Billing transaction for Advance payment customers
  • IMPORTANT! Close cash report changed in version 3.8 U2 onwards
  • Adding new reports in Close Cash report
  • Accepting advance payment
  • How to setup Saleculator Kitchen Display System – KDS
  • Automatic data backup
  • Delete transactional data older than given days
  • Customize product button font style
  • Payment report based on card service provider
  • Setting customer reward points
  • Printing discount amount/service charge below the total amount in the receipt
  • Updating Webin to the latest version
  • Category wise sales report with parent category and profit
  • How to print barcode labels from Saleculator
  • Print category wise sales report in Close Cash
  • Print receipt log in Close Cash report
  • Setting a default tariff for all new bills
  • Apply a discount or tariff based on customer category
  • Round Off the total bill amount
  • Discount on total bill amount
  • Printing a coupon along with the receipt
  • Capture additional information and store in receipt
  • Capture additional information about an item from sales screen
  • Setting product property
  • Adding ZATCA Approved QR code to the invoice
  • Adding a payment option for Tip collection
  • Print Arabic product names on the receipts
  • How to delete the pictures from all product buttons
  • How to add Onscreen Keyboard for Saleculator on Raspberry Pi
  • Adding UPI enabled Payment QR code on the Bill Receipt
  • Access Raspberry Root using only LAN cable and Putty App (Without Internet)
  • MySQL command to Update Tax to all the products on the catalog automatically
  • Connect your Raspberry to the WiFi network
  • How to setup KOT4 for additional printer
  • Setting Up the Server and Client (Windows)

Hardware Setup

  • Setting-up Network thermal printer
  • Connect a network thermal printer directly with Saleculator
  • Setup HP or Samsung Laser/Deskjet Printers
  • A4 Laser printer setup for reports
  • Using Bluetooth weighing scale with Saleculator on Raspberry Pi
  • Using Label Scale with Saleculator

Troubleshooting

  • Fixing Database Not Loading error in Saleculator M5
  • Fixing issue, which required double tapping on touch screen to get click working
  • Protecting Saleculator Database from Ransomware Attacks
  • Enabling Tapping To Click for touchpads
  • Installing WiFi adpaters
  • Enabling support for more than 4 serial devices
  • Switch screen mode from portrait to landscape
  • Running remote Saleculator in Windows using Putty
  • Recover data from ibdata and .frm files
  • Resources supporting 42 character printer
  • Disable Saleculator screen turning blank due to inactivity
  • Persistent names for usb and serial devices
  • A quick rescue to free space when mysql run out of space
  • Remove duplicate item entry in sales screen
  • Recover data from a crashed MySQL instance
  • Using Putty to remote access Saleculator command shell
  • Updating Saleculator SSL certificates manually in JAVA keystore
  • Fixing issue of CUPS pausing the printer
  • How to solve repeated activation key requests?
  • MySQL Warning: IP address ‘192.168.1.98’ could not be resolved: Name or service not known
  • How to fix if Saleculator is stuck on loading screen
  • Installing eGalax touchscreen driver on Linux
  • Saleculator stuck at command shell
  • Fixing “Not enough stock” error when billing products
  • How to fix no network connection issues while activating the license key
  • Delete transactions for heavy back-office data
  • Fixing “This product does not have attributes” error!
  • How to resolve “Danger: Cannot connect to database. Database not available” error on Windows
  • Corrupted/Damaged SD Card issues
  • Fixing Arabic language issue on the barcode label printout
  • How to reset the negative inventory unit values to zero
  • How to fix the disordered sequence of Ticket# in the sales log report
  • Fixing “mysqld.exe System Error” while installing MySQL on Windows
  • Fixing error “The entity name must immediately follow the ‘&’ in the entity reference.”
  • Fix issue of monitor turning blank while Saleculator loading
  • Solving common disk errors
  • Find tag ending issues in XML resources
  • Fixing “There is no stock of this item” error when trying to refund an item.
  • Data backup using command prompt (Windows)

Reference

  • Objects and Methods
  • Home
  • Documentation
  • How To's

Setting Printer.Ticket for 80 column pre-printed form

Maintenance > Resources
This formatting in Printer.Ticket print receipt formatted in 80 column paper. It also handle page breaks. Adjust line gaps and set header and footer lines count as required.

<?xml version="1.0" encoding="UTF-8"?>
<!--
        Posics Saleculator - Billing System.
        Copyright (C) 2009 Posics
        This file is part of Posics Saleculator.
 -->
<output>
    <display>
        <line>
            <text align="left" length="10">Total.</text>
            <text align="right" length="10">${ticket.printTotal()}</text>
        </line>
        <line>
           <text align="center" length="20">Thank you.</text>
        </line>
    </display>
    <ticket>
<line></line>
<line></line>
<line></line>
<line></line>
<line></line>
<line></line>
<line></line>
<line></line>
<line></line>
<line></line>        

                <line>
        <text length="10"></text>
         #if($ticket.getCustomer())
            <text length="45">${ticket.getCustomer().printName()}</text>
         #elseif($ticket.getProperty("ReceiptNote"))
            <text length="45" >${ticket.printProperty("ReceiptNote")}</text>
         #else
            <text length="45"></text>
         #end
             <text length="25" >${ticket.printId()}</text>
        </line>
        
        <line>
        <text length="10"></text>
        #if ($ticket.getCustomer())
            <text length="68">${ticket.getCustomer().getAddress()}</text>
        #end 
        </line>
        
        <line>
        <text length="10"></text>
        #if ($ticket.getCustomer())
            <text length="45">${ticket.getCustomer().getSearchkey()}</text>
         #else
            <text length="45"></text>
         #end
         <text length="25" >${ticket.printDate()}</text>
         </line>

         
<line></line>
<line></line>
<line></line>
<line></line>
<line></line>

##Set below three values according to form settings
#set ($itemsperpage = 32)
#set ($headerlines = 18)
#set ($footerlines = 14)
##

#set ($totallines = $ticket.getLines().size())
#set ($currentline = 0)
#set ($seqno = 0)
#set ($currentpage = 0)

##Counting total page number and rounding.
#set ($mod = $totallines % $itemsperpage)
#if($mod>0)
#set ( $totalpages = ( $totallines + $itemsperpage - $mod ) / $itemsperpage) 
#else
#set ( $totalpages = $totallines / $itemsperpage) 
#end


        #foreach ($ticketline in $ticket.getLines())

#set ($currentline = $currentline + 1)
#set ($seqno = $seqno + 1)

        <line>
        <text length="4">$seqno</text>
            #if ($ticketline.isProductCom())
                <text length="38">*${ticketline.printName()}</text>
            #else
                <text length="38">${ticketline.printName()}</text>
            #end
            <text align="center" length="10">${ticketline.printMultiply()}</text>
            <text align="right" length="10">${ticketline.printSalePrice()}</text>

            <text align="right" length="16">${ticketline.printSubValue()}</text>
        </line>
        
        #if ($ticketline.productAttSetInstId)
        <line>
         <text length="40">${ticketline.productAttSetInstDesc}</text>
        </line>
        #end

####FORM SETTINGS START
#if($currentline == $itemsperpage)
#set($currentline = 0)
#set($currentpage = $currentpage + 1)

#if($totallines - ($currentpage * $itemsperpage) > 0)
 #set($start = 0)
 #set($end = $headerlines + $footerlines)
 #set($range = [$start..$end])
 #foreach($i in $range)
  <line></line>
 #end
#end
#end
####FORM SETTINGS END


        #end


####FORM SETTINGS START
##Final page alignment
#if($currentline != 0)
#set($currentpage = $currentpage + 1)
 #set($start = 0)
 #set($end = $itemsperpage - $currentline)
 #set($range = [$start..$end])
 #foreach ($i in $range)
  <line></line>
 #end
#end
####FORM SETTINGS END


        <line></line>
        <line>
            <text align="right" length="78" >${ticket.printTotal()}</text>
        </line>
        
         #foreach ($paymentline in $ticket.payments)
         #if ($paymentline.name == "debt")
        <line>
            <text bold="true">Debt</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
        <line>
            <text align="right" length="80">Current Debt: ${ticket.getCustomer().printCurDebt()}</text>
        </line>
         #end
         #end
        <line></line>
        
         
    </ticket>
    
</output>

Another template for 80 column printers which choose template based on customer.

<?xml version="1.0" encoding="UTF-8"?>
<!--
        Posics Saleculator - Billing System.
        Copyright (C) 2009 Posics
        This file is part of Posics Saleculator.
 -->
<output>
    <display>
        <line>
            <text align="left" length="10">Total.</text>
            <text align="right" length="10">${ticket.printTotal()}</text>
        </line>
        <line>
           <text align="center" length="20">Thank you.</text>
        </line>
    </display>
    #if ($ticket.getCustomer())
    <ticket printer="2">
    
    #set ($itemsperpage = 20)
    #set ($headerlines = 0)
    #set ($footerlines = 0)

    #set ($totallines = $ticket.getLines().size())
    #set ($currentline = 0)
    #set ($seqno = 0)
    
    ##Counting total page number and rounding.
    #set ($mod = $totallines % $itemsperpage)
    #if($mod>0)
    #set ( $totalpages = ( $totallines + $itemsperpage - $mod ) / $itemsperpage) 
    #else
    #set ( $totalpages = $totallines / $itemsperpage) 
    #end

        <line size="2">
            <text align="center" length="48" bold="true">BUSINESS NAME</text>
        </line>
        <line>
            <text align="center" length="80" bold="true">ADDRESS1</text>
        </line>
        <line>
            <text align="center" length="80" bold="true">ADDRESS2</text>
        </line>
        <line>
            <text align="center" length="80" bold="true">TELEPHONE</text>
        </line>
        <line>
                <text>--------------------------------------------------------------------------------</text>
        </line>
         <line>
            <text align="center" length="80" bold="true">TAX-INVOICE</text>
        </line>
 <line>
            <text align="center" length="80" bold="true">TRN: 123123123123</text>
        </line>
        
        <line>
 <text>--------------------------------------------------------------------------------</text>
        </line>
                
        #if (${ticket.ticketType} == 0)
        <line>
            <text align="left" length="15">Invoice No.:</text>
            <text>${ticket.printId()}</text>
        </line>
        #end
        #if (${ticket.ticketType} == 1)
        <line>
            <text align="left" length="15">Refund:</text>
            <text>${ticket.printId()}</text>
        </line>
        #end
        <line>
            <text align="left" length="15">Invoice Date:</text>
            <text>${ticket.printDate()}</text>
        </line>
         #if ($ticket.getCustomer())
        <line>
            <text align="left" length="15" bold="true">Customer:</text>
            <text bold="true">${ticket.getCustomer().printName()}</text>
        </line>
        <line>
            <text align="left" length="15"></text>
            <text>${ticket.getCustomer().getSearchkey()}</text>
        </line>
        #if ($ticket.getCustomer().getAddress())
        <line>
            <text align="left" length="15"></text>
            <text>${ticket.getCustomer().getAddress()}</text>
        </line>
        #end
        #if ($ticket.getCustomer().printTaxid())
        <line>
            <text align="left" length="15" bold="true">TRN:</text>
            <text bold="true">${ticket.getCustomer().printTaxid()}</text>
        </line>
        #end
        
        
        #end
        <line></line>
         <line>
              <text>--------------------------------------------------------------------------------</text>
        </line>
        <line>
        <text align="left" length="5">Sl.</text>
            <text align="left" length="30">ITEM</text>
            <text align="right" length="5">QTY</text>
            <text align="right" length="10">RATE</text>
            <text align="right" length="10">AMOUNT</text>
            <text align="right" length="10">VAT</text>
            <text align="right" length="10">TOT AMT</text>
        </line>
        <line>
              <text>--------------------------------------------------------------------------------</text>
        </line>
         
        #foreach ($ticketline in $ticket.getLines())
        #set ($currentline = $currentline + 1)
        #set ($seqno = $seqno + 1)
            <text align="left" length="5">$seqno</text>
            
     
        <line>
            #if ($ticketline.isProductCom())
                <text align="left" length="30">*${ticketline.printName()}</text>
            #else
                <text align="left" length="30">${ticketline.printName()}</text>
            #end
            <text align="right" length="5">${ticketline.printMultiply()}</text>
            <text align="right" length="10">${ticketline.printSalePrice()}</text>
            <text align="right" length="10">${ticketline.printSubValue()}</text>
            <text align="right" length="10">${ticketline.printTax()}</text>
            <text align="right" length="10">${ticketline.printValue()}</text>
        </line>
        #if ($ticketline.productAttSetInstId)
        <line>
	        <text align="left" length="80">    ${ticketline.productAttSetInstDesc}</text>
        </line>
        #end
        #end
        
        
        ####FORM SETTINGS START
##Final page alignment
#if($currentline < $itemsperpage)
 #set($start = 0)
 #set($end = $itemsperpage - $currentline)
 #set($range = [$start..$end])
 #foreach ($i in $range)
  <line></line>
 #end
#end
####FORM SETTINGS END
        
        
        <line>
              <text>--------------------------------------------------------------------------------</text>
        </line>
        <line>
            <text>Total Qty: ${ticket.printArticlesCount()}</text>
        </line>
        <line>
        </line>
        <line>
            <text align="left" length="20">Subtotal</text>
            <text align="right" length="60">${ticket.printSubTotal()}</text>
        </line>
        <line>
            <text align="left" length="20">VAT 5%</text>
            <text align="right" length="60">${ticket.printTax()}</text>
        </line>

   <line>
              <text>--------------------------------------------------------------------------------</text>
        </line>
        <line size="2">
            <text align="left" length="18" bold="true">Total</text>
            <text align="right" length="30" bold="true">${ticket.printTotal()}</text>
        </line>
        <line>
        </line>
 
               #foreach ($paymentline in $ticket.payments)
         #if ($paymentline.name == "cash")
        <line>
            <text bold="true">Cash</text>
        </line>
        
         #end
         #if ($paymentline.name == "cashrefund")
        <line>
            <text bold="true">Refund</text>
         </line>
        <line>
            <text align="right" length="90">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "magcard")
        <line>
            <text bold="true">Mag card</text>
        </line>
         <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
        
         #end
         #if ($paymentline.name == "magcardrefund")
        <line>
            <text bold="true">Mag card refund</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "cheque")
        <line>
            <text bold="true">Cheque</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "chequerefund")
        <line>
            <text bold="true">Cheque refund</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "paperin")
        <line>
            <text bold="true">Voucher</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printDenomination()}</text>
        </line>
         #end
         #if ($paymentline.name == "paperout")
        <line>
            <text bold="true">Voucher Refund</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "free")
        <line>
            <text bold="true">Free</text>
        </<ticket>line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "debt")
        <line>
            <text bold="true">Debt</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
        <line>
            <text align="right" length="80">Total Outstanding: ${ticket.getCustomer().printCurDebt()}</text>
        </line>
         #end
         #if ($paymentline.name == "advance")
        <line>
            <text bold="true">Advance</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "pointsin")
        <line>
            <text bold="true">Points</text>
        </line>
        <line>
            <text align="right" length="80">${paymentline.printTotal()}</text>
        </line>
         #end
         #end
        <line></line>
        <line>
            <text align="left" length="15">Cashier:</text>
            <text>${ticket.printUser()}</text>
        </line>
        <line>
            <text align="left" length="15">Station:</text>
            #if ($ticket.getProperty("orderfrom"))
                <text>${ticket.getProperty("orderfrom")}</text>
            #else
                <text>${ticket.printHost()}</text>
            #end
        </line>
        
<line></line>
<line></line>
<line></line>
<line></line>
<line></line>
<line></line>
        <line>
        <text align="left" length="40">Customer Signature:</text>
        <text align="right" length="40">Thank you. Visit Again.</text>
        </line>
        <line>
                <text align="right" length="80">for BUSINESS NAME</text>
        </line>
    <line>
         <text>--------------------------------------------------------------------------------</text>
        </line>

    </ticket>

#else
    <ticket>
        <image>Printer.Ticket.Logo</image>
        <line size="1">
            <text align="center" length="48">BUSINESS NAME</text>
        </line>
        <line>
            <text align="center" length="48">ADDRESS1, ADDRESS2</text>
        </line>
        <line>
            <text align="center" length="48">TELEPHONE</text>
        </line>
        <line>
             <text>------------------------------------------------</text>
        </line>
        <line>
            <text align="center" length="48">TAX INVOICE</text>
        </line>
        <line>
            <text align="center" length="48">TAX ID: 100030905200003</text>
        </line>
        <line>
             <text>------------------------------------------------</text>
        </line>
        <line></line>
        #if (${ticket.ticketType} == 0)
        <line>
            <text align="left" length="15">Receipt:</text>
            <text>${ticket.printId()}</text>
        </line>
        #end
        #if (${ticket.ticketType} == 1)
        <line>
            <text align="left" length="15">Refund:</text>
            <text>${ticket.printId()}</text>
        </line>
        #end
        <line>
            <text align="left" length="15">Date:</text>
            <text>${ticket.printDate()}</text>
        </line>
         #if ($ticket.getCustomer())
        <line>
            <text align="left" length="15">Customer:</text>
            <text>${ticket.getCustomer().printName()}</text>
        </line>
        <line>
            <text align="left" length="15"></text>
            <text>${ticket.getCustomer().getSearchkey()}</text>
        </line>
        #if ($ticket.getCustomer().getAddress())
        <line>
            <text align="left" length="15"></text>
            <text>${ticket.getCustomer().getAddress()}</text>
        </line>
        #end
        #end
        <line></line>
        <line>
            <text align="left" length="23">Item</text>
            <text align="right" length="5">QTY</text>
            <text align="right" length="10">Price</text>
            <text align="right" length="10">Value</text>
        </line>
        <line>
             <text>------------------------------------------------</text>
        </line>
        #foreach ($ticketline in $ticket.getLines())
        <line>
            #if ($ticketline.isProductCom())
                <text align="left" length="23">*${ticketline.printName()}</text>
            #else
                <text align="left" length="23">${ticketline.printName()}</text>
            #end
            <text align="right" length="5"> ${ticketline.printMultiply()}</text>
            <text align="right" length="10">${ticketline.printSalePrice()}</text>
            <text align="right" length="10">${ticketline.printValue()}</text>
        </line>
        #if ($ticketline.productAttSetInstId)
        <line>
	        <text align="left" length="48">    ${ticketline.productAttSetInstDesc}</text>
        </line>
        #end
        #end
        <line>
             <text>------------------------------------------------</text>
        </line>
        <line>
            <text>Total Qty: ${ticket.printArticlesCount()}</text>
        </line>
        <!-- TAXES START-->
        <line>
            <text align="left" length="16">Subtotal</text>
            <text align="right" length="32">${ticket.printSubTotal()}</text>
        </line>
        <line>
            <text align="left" length="16">VAT 5%</text>
            <text align="right" length="32">${ticket.printTax()}</text>
        </line>
        <!-- TAXES END-->
        <line size="1">
            <text align="left" length="12" bold="true">Total</text>
            <text align="right" length="36" bold="true">${ticket.printTotal()}</text>
        </line>
        <line></line>
        #foreach ($paymentline in $ticket.payments)
         #if ($paymentline.name == "cash")
        <line>
            <text bold="true">Cash</text>
        </line>
        <line>
             <text align="left" length="12">Tendered:</text>
             <text align="right" length="36">${paymentline.printPaid()}</text>
         </line>
        <line>
            <text align="left" length="12">Change:</text>
            <text align="right" length="36">${paymentline.printChange()}</text>
        </line>
         #end
         #if ($paymentline.name == "cashrefund")
        <line>
            <text bold="true">Refund</text>
         </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "magcard")
        <line>
            <text bold="true">Mag card</text>
        </line>
         <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
        <!--
        <line>
            <text align="left" length="22">Number:</text>
            <text>${paymentline.printCardNumber()}</text>
        </line>
        <line>
            <text align="left" length="22">Expiration date:</text>
            <text>${paymentline.printExpirationDate()}</text>
        </line>
        <line>
            <text align="left" length="22">Operation:</text>
            <text>${paymentline.printTransactionID()}</text>
        </line>
        <line>
            <text align="left" length="22">Authorization:</text>
            <text>${paymentline.printAuthorization()}</text>
        </line>
        -->
         #end
         #if ($paymentline.name == "magcardrefund")
        <line>
            <text bold="true">Mag card refund</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "cheque")
        <line>
            <text bold="true">Cheque</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "chequerefund")
        <line>
            <text bold="true">Cheque refund</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "paperin")
        <line>
            <text bold="true">Voucher</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printDenomination()}</text>
        </line>
         #end
         #if ($paymentline.name == "paperout")
        <line>
            <text bold="true">Voucher Refund</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "free")
        <line>
            <text bold="true">Free</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "debt")
        <line>
            <text bold="true">Debt</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "advance")
        <line>
            <text bold="true">Advance</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "pointsin")
        <line>
            <text bold="true">Points</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #if ($paymentline.name == "currency")
        <line>
            <text bold="true">Currency - ${paymentline.printCurrency()}</text>
        </line>
        <line>
             <text align="left" length="12">Tendered:</text>
             <text align ="right" length="36">${paymentline.printCurrency()}${paymentline.printPaidCurrency()}</text>
         </line>
         <line>
             <text align="left" length="15">Conversion Rate:</text>
             <text align ="right" length="33">${paymentline.printRate()}</text>
         </line>
        <line>
            <text align="left" length="12">Change:</text>
            <text align ="right" length="36">${paymentline.printChange()}</text>
        </line>
        #end
         #if ($paymentline.name == "online")
        <line>
            <text bold="true">Online - $paymentline.getTransactionID()</text>
        </line>
        <line>
            <text align="right" length="48">${paymentline.printTotal()}</text>
        </line>
         #end
         #end
        <line></line>
        <line>
            <text align="left" length="10">Cashier:</text>
            <text>${ticket.printUser()}</text>
        </line>
        <line>
            <text align="left" length="10">Station:</text>
            #if ($ticket.getProperty("orderfrom"))
                <text>${ticket.getProperty("orderfrom")}</text>
            #else
                <text>${ticket.printHost()}</text>
            #end
        </line>
         <line></line>
        <line>
            <text align="center" length="48">Thank you for your visit.</text>
        </line>
        

    <!-- TICKET COUPON START -->

    <!-- TICKET COUPON END -->

    </ticket>
    #end
            #foreach ($paymentline in $ticket.payments)
     #if ($paymentline.name == "cash")
    <opendrawer/>
     #end
     #if ($paymentline.name == "cashrefund")
    <opendrawer/>
     #end
    #end
</output>

Save & restart
What are your Feelings
What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on March 1, 2021
Multiple taxesGet the credit card type
Saleculator

Primary Pages

  • Home
  • About
  • Contact
  • Service

Pages

  • About
  • Pricing
  • Contact
  • Request for Demo

Template

  • Blog
  • Service
  • Downloads
  • Contact

Copyright © 2022 | Saleculator