Which fields can be used in salary structure condition

Which fields of which doctypes can be used in salary structure? I build a new component that was based on “leave_without_pay” which is field of salary slip doctype. It is working fine if I create a manual salary slip but when I am viewing salary slips in salary structure it is not showing that component? How can this be resolved?

Fields should be mandatory to show up.