@Ankur Bawiskar For the visibility of item to the customer(for this we have a different logic). this is working fine

for agent we have this logic how to implement this

Thanks,