FROM [Sales Header]
WHERE [Document Type] = 'Sales Order'
OR ([Document Type] = 'Sales Quote' AND [Order Received] = 1);
I have extended a field in Sales Header /Order Received/
My requirement is to find all records which has Document Type as 'Order' or Document Type as 'Quote' but when the document type is Quote it should also check if Order Received is TRUE
can we write a query for these type of requirement?