How to get the lowest amount of six or more amounts

Hi Everybody,

Could you please advice about the script which can get the lowest from different amounts/fields in the same DocType

Thank you in advance for your usual collaboration

for this you have to write javascript by calculating the lowest number using these five fields. you can check documentation for script writing.

Thank you Rehan for your kind reply.
Do you have any idea about the script code? I didn’t find a similar case code in the documentation

Thank you in advance