math variables syntax

Topics related to bookings and guest managment
Post Reply
[email protected]
Posts: 2
Joined: Thu May 14, 2015 1:15 pm

Hi guys,

I want to display total price in USD in customs message (default currency of property is EUR)-

So I used these variables:
[CONVERT:EUR-USD] - works if used as is, shows conversion rate between two currencies
[PRICENUM:] - works if used as is, value is displayed with a decimal point and no thousands separator and no currency symbol

But what I need is a multiplication of price and the conversion rate.

So I tried: [PRICENUM:*CONVERT:EUR-USD] or [PRICENUM: * CONVERT:EUR-USD] or [PRICENUM:*[CONVERT:EUR-USD]] and many other combinations but without success.... result is nothing or the value for PRICENUM only.

What is the correct syntax if I want to calculate two or more variables? Could you help?
Thanks
annettemorgenroth
Posts: 1337
Joined: Sun Jun 30, 2013 8:44 am

Try this [PRICENUM] [*] [CONVERT:EUR-USD]
[email protected]
Posts: 2
Joined: Thu May 14, 2015 1:15 pm

Many thanks, it works now!
So also mathematical operators must be inside straight brackets... now it is clear.
[email protected]
Posts: 3
Joined: Sun Apr 03, 2016 5:38 pm

i have a problem with math syntax i need to make this operation [DEPOSITNUM] [-] [COMMISSION] BUT Value in commission field with currency symbol THAN THE OPERATION DON'T WORK CAN YOU CREATE A FIELD without currency and thousand separetor please?
markkinchin
Site Admin
Posts: 935
Joined: Fri Mar 02, 2012 1:43 pm

[COMMISSIONNUM] is now available
Post Reply