Need toFetch Two doctype in Accomodation Unit

dear team,
i had two doctype Accomodation unit and Assign Accoimodation.In Assign Accomodation i had data named as Available Capacity, I need to fetch that data in Accomodation Unit,but it not reflect on accomodation unit.But Accomodation unit to Assign Accomodation data will fetch example capacity is in accomodation unit fetch on assign accomodation.





so, how to fetch this field ,
Thanks in advance.

Hi @Mohamed2335,

Please check carefully.

Thank You!

Thanks for your response, but it not fetch, i think code is solution for this

Hi @Mohamed2335,

Please check it.

Thank You!

sir for available capacity with your help we done on client script may be that cause error?,because same procedure i done also share screen shots