You have to define the following criteria based validation for the stock receipt:
In the {When query}, enter the query(select case when {supplier.id} is null)
In the {Then Query}, enter the following query (select case when {subsidiary.code} =’1020901′ then 0 else 1 end)