Skip to main content
Solved

Info required on FSM business rule & Regex

  • July 17, 2020
  • 1 reply
  • 209 views

Forum|alt.badge.img+6

Is there any embedded business rule, that calculates the Line Item price & adjustment price in quote? If yes what is it?

What could be the possible regular expression for validating a currency field along with initial character as “€”.

Required help.

Best answer by Shageesha Prabagaran

Hi @Asterix ,

​​​​​​​Question1 

Were you referring to any Business rules associated to the QUOTE table? 

 

Question 2 

Can you please check the following Regular expressions for the character € :

 

/^\€?[0-9][0-9,]*[0-9]\.?[0-9]{0,2}/I

Test Runs: // Only for the character €

€123 - True

123€ - True

 

^([^\d\s]{1,}\s?[+-]?)(\d{1,3})(\,\d{3})*(\.\d{1,})?$ 

Test Runs: // For all the characters €, $, &

€123 - True

$123 - True

123 - False

&123 - True

 

I hope this might help you to adjust the RegEx as you wish.

 

Best Regards,

Shageesha

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+13

Hi @Asterix ,

​​​​​​​Question1 

Were you referring to any Business rules associated to the QUOTE table? 

 

Question 2 

Can you please check the following Regular expressions for the character € :

 

/^\€?[0-9][0-9,]*[0-9]\.?[0-9]{0,2}/I

Test Runs: // Only for the character €

€123 - True

123€ - True

 

^([^\d\s]{1,}\s?[+-]?)(\d{1,3})(\,\d{3})*(\.\d{1,})?$ 

Test Runs: // For all the characters €, $, &

€123 - True

$123 - True

123 - False

&123 - True

 

I hope this might help you to adjust the RegEx as you wish.

 

Best Regards,

Shageesha


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings