Dynamic Bayesian Quantity Control When Some Customers Will Accept a Substitute