How to access docfields of doctypes in other file?

Subscription Plan Detail doctype is having a table with fields quantity and plan.
I need to access the value of quantity field in other doctype( for some customization.
Someone help me with this.
Thank you.

did you find anything on it?

what exactly you want?