
Anonymous Community User asked a question.
Calculations
Hi Guys, New to Polio and trying to build a Products app. I have a extra requirement in that we have input pricing for the products that we sell in US$, GBP and EUR whilst we sell in South African Rands. I therefore need a way to calculate the current suggested retail price based on the exchange rate. I was thinking of using 2 apps with one being the Product App and the second a Exchange Rate App. The exchange rate app would simply have 4 fields: Date Zar_USD Zar_GBP Zar_EUR We can then update the correct exchange rates from time to time. In the Items App we will then have 4 price input fields rUSD, rGBP, rEUR and rZAR. I need a formula for a calculated field that would do an If Then Else type calculation. A) If rZar is supplied that would override anything in the other 3 and Zar Price = rZar B) If rZar is not supplied then if rUSD is supplied then Zar Price = rUSD x ZAR_USD and the same for rGBP and rEUR. C) We will only ever supply 1 of rUSD / rEUR / rGBP Sorry I am way to old to learn JSON now and hope you can help. Thanks Fritz