Cross Referencing QuoteWerks Quote, Order and Invoice Numbers

We’ve been asked several times by clients how to cross-reference the Quote, Order and Invoice numbers that are processed through QuoteWerks. While you can get the Converted Ref in QuoteWerks (so the Order or Quote an Invoice was Converted from or the Quote and Order came from) there’s no a way within the reporting to get all three numbers together.

However, if you’re feeling adventurous and would like to do a report in Excel with the QuoteWerks database as a remote data source, then try copy/pasting the following query in. It should return you all Invoice Document Numbers with the relevant Quote and/or Order Numbers.

We hope this is of use,

Steve and the Hilltops IT QuoteWerks team.

SELECT ISNULL(DHQ.DocNo, ‘None’) AS [Quote Ref], DHO.DocNo AS [Order Ref], DHI.DocNo AS [Invoice Ref]
FROM QuoteWerks.dbo.DocumentHeaders AS DHI WITH (NOLOCK)
INNER JOIN QuoteWerks.dbo.DocumentHeaders AS DHO WITH (NOLOCK)
ON (DHI.DocNo = DHO.ConvertedRef)
LEFT JOIN QuoteWerks.dbo.DocumentHeaders AS DHQ WITH (NOLOCK)
ON (DHO.DocNo = DHQ.ConvertedRef)
WHERE (DHI.DocType = ‘INVOICE’)
AND (DHO.DocType = ‘ORDER’)
AND ((DHQ.DocType = ‘QUOTE’) OR (DHQ.DocType IS NULL))
UNION
SELECT ISNULL(DHQ.DocNo, ‘None’) AS [Quote Ref], ‘None’ AS [Order Ref], DHI.DocNo AS [Invoice Ref]
FROM QuoteWerks.dbo.DocumentHeaders AS DHI WITH (NOLOCK)
LEFT JOIN QuoteWerks.dbo.DocumentHeaders AS DHQ WITH (NOLOCK)
ON (DHI.DocNo = DHQ.ConvertedRef)
WHERE (DHI.DocType = ‘INVOICE’)
AND ((DHQ.DocType = ‘QUOTE’) OR (DHQ.DocType IS NULL))

Related Stories

See all

Enhancing Customer Interaction with QuoteWerks QuoteValet and Tawk.to

Apr 28, 2025

At Hilltops IT, we pride ourselves on providing top-notch consultancy, support, training, and development services for QuoteWerks. As a dedicated reseller, we are always looking for innovative ways to enhance the functionality and improve User experience of QuoteWerks for our clients.   Introducing Real-Time Customer Engagement We are excited to announce a new customization that […]

READ MORE

Case Study: Revolutionizing Service Contract Quotations with Contract Calculator Integration

Feb 05, 2025

Discover how Tescan transformed their sales process with a cutting-edge Contract Calculator, seamlessly integrating SugarCRM and QuoteWerks to deliver faster, more accurate customer quotations.   Project Goals Tescan aimed to:   Key Actions   Overcoming Challenges   Results   Customer Testimonial “The new Contract Calculator has transformed our Service Sales process. We can now generate […]

READ MORE

Hilltops IT Launches ConnectIt-SageOne Integration for QuoteWerks and Sage One Business Cloud

Feb 05, 2025

Hilltops IT Consultancy Services Ltd is excited to announce the launch of ConnectIt-SageOne, a powerful integration solution designed to seamlessly connect QuoteWerks with Sage One Business Cloud. This innovative product aims to enhance business efficiency, accuracy, and productivity by automating data transfer and synchronization between the two platforms. Read the full press release here! Get […]

READ MORE