SambaPOS Forum

English Boards => V3 Development => Topic started by: JohnS on July 10, 2013, 04:19:27 am

Title: Printer Template Calculations
Post by: JohnS 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.
Title: Re: Printer Template Calculations
Post by: emre 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}'))))]