Fetch data from custom filed

i created custom filed in salary detail doctype called Currency Amount and when i create salary structure set values to Currency Amount in EARNING and DEDUCTION

i need to fetch Currency Amount value in salary slip doctype when i select an employee

any help here ?

check this function

is there any custom script for this problem?

Did you keep the Field name exactly the same as in Salary Structure ?

I think keeping the field name exact same should work but if it doesnt work then you will have to add it to the py and js file of salary slip as linked in the above post by omar

thanks @fkardame yes i keep it exactly the same as in salary structure

How i can add it to the py and js file ??