replying to fstrthnu3, Hammer wrote:
You can do that by adding Discount Price and Z at the end e.g. Discount
$##0.00 Z would omit whole line if there is no discount. Also same for total
line. See Receipt Variables below:
Transaction.Subtotalbeforediscounts The transaction subtotal would be without
the discounts that were applied to the transaction
Transaction.Discountspositive Displays only a positive discount. Negative
discounts show as 0.00
Transaction.Limit.Units The number of units an employee can purchase
Transaction.Limit.Purchases The amount (in currency) an employee can spend
Transaction.Limit.Unitsleft Amount of units an employee has remaining.
Transaction.Limit.Purchasesleft The amount (in currency) an employee has left
to spend
Transaction.Longcomment1 Comment of a transaction, Line 1.
Transaction.Longcomment2 Comment of a transaction, Line 2.
Transaction.Longcomment3 Comment of a transaction, Line 3.
Transaction.Longcomment4 Comment of a transaction, Line 4.
Transaction.Longcomment5 Comment of a transaction, Line 5.
Transaction.TotalQuantity That will display the total quantity of all items on
the transaction. (3.01j+)
Register.Number The number of the register on which the receipt was printed.
Cashier.Number Cashier's logon number.
Cashier.Name Cashier's logon name.
Tender.Descriptionpr Name of the tender, prefixed with "Paid".
Tender.Description Name of the tender, not prefixed with "Paid".
Tender.Amount Amount tendered.
Tender.Amountforeign Amount of foreign currency tendered. (Per tender type)
Tender.Change Amount of change returned.
Tender.Changeforeign Amount of change returned in foreign currency
Tender.Exchangerate Exchange rate (Domestic -> Foreign)
Tender.Exchagerateinverse Exchange rate (Domestic <- Foreign)
Tender.Totalforeign Total tendered in foreign currency. (Sum of individual
tenders)
Tender.Isforeign Yes/No variable dictating if the transaction uses foreign
currency.
Tender.CC.Number Credit Card number.
Tender.CC.Expiration Credit Card expiration date.
Tender.Cc.Approvalcode Approval code as received from EDC.
Tender.Check.Account The check’s account number.
Tender.Check.Abanumber ABA Number as listed on a check.
Tender.Check.Dlnumber Drivers license number.
Tender.Check.Approvalcode Check approval code as received from EDC.
Tax.Description Name of tax.
Tax.Amount Amount of tax (In currency).
Tax.Percentage Tax rate (in percentage).
Customer.Accountnumber Customer's account number.
Customer.Name Customer's name.
Customer.Company Customer's company name.
Customer.Address Customer's address.
Customer.Address2 Second line of the customer's address.
Customer.City Customer's city.
Customer.State Customer's state.
Customer.Country Customer's country.
Customer.Zip Customer's zip code.
Customer.Citystatezip Customer’s City, State, and Zip Code.
Customer.Citystatecountryzip Customer’s City, State, Country and Zip Code.
Customer.Phonenumber Customer's phone number.
Customer.Faxnumber Customer's fax number.
Customer.Shipname Name under the "Ship to" field of a customer's account.
Customer.Shipcompany Company under the "Ship to" field of a customer's account.
Customer.Shipaddress Address under the "Ship to" field of a customer's account.
Customer.Shipaddress2 Second line of the address field in the "Ship to" field.
Customer.Shipcity City in the "Ship to" field of the customer's account.
Customer.Shipstate State in the "Ship to" field of the customer's account.
Customer.Shipcountry Country in the "Ship to" field of the customer's account.
Customer.Shipzip Zip code in the "Ship to" field of the customer's account.
Customer.Shipcitystatezip City, State and Zip code in the “Ship to” field.
Customer.Shipcitystatecountryzip City, State, Country and Zip code in the
“Ship to” field.
Customer.Shipphonenumber Phone number in the "Ship to" field of a customer's
account.
Customer.Shipfaxnumber Fax number in the "Ship to" field of a customer's
account.
Customer.Balance Customer's balance before any transactions occur.
Customer.Balancelesstotal Customer's balance minus the transaction total.
Customer.Balanceplustotal Customer's balance plus the transaction total.
Customer.CustomText1 Value in the customer’s Customtext1 field.
Customer.CustomText2 Value in the customer’s Customtext2 field.
Customer.CustomText3 Value in the customer’s Customtext3 field.
Customer.CustomText4 Value in the customer’s Customtext4 field.
Customer.CustomNumber1 Value in the customer’s CustomNumber1 field.
Customer.CustomNumber2 Value in the customer’s CustomNumber2 field.
Customer.CustomNumber3 Value in the customer’s CustomNumber3 field.
Customer.CustomNumber4 Value in the customer’s CustomNumber4 field.
Customer.CustomDate1 Value in the customer’s CustomDate1 field.
Customer.CustomDate2 Value in the customer’s CustomDate2 field.
Customer.CustomDate3 Value in the customer’s CustomDate3 field.
Customer.CustomDate4 Value in the customer’s CustomDate4 field.
Layaway.Payment Payment being made on a layaway.
Layaway.Deposit Prior payments made on a layaway.
Layaway.Depositpluspayment Total Payments (including current) made on a
layaway.
Layaway.Balance Remaining balance on the layaway.
Droppayout.Amount Amount of cash that was dropped or paid out.
Droppayout.Comment Comment associated with a cash drop or pay out.
Droppayout.To The entity to whom the payout was made.
Page.Number “X” in the equation: “Page x of y”
Page.Count “Y” in the equation: “Page x of y”
Form.Length Read variable only: Set the form’s length.
Form.Footerlength Read variable only: Set the footer length.
Form.Repeatforsignatures Read variable only: Set whether or not to repeat for
signatures.
Now Date, time in: mm/dd/yy h:mm am / pm
Eject Send the eject codes.
Receipt.Title Defined under Receipt Formats as Company Name.
Receipt.Text1 Defined under Receipt Formats as Line 1.
Receipt.Text2 Defined under Receipt Formats as Line 2.
Receipt.Text3 Defined under Receipt Formats as Line 3.
Receipt.Text4 Defined under Receipt Formats as Line 4.
Receipt.Text5 Defined under Receipt Formats as Line 5.
Store.Vatnum Defined under Configuration, Tax as VAT Registration Number.
Entry.Matrix.Alias (3.01d+) Receipt variable to support printing of matrix
aliases on receipts
Entry.Cost (3.01e+)
Entry.CostEuro (3.01e+)
Entry.ExtendedCost (3.01e+)
Entry.ExtendedCostEuro (3.01e+)
Entry.Itemlookupcode Item's Lookup Code.
Entry.Description Item's Description.
Entry.Quantity Quantity of the item on the current transaction.
Entry.BinLocation Bin Location of Item
Entry.Price Current price (including sales, discounts, etc...)of a single unit
of the item.
Entry.Fullprice Base price of the item.
Entry.Extendedprice Entry.Price times Entry.Quantity.
Entry.Extendedfullprice Entry.Fullprice times Entry.Quantity.
Entry.Pricedifferent True/False: Is the price not equal to the original price?
Entry.Isdiscount True/False. Is the item discounted?
Entry.Discount Amount the item has been discounted.
Entry.Extendeddiscount Entry.Discount multiplied by Entry.Quantity.
Entry.Singlequantity True/False. Does Entry.Quantity equal 1?
Entry.Multiplequantity True/False. Is Entry.Quantity greater than 1?
Entry.Negativequantity True/False. Is Entry.Quantity less than 0?
Entry.Salestax Item's price after tax.
Entry.Exclusive Amount of item's tax.
Entry.Taxrate Tax Rate for the current item,
Entry.IsSalesTax
Entry.IsNotSalesTax
Entry.Salesrepnumber Number of the Sales Rep who sold this item.
Entry.Discountpercent Percentage of the discount on the current item.
Entry.Department Department of the current item.
Entry.Category Category for the current item.
Entry.Serial.Number Item's Serial Number
Entry.Serial.Number2 Item's Serial Number 2
Entry.Serial.Number3 Item's Serial Number 3
Entry.Matrix.Title1 First Matrix Heading.
Entry.Matrix.Title2 Second Matrix Heading.
Entry.Matrix.Title3 Third Matrix Heading.
Entry.Matrix.Field1 Value of the first Matrix Field.
Entry.Matrix.Field2 Value of the second Matrix Field.
Entry.Matrix.Field3 Value of the third Matrix Field.
Entry.Kit.Description1 Description of item 1 in a kit.
: :
Entry.Kit.Description20 Description of item 20 in a kit.
Entry.Kit.Quantity1 Quantity of item 1 in a kit
: :
Entry.Kit.Quantity20 Quantity of item 20 in a kit.
Entry.Lotmatrix.Description Description for the Lot Matrix item.
Entry.Lotmatrix.Quantity Quantity of item in Lot Matrix.
Entry.Quantityrequested Amount requested on a backordered sale.
Entry.Quantitybackorder Quantity of item on backorder.
Entry.Comment Comment for current item.
Entry.Comment1 First line of comment for current item.
Entry.Comment2 Second line of comment for current item.
Entry.Comment3 Third line of comment for current item.
Entry.Comment4 Fourth line of comment for current item.
Entry.Comment5 Fifth line of comment for current item.
Transaction.Subtotal Subtotal for entire transaction.
Transaction.Salestax Sales tax for entire transaction.
Transaction.Total Total for entire transaction.
Transaction.Change Change due for transaction.
Transaction.Changefoodstamp Change given in food stamps (If applicable)
Transaction.Number Transaction ID Number.
Transaction.Discounts Total discounts for entire transaction.
Transaction.Isdiscounts True/False. Is Transaction.Discounts greater than 0?
Transaction.Time Time of transaction.
Transaction.Payout.Amount Amount paid out.
Transaction.Payout.Comment Comment for payout transaction.
Transaction.Payout.To Recipient of the payout.
Transaction.Iscancel True/False. Was the transaction canceled?
Transaction.Isnosale True/False. Is the transaction a no sale?
Transaction.Limit.Totalunits Total units purchased in this period (Including
current transaction).
Transaction.Limit.Totalpurchases Total amount in currency purchased in this
period (Including current Transaction).
Configuration.StoreID Store ID number
Workorder.Description Workorder description entered at POS
Entry.PriceEuro Current price (with sales, discounts, etc.)of a single unit of
the item. (in Euro)
Entry.FullPriceEuro Base price of the item. (in Euro)
Entry.ExtendedPriceEuro Entry.PriceEuro times Entry.Quantity. (in Euro)
Entry.ExtendedFullPriceEuro Entry.FullpriceEuro times Entry.Quantity. (in Euro)
Entry.DiscountEuro Amount the item has been discounted. (in Euro)
Entry.DiscountNegativeEuro
Entry.ExtendedDiscountEuro Entry.DiscountEuro multiplied by Entry.Quantity.
(in Euro)
Entry.ExtendedDiscountNegativeEuro
Entry.SalesTaxEuro Item's price after tax. (in Euro)
Transaction.SubTotalEuro Subtotal for entire transaction. (in Euro)
Transaction.SalesTaxEuro Salestax for entire transaction. (in Euro)
Transaction.TotalEuro Total for entire transaction. (in Euro)
Transaction.ChangeEuro Change due for transaction. (in Euro)
Transaction.ChangeFoodStampEuro Change given in food stamps (If applicable)
(in Euro)
Transaction.DiscountsEuro Total discounts for entire transaction. (in Euro)
Transaction.Payout.AmountEuro Amount paid out. (in Euro)
Tender.AmountEuro Amount tendered. (in Euro)
Tender.ChangeEuro Amount of change returned. (in Euro)
Tender.Account.BalanceEuro
Tax.AmountEuro Amount of tax (In Euro).
Customer.BalanceEuro
Customer.BalanceLessTotalEuro Customer's balance minus the transaction total.
(in Euro)
Customer.BalancePlusTotalEuro Customer's balance plus the transaction total.
(in Euro)
Layaway.PaymentEuro Payment being made on a layaway. (in Euro)
Layaway.DepositEuro Prior payments made on a layaway. (in Euro)
Layaway.DepositPlusPaymentEuro Total Payments (Including current) made on a
layaway. (in Euro)
Layaway.BalanceEuro Remaining balance on the layaway. (in Euro)
Workorder.BalanceDueEuro
DropPayOut.AmountEuro Amount of cash that was dropped or paid out.
Receipt formatters
B If the string variable is blank (empty), then do not print the entire
line. If the string variable is not blank, then print the line and print this
variable as a string.
H If the string variable is blank (empty), then do not print the entire
line. If the string variable is not blank then print the line but do not print
this variable.
Z If the numeric variable is zero then do not print the entire line. If the
numeric variable is not zero, then print the line, but do not print this
variable.
C Center the string variable.
L Left justify the string variable
R Right justify the string variable.
G Print this numeric variable as a left-justified general number.
S Print this numeric variable as a right-justified general number.
$ Print this currency variable as a right-justified currency number.
Date functions for use with the ‘Now’ statement
c Print the date as ddddd and print the time as t t t t t, in that
order. Print only date information if there is no fractional part to the date
serial number; print only time information if there is no integer portion.
d Print the day as a number without a leading zero (131).
dd Print the day as a number with a leading zero (0131).
ddd Print the day as an abbreviation (SunSat).
dddd Print the day as a full name (SundaySaturday).
ddddd Print the date as a complete date (including day, month, and year),
formatted according to your system's short date format setting. The default
short date format is m/d/yy.
dddddd Print a date serial number as a complete date (including day, month,
and year) formatted according to the long date setting recognized by your
system. The default long date format is mmmm dd, yyyy.
w Print the day of the week as a number (1 for Sunday through 7 for Saturday).
ww Print the week of the year as a number (153).
m . Print the month as a number without a leading zero (112). If m immediately
follows h or hh, the minute rather than the month is printed
mm Print the month as a number with a leading zero (0112). If m immediately
follows h or hh, the minute rather than the month is printed.
mmm Print the month as an abbreviation (JanDec).
Mmmm Print the month as a full month name (JanuaryDecember).
q Print the quarter of the year as a number (14).
y Print the day of the year as a number (1366).
yy Print the year as a 2-digit number (0099).
yyyy Print the year as a 4-digit number (1009999).
h Print the hour as a number without leading zeros (023).
hh Print the hour as a number with leading zeros (0023).
n Print the minute as a number without leading zeros (059).
nn Print the minute as a number with leading zeros (0059).
s Print the second as a number without leading zeros (059).
ss Print the second as a number with leading zeros (0059).
t t t t t Print a time as a complete time (including hour, minute, and
second), formatted using the time separator defined by the time format
recognized by your system. A leading zero is printed if the leading zero
option is selected and the time is before 10:00 A.M. or P.M. The default time
format is h:mm:ss. AM/PM. Use the 12-hour clock and print an uppercase AM with
any hour before noon; print an uppercase PM with any hour between noon and
11:59 P.M. am/pm. Use the 12-hour clock and print a lowercase AM with any hour
before noon; print a lowercase PM with any hour between noon and 11:59 P.M.
A/P Use the 12-hour clock and print an uppercase A with any hour before noon;
print an uppercase P with any hour between noon and 11:59 P.M.
a/p Use the 12-hour clock and print a lowercase A with any hour before noon;
print a lowercase P with any hour between noon and 11:59 P.M.
AMPM Use the 12-hour clock and print the AM string literal as defined by your
system with any hour before noon; print the PM string literal as defined by
your system with any hour between noon and 11:59 P.M. AMPM can be either
uppercase or lowercase, but the case of the string printed matches the string
as defined by your system settings. The default format is AM/PM.
--
posted from
http://www.beansmart.com/point-of-sale/customizing-receipt-in-quicksell-7821-.htm
using BeanSmart's Web, RSS and Social Media Interface to
microsoft.public.pos and other accounting and tax groups