Various fixes to get quote and sales order to a usable state.