Hi all,
I'm having trouble with the following scenario and was hoping someone could help:
When a customer logs a ticket, there is a custom field called Word Count where they will specify a number, for example 100.
Using that, I need to calculate the Cost of the job, saving the result in a different custom field called Cost. The final value for Cost must be displayed in Euro, with only two decimals.
This is the smart value I'm using at the moment to get the Cost with two decimals:
{{#=}}ROUND({{issue.Word Count}} * 0.094, 2){{/}}
The above is working perfectly, but I can't seem to get the value to display in Euro.
I've tried asCurrency but that's for USD, and asCurrency("fr_FR") which shows Euro in the documentation just clears the value.
Help please? :)
Hi @Dietrich ,
Would you mind sharing your entire rule and/or the audit logs. AFAIK, if you store the above in a variable, and then set the value of the field as {{var.asNumber.asCurrency("fr_FR")}}, it should just work.
BTW, I noticed it was empty when I didn't have the asNumber, so maybe that's what you're missing, but it's hard to say without more information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response, Dietrich. Can you try setting the field value to
{{CalculatedCost.asNumber.asCurrency("fr_FR")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.