Hi,
I am using sugar 7.9 version. I am trying to validate the quote line item based on the below criteria.
If Discount amount is greater than Unit price then I need to show a error message like `Total Discount amount should be less than or equal to the Unit price`.
I tried to achieve this using
'validation' => array(
'type' => 'range',
'min' => '0',
'max' => '$discount_price,
),
It's not working as expected.
But both the fields are in currency datatype. So I am not sure How to achieve this validation.
Thanks in advance