Warehouse constraint on outbound AIF document


I have put a warehouse constraint of an outbound ASN, however an ASN from a Sales order delivery note, where the warehouse is not set to the constraint is still generated.

This is unexpected, can anyone suggest a reason why this is happening.

I only want ASNs for sales orders for the specified warehouse.