fixes for sales order/quote overlap