How hide fields from purchase receipt item doctype


When Purchase return untick how hide fields debit activity and credit activity from purchase receipt item table?

User display depends on but if the field is in the listview level then doesn’t work.

eval:!parent.is_return