Author Topic: Printer Template Calculations  (Read 10299 times)

JohnS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 677
Printer Template Calculations
« on: July 10, 2013, 04:19:27 am »
In V2 we could use for example
[= Format (ToNumber (ToNumber ('{TICKET TOTAL}') - (ToNumber ('{TAX TOTAL}'))))]

How do we do the same in V3 ? We can't use the square brackets in the printer templates.
SambaPOS - POS'n the World, one Terminal at a time.

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Printer Template Calculations
« Reply #1 on: July 10, 2013, 06:39:28 am »
Format renamed to "F" and ToNumber renamed to "TN" so it should be something like:

[= F(TN(TN('{TICKET TOTAL}') - (TN('{TAX TOTAL}'))))]