Query on defining of multiple calendars

If more than one calendars are defined (eg: Wednesday holiday, Sunday holiday) and are assigned to respective work center groups.

For Purchase orders, Sales orders which calendar would be applicable?