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

Is Your Business QuoteWerks Web Ready? Why More Desktop Users Are Making the Move

Aug 15, 2025

Over the past year, we’ve seen a noticeable shift: more and more QuoteWerks Desktop users are exploring the flexibility and productivity gains offered by QuoteWerks Web. Whether it’s a full transition or a hybrid setup using both platforms, the trend is clear: businesses want quoting tools that adapt to their modern workday. ❓ Why the Shift? […]

READ MORE

Case Study: Enhancing Crane Delivery Precision with Hilltops IT’s Innovative Software Solution

Jul 30, 2025

Client: Terranova CranesIndustry: Specialist Crane Hire The Challenge Terranova Cranes faced a recurring challenge: delivering cranes to exact locations on construction sites where traditional addressing systems (like postcodes) lacked the accuracy required. Navigating to broad or imprecise locations often caused delays, confusion, and inefficiencies in high-pressure environments. The Solution Hilltops IT, authors of the ConnectIt […]

READ MORE

ConnectWise Sell vs QuoteWerks: Aspirational Perception

Jul 15, 2025

🚀 From Practical to Aspirational: Why MSPs See ConnectWise Sell as the Next Step Beyond QuoteWerks In writing, reflecting and drawing conclusions from the previous blog post comparing ConnectWise Sell and QuoteWerks, it got me wondering whether ConnectWise could be perceived as an aspirational move. As a QuoteWerks reseller, it’s natural to feel a sense […]

READ MORE