20333 - Issues with Advanced Search for Quote/Sales Order

Fixed the Sales Rep and Customer Type search options for both searches. Added Customer Type search to Customer since it was missing. Fixed a syntax problem in Item/Item Site ORMs.