function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
renu anamalla 9renu anamalla 9 

I want add by default Discount value In apex class

Fields:
Custom fields:
Fee1(currency)           Fee1+Fee2
Fee2(currency)
Total_Amount
Disc(pecantage)
when ever enter the fee1+fee2 values autometically add the Discount ex:2%
please write the program
Sumit Kumar Singh 9Sumit Kumar Singh 9
Hello Renu, 
You can do it with formula field. no need to write code.

Thanks, 
Sumit