<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://online.spectraqest.com/index.php?action=history&amp;feed=atom&amp;title=QESTLab_AUCOF_WIP_CompleteWork</id>
	<title>QESTLab AUCOF WIP CompleteWork - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://online.spectraqest.com/index.php?action=history&amp;feed=atom&amp;title=QESTLab_AUCOF_WIP_CompleteWork"/>
	<link rel="alternate" type="text/html" href="http://online.spectraqest.com/index.php?title=QESTLab_AUCOF_WIP_CompleteWork&amp;action=history"/>
	<updated>2026-04-07T11:44:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://online.spectraqest.com/index.php?title=QESTLab_AUCOF_WIP_CompleteWork&amp;diff=15859&amp;oldid=prev</id>
		<title>David.murphy: Categorised</title>
		<link rel="alternate" type="text/html" href="http://online.spectraqest.com/index.php?title=QESTLab_AUCOF_WIP_CompleteWork&amp;diff=15859&amp;oldid=prev"/>
		<updated>2007-07-20T01:25:09Z</updated>

		<summary type="html">&lt;p&gt;Categorised&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:25, 20 July 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l291&quot;&gt;Line 291:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 291:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Coffey Pages|{{PAGENAME}}]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:QESTLab|{{PAGENAME}}]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>David.murphy</name></author>
	</entry>
	<entry>
		<id>http://online.spectraqest.com/index.php?title=QESTLab_AUCOF_WIP_CompleteWork&amp;diff=12590&amp;oldid=prev</id>
		<title>Mark.pritchard at 23:41, 23 October 2006</title>
		<link rel="alternate" type="text/html" href="http://online.spectraqest.com/index.php?title=QESTLab_AUCOF_WIP_CompleteWork&amp;diff=12590&amp;oldid=prev"/>
		<updated>2006-10-23T23:41:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:41, 23 October 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;--For a billing document to be picked up, it must have at least one sibling signed test report.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--For a billing document to be picked up, it must have at least one sibling signed test report.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--That is, the test report must exist at the same level in the hierarcy as the billing document.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--That is, the test report must exist at the same level in the hierarcy as the billing document.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--There can be more than one test report, but only one is required to be signed for the billing  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--There can be more than one test report, but only one is required to be signed for the billing  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;CREATE VIEW qestfilterProject_WIP_Complete AS  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;CREATE VIEW qestfilterProject_WIP_Complete AS  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	SELECT Charges.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;, Charges.ProjectCode, Charges.ProjectName, Charges.ClientName, Sum(Charges.WIP) AS WIP FROM&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	SELECT Charges.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;, Charges.ProjectCode, Charges.ProjectName, Charges.ClientName, Sum(Charges.WIP) AS WIP FROM&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	(&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	(&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		SELECT DISTINCT DocumentChargeSingle.QestOwnerLabNo As &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;, DocumentChargeSingle.ProjectCode, DocumentChargeSingle.ProjectName,  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		SELECT DISTINCT DocumentChargeSingle.QestOwnerLabNo As &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;, DocumentChargeSingle.ProjectCode, DocumentChargeSingle.ProjectName,  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		DocumentChargeSingle.ClientName, DocumentChargeSingle.TotalCharge AS WIP, DocumentCharge.QESTUniqueParentID FROM DocumentChargeSingle  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		DocumentChargeSingle.ClientName, DocumentChargeSingle.TotalCharge AS WIP, DocumentCharge.QESTUniqueParentID FROM DocumentChargeSingle  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		INNER JOIN DocumentCharge ON DocumentChargeSingle.QESTUniqueParentID = DocumentCharge.QESTUniqueID&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		INNER JOIN DocumentCharge ON DocumentChargeSingle.QESTUniqueParentID = DocumentCharge.QESTUniqueID&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot;&gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		WHERE (DocumentChargeSingle.Printed = 0 OR DocumentChargeSingle.Printed IS NULL) AND (DocumentCertificates.SignatoryID &amp;gt; 0)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		WHERE (DocumentChargeSingle.Printed = 0 OR DocumentChargeSingle.Printed IS NULL) AND (DocumentCertificates.SignatoryID &amp;gt; 0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	) AS Charges&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	) AS Charges&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	Group By Charges.ProjectCode, Charges.ProjectName, Charges.ClientName, Charges.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	Group By Charges.ProjectCode, Charges.ProjectName, Charges.ClientName, Charges.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;CREATE VIEW qestfilterLab_WIP_Complete AS  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;CREATE VIEW qestfilterLab_WIP_Complete AS  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	SELECT Charges.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;, Sum(Charges.WIP) AS WIP, Charges.LabCode FROM&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	SELECT Charges.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;, Sum(Charges.WIP) AS WIP, Charges.LabCode FROM&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	(&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	(&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		SELECT DISTINCT DocumentChargeSingle.QestOwnerLabNo As &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;, DocumentChargeSingle.TotalCharge AS WIP,  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		SELECT DISTINCT DocumentChargeSingle.QestOwnerLabNo As &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;, DocumentChargeSingle.TotalCharge AS WIP,  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		Laboratory.CounterPrefix AS LabCode, DocumentCharge.QESTUniqueParentID FROM DocumentChargeSingle  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		Laboratory.CounterPrefix AS LabCode, DocumentCharge.QESTUniqueParentID FROM DocumentChargeSingle  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		INNER JOIN Laboratory On DocumentChargeSingle.QESTOwnerLabNo = Laboratory.LabNo  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		INNER JOIN Laboratory On DocumentChargeSingle.QESTOwnerLabNo = Laboratory.LabNo  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		WHERE (DocumentChargeSingle.Printed = 0 OR DocumentChargeSingle.Printed IS NULL) AND (DocumentCertificates.SignatoryID &amp;gt; 0)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		WHERE (DocumentChargeSingle.Printed = 0 OR DocumentChargeSingle.Printed IS NULL) AND (DocumentCertificates.SignatoryID &amp;gt; 0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	) AS Charges&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	) AS Charges&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	Group By Charges.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;, Charges.LabCode&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	Group By Charges.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;, Charges.LabCode&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l54&quot;&gt;Line 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--Insert WIP filters to use the WIP_Complete views.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--Insert WIP filters to use the WIP_Complete views.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;INSERT INTO DataFilters(FilterGroup, Name, SQL, Locked, SQLEdit, Grouping, Properties, GroupSQL, SearchCriteria)  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;INSERT INTO DataFilters(FilterGroup, Name, SQL, Locked, SQLEdit, Grouping, Properties, GroupSQL, SearchCriteria)  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	VALUES(90000, &#039;WIP Complete by Project&#039;, &#039;SELECT   qestfilterProject_WIP_Complete.ProjectCode, qestfilterProject_WIP_Complete.ProjectName, qestfilterProject_WIP_Complete.ClientName, qestfilterProject_WIP_Complete.WIP  FROM qestfilterProject_WIP_Complete&#039;, 0, 0, &#039;&#039;, &#039;&#039;, &#039;SELECT Count(qestfilterProject_WIP_Complete.WIP) AS WIP_Count, Avg(qestfilterProject_WIP_Complete.WIP) AS WIP_Avg, Sum(qestfilterProject_WIP_Complete.WIP) AS WIP_Sum, Min(qestfilterProject_WIP_Complete.WIP) AS WIP_Min, Max(qestfilterProject_WIP_Complete.WIP) AS WIP_Max, StDev(qestfilterProject_WIP_Complete.WIP) AS WIP_StDevP, Var(qestfilterProject_WIP_Complete.WIP) AS WIP_VarP FROM qestfilterProject_WIP_Complete&#039;, &#039;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	VALUES(90000, &#039;WIP Complete by Project&#039;, &#039;SELECT   qestfilterProject_WIP_Complete.ProjectCode, qestfilterProject_WIP_Complete.ProjectName, qestfilterProject_WIP_Complete.ClientName, qestfilterProject_WIP_Complete.WIP  FROM qestfilterProject_WIP_Complete &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;WHERE Not QESTOwnerLabNo IS NULL&lt;/ins&gt;&#039;, 0, 0, &#039;&#039;, &#039;&#039;, &#039;SELECT Count(qestfilterProject_WIP_Complete.WIP) AS WIP_Count, Avg(qestfilterProject_WIP_Complete.WIP) AS WIP_Avg, Sum(qestfilterProject_WIP_Complete.WIP) AS WIP_Sum, Min(qestfilterProject_WIP_Complete.WIP) AS WIP_Min, Max(qestfilterProject_WIP_Complete.WIP) AS WIP_Max, StDev(qestfilterProject_WIP_Complete.WIP) AS WIP_StDevP, Var(qestfilterProject_WIP_Complete.WIP) AS WIP_VarP FROM qestfilterProject_WIP_Complete &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;WHERE Not QESTOwnerLabNo IS NULL&lt;/ins&gt;&#039;, &#039;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;INSERT INTO DataFilters(FilterGroup, Name, SQL, Locked, SQLEdit, Grouping, Properties, GroupSQL, SearchCriteria)  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;INSERT INTO DataFilters(FilterGroup, Name, SQL, Locked, SQLEdit, Grouping, Properties, GroupSQL, SearchCriteria)  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	VALUES(90000, &#039;WIP Complete by Lab&#039;, &#039;SELECT  qestfilterLab_WIP_Complete.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;, qestfilterLab_WIP_Complete.WIP, qestfilterLab_WIP_Complete.LabCode FROM qestfilterLab_WIP_Complete&#039;, 0, 0, &#039;&#039;, &#039;&#039;, &#039;SELECT Count(qestfilterLab_WIP_Complete.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;) AS LabNo_Count, Avg(qestfilterLab_WIP_Complete.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;) AS LabNo_Avg, Sum(qestfilterLab_WIP_Complete.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;) AS LabNo_Sum, Min(qestfilterLab_WIP_Complete.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;) AS LabNo_Min, Max(qestfilterLab_WIP_Complete.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;) AS LabNo_Max, StDev(qestfilterLab_WIP_Complete.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;) AS LabNo_StDevP, Var(qestfilterLab_WIP_Complete.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;) AS LabNo_VarP, Count(qestfilterLab_WIP_Complete.WIP) AS WIP_Count, Avg(qestfilterLab_WIP_Complete.WIP) AS WIP_Avg, Sum(qestfilterLab_WIP_Complete.WIP) AS WIP_Sum, Min(qestfilterLab_WIP_Complete.WIP) AS WIP_Min, Max(qestfilterLab_WIP_Complete.WIP) AS WIP_Max, StDev(qestfilterLab_WIP_Complete.WIP) AS WIP_StDevP, Var(qestfilterLab_WIP_Complete.WIP) AS WIP_VarP FROM qestfilterLab_WIP_Complete&#039;, &#039;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	VALUES(90000, &#039;WIP Complete by Lab&#039;, &#039;SELECT  qestfilterLab_WIP_Complete.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;, qestfilterLab_WIP_Complete.WIP, qestfilterLab_WIP_Complete.LabCode FROM qestfilterLab_WIP_Complete &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;WHERE Not QESTOwnerLabNo IS NULL&lt;/ins&gt;&#039;, 0, 0, &#039;&#039;, &#039;&#039;, &#039;SELECT Count(qestfilterLab_WIP_Complete.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;) AS LabNo_Count, Avg(qestfilterLab_WIP_Complete.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;) AS LabNo_Avg, Sum(qestfilterLab_WIP_Complete.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;) AS LabNo_Sum, Min(qestfilterLab_WIP_Complete.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;) AS LabNo_Min, Max(qestfilterLab_WIP_Complete.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;) AS LabNo_Max, StDev(qestfilterLab_WIP_Complete.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;) AS LabNo_StDevP, Var(qestfilterLab_WIP_Complete.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;) AS LabNo_VarP, Count(qestfilterLab_WIP_Complete.WIP) AS WIP_Count, Avg(qestfilterLab_WIP_Complete.WIP) AS WIP_Avg, Sum(qestfilterLab_WIP_Complete.WIP) AS WIP_Sum, Min(qestfilterLab_WIP_Complete.WIP) AS WIP_Min, Max(qestfilterLab_WIP_Complete.WIP) AS WIP_Max, StDev(qestfilterLab_WIP_Complete.WIP) AS WIP_StDevP, Var(qestfilterLab_WIP_Complete.WIP) AS WIP_VarP FROM qestfilterLab_WIP_Complete &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;WHERE Not QESTOwnerLabNo IS NULL&lt;/ins&gt;&#039;, &#039;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l67&quot;&gt;Line 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--Insert WIP reports to use the WIP_Complete filters&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--Insert WIP reports to use the WIP_Complete filters&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;INSERT INTO Reports(QestID, QestCreatedBy, QestCreatedDate, QestModifiedBy, QestModifiedDate, QestOwnerLabNo, Name, ReportGroup, FilterName, Title, SubTitle, DocumentNo, PageWidth, PageHeight, Orientation, PageMarginLeft, PageMarginRight, PageMarginTop, PageMarginBottom, ShowLimits, LimitFontBold, LimitFontItalic, LimitFontColour, LimitShadingColour, LineHeight, TitleFontName, TitleFontSize, TitleFontBold, TitleFontItalic, SubTitleFontName, SubTitleFontSize, SubTitleFontBold, SubTitleFontItalic, HeaderFontName, HeaderFontSize, HeaderFontBold, HeaderFontItalic, DetailFontName, DetailFontSize, DetailFontBold, DetailFontItalic, Fields, Locked, StatsOnly, StatsLine, LineEachRow, GroupNewPage, GroupForLastN, LastN, LastNDateField, Chart, ChartSize1, ChartSize2, ChartSize3, ChartSize4, ChartSize5, Properties, CustomReportObject, Columns, AlternateSpecification, AlternateSpecificationName, SuppressSearchCriteria, DifferenceValues) VALUES(90001, 3, CONVERT(DATETIME, &#039;2006-03-01 8:45:50&#039;, 102), 0, CONVERT(DATETIME, &#039;2006-03-01 8:45:50&#039;, 102), 0, &#039;Project WIP Complete Report&#039;, &#039;Billing&#039;, &#039;WIP Complete by Project&#039;, &#039;&#039;, &#039;&#039;, &#039;&#039;, 21, 29.7, 1, 1, 1, 1, 1, 0, 0, 0, -1, -1, 210, &#039;Arial&#039;, 8.25, 0, 0, &#039;Arial&#039;, 8.25, 0, 0, &#039;Arial&#039;, 8.25, -1, 0, &#039;Arial&#039;, 8.25, 0, 0, &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;,ProjectCode,ProjectName,ClientName,WIP,&#039;, 0, 0, 0, 0, 0, 0, &#039;&#039;, &#039;&#039;, 0, Null, Null, Null, Null, Null, &#039;&#039;, Null, &#039;START[COLUMN1]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;INSERT INTO Reports(QestID, QestCreatedBy, QestCreatedDate, QestModifiedBy, QestModifiedDate, QestOwnerLabNo, Name, ReportGroup, FilterName, Title, SubTitle, DocumentNo, PageWidth, PageHeight, Orientation, PageMarginLeft, PageMarginRight, PageMarginTop, PageMarginBottom, ShowLimits, LimitFontBold, LimitFontItalic, LimitFontColour, LimitShadingColour, LineHeight, TitleFontName, TitleFontSize, TitleFontBold, TitleFontItalic, SubTitleFontName, SubTitleFontSize, SubTitleFontBold, SubTitleFontItalic, HeaderFontName, HeaderFontSize, HeaderFontBold, HeaderFontItalic, DetailFontName, DetailFontSize, DetailFontBold, DetailFontItalic, Fields, Locked, StatsOnly, StatsLine, LineEachRow, GroupNewPage, GroupForLastN, LastN, LastNDateField, Chart, ChartSize1, ChartSize2, ChartSize3, ChartSize4, ChartSize5, Properties, CustomReportObject, Columns, AlternateSpecification, AlternateSpecificationName, SuppressSearchCriteria, DifferenceValues) VALUES(90001, 3, CONVERT(DATETIME, &#039;2006-03-01 8:45:50&#039;, 102), 0, CONVERT(DATETIME, &#039;2006-03-01 8:45:50&#039;, 102), 0, &#039;Project WIP Complete Report&#039;, &#039;Billing&#039;, &#039;WIP Complete by Project&#039;, &#039;&#039;, &#039;&#039;, &#039;&#039;, 21, 29.7, 1, 1, 1, 1, 1, 0, 0, 0, -1, -1, 210, &#039;Arial&#039;, 8.25, 0, 0, &#039;Arial&#039;, 8.25, 0, 0, &#039;Arial&#039;, 8.25, -1, 0, &#039;Arial&#039;, 8.25, 0, 0, &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;,ProjectCode,ProjectName,ClientName,WIP,&#039;, 0, 0, 0, 0, 0, 0, &#039;&#039;, &#039;&#039;, 0, Null, Null, Null, Null, Null, &#039;&#039;, Null, &#039;START[COLUMN1]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Header=Project Code&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Header=Project Code&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DataFormat=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DataFormat=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l194&quot;&gt;Line 194:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 195:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;INSERT INTO Reports(QestID, QestCreatedBy, QestCreatedDate, QestModifiedBy, QestModifiedDate, QestOwnerLabNo, Name, ReportGroup, FilterName, Title, SubTitle, DocumentNo, PageWidth, PageHeight, Orientation, PageMarginLeft, PageMarginRight, PageMarginTop, PageMarginBottom, ShowLimits, LimitFontBold, LimitFontItalic, LimitFontColour, LimitShadingColour, LineHeight, TitleFontName, TitleFontSize, TitleFontBold, TitleFontItalic, SubTitleFontName, SubTitleFontSize, SubTitleFontBold, SubTitleFontItalic, HeaderFontName, HeaderFontSize, HeaderFontBold, HeaderFontItalic, DetailFontName, DetailFontSize, DetailFontBold, DetailFontItalic, Fields, Locked, StatsOnly, StatsLine, LineEachRow, GroupNewPage, GroupForLastN, LastN, LastNDateField, Chart, ChartSize1, ChartSize2, ChartSize3, ChartSize4, ChartSize5, Properties, CustomReportObject, Columns, AlternateSpecification, AlternateSpecificationName, SuppressSearchCriteria, DifferenceValues) VALUES(90001, 3, CONVERT(DATETIME, &#039;2006-03-01 8:46:14&#039;, 102), 0, CONVERT(DATETIME, &#039;2006-03-01 14:31:38&#039;, 102), 0, &#039;Lab WIP Complete Report&#039;, &#039;Billing&#039;, &#039;WIP Complete by Lab&#039;, &#039;&#039;, &#039;&#039;, &#039;&#039;, 21, 29.7, 1, 1, 1, 1, 1, 0, 0, 0, -1, -1, 210, &#039;Arial&#039;, 8.25, 0, 0, &#039;Arial&#039;, 8.25, 0, 0, &#039;Arial&#039;, 8.25, -1, 0, &#039;Arial&#039;, 8.25, 0, 0, &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;,WIP,LabCode,&#039;, 0, 0, 0, 0, 0, 0, &#039;&#039;, &#039;&#039;, 0, Null, Null, Null, Null, Null, &#039;&#039;, Null, &#039;START[COLUMN1]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;INSERT INTO Reports(QestID, QestCreatedBy, QestCreatedDate, QestModifiedBy, QestModifiedDate, QestOwnerLabNo, Name, ReportGroup, FilterName, Title, SubTitle, DocumentNo, PageWidth, PageHeight, Orientation, PageMarginLeft, PageMarginRight, PageMarginTop, PageMarginBottom, ShowLimits, LimitFontBold, LimitFontItalic, LimitFontColour, LimitShadingColour, LineHeight, TitleFontName, TitleFontSize, TitleFontBold, TitleFontItalic, SubTitleFontName, SubTitleFontSize, SubTitleFontBold, SubTitleFontItalic, HeaderFontName, HeaderFontSize, HeaderFontBold, HeaderFontItalic, DetailFontName, DetailFontSize, DetailFontBold, DetailFontItalic, Fields, Locked, StatsOnly, StatsLine, LineEachRow, GroupNewPage, GroupForLastN, LastN, LastNDateField, Chart, ChartSize1, ChartSize2, ChartSize3, ChartSize4, ChartSize5, Properties, CustomReportObject, Columns, AlternateSpecification, AlternateSpecificationName, SuppressSearchCriteria, DifferenceValues) VALUES(90001, 3, CONVERT(DATETIME, &#039;2006-03-01 8:46:14&#039;, 102), 0, CONVERT(DATETIME, &#039;2006-03-01 14:31:38&#039;, 102), 0, &#039;Lab WIP Complete Report&#039;, &#039;Billing&#039;, &#039;WIP Complete by Lab&#039;, &#039;&#039;, &#039;&#039;, &#039;&#039;, 21, 29.7, 1, 1, 1, 1, 1, 0, 0, 0, -1, -1, 210, &#039;Arial&#039;, 8.25, 0, 0, &#039;Arial&#039;, 8.25, 0, 0, &#039;Arial&#039;, 8.25, -1, 0, &#039;Arial&#039;, 8.25, 0, 0, &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;,WIP,LabCode,&#039;, 0, 0, 0, 0, 0, 0, &#039;&#039;, &#039;&#039;, 0, Null, Null, Null, Null, Null, &#039;&#039;, Null, &#039;START[COLUMN1]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Header=Lab No&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Header=Lab No&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DataFormat=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DataFormat=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l207&quot;&gt;Line 207:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 208:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;StatSum=False&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;StatSum=False&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;StatVarCoef=False&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;StatVarCoef=False&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;FieldName=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LabNo&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;FieldName=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;QESTOwnerLabNo&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Alignment=0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Alignment=0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Divider=2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Divider=2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mark.pritchard</name></author>
	</entry>
	<entry>
		<id>http://online.spectraqest.com/index.php?title=QESTLab_AUCOF_WIP_CompleteWork&amp;diff=8541&amp;oldid=prev</id>
		<title>Mark.pritchard at 03:15, 27 April 2006</title>
		<link rel="alternate" type="text/html" href="http://online.spectraqest.com/index.php?title=QESTLab_AUCOF_WIP_CompleteWork&amp;diff=8541&amp;oldid=prev"/>
		<updated>2006-04-27T03:15:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:15, 27 April 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;--For a billing document to be picked up, it must have at least one sibling signed test report.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;--For a billing document to be picked up, it must have at least one sibling signed test report.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--That is, the test report must exist at the same level in the hierarcy as the billing document.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--That is, the test report must exist at the same level in the hierarcy as the billing document.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--There can be more than one test report, but only one is required to be signed for the billing  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;--There can be more than one test report, but only one is required to be signed for the billing  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l289&quot;&gt;Line 289:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 289:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;, 0, &amp;#039;&amp;#039;, 0, 0)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;, 0, &amp;#039;&amp;#039;, 0, 0)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GO&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mark.pritchard</name></author>
	</entry>
	<entry>
		<id>http://online.spectraqest.com/index.php?title=QESTLab_AUCOF_WIP_CompleteWork&amp;diff=8540&amp;oldid=prev</id>
		<title>Mark.pritchard at 03:14, 27 April 2006</title>
		<link rel="alternate" type="text/html" href="http://online.spectraqest.com/index.php?title=QESTLab_AUCOF_WIP_CompleteWork&amp;diff=8540&amp;oldid=prev"/>
		<updated>2006-04-27T03:14:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;nowiki&amp;gt;--For a billing document to be picked up, it must have at least one sibling signed test report.&lt;br /&gt;
--That is, the test report must exist at the same level in the hierarcy as the billing document. &lt;br /&gt;
--There can be more than one test report, but only one is required to be signed for the billing &lt;br /&gt;
--document to be picked up.&lt;br /&gt;
--For example, for concrete the test report is attached to the concrete sample group, as is the &lt;br /&gt;
--billing document. For workorders, one of the test reports (CWD, DDR) is attached to the workorder,&lt;br /&gt;
--as is the billing document.&lt;br /&gt;
--Note that a billing document is equivalent to a charge document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--Drop WIP views if were already added:&lt;br /&gt;
IF EXISTS(SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = &amp;#039;qestfilterProject_WIP_Complete&amp;#039;)&lt;br /&gt;
  DROP VIEW qestfilterProject_WIP_Complete&lt;br /&gt;
GO&lt;br /&gt;
IF EXISTS(SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = &amp;#039;qestfilterLab_WIP_Complete&amp;#039;)&lt;br /&gt;
  DROP VIEW qestfilterLab_WIP_Complete&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
CREATE VIEW qestfilterProject_WIP_Complete AS &lt;br /&gt;
(&lt;br /&gt;
	SELECT Charges.LabNo, Charges.ProjectCode, Charges.ProjectName, Charges.ClientName, Sum(Charges.WIP) AS WIP FROM&lt;br /&gt;
	(&lt;br /&gt;
		SELECT DISTINCT DocumentChargeSingle.QestOwnerLabNo As LabNo, DocumentChargeSingle.ProjectCode, DocumentChargeSingle.ProjectName, &lt;br /&gt;
		DocumentChargeSingle.ClientName, DocumentChargeSingle.TotalCharge AS WIP, DocumentCharge.QESTUniqueParentID FROM DocumentChargeSingle &lt;br /&gt;
		INNER JOIN DocumentCharge ON DocumentChargeSingle.QESTUniqueParentID = DocumentCharge.QESTUniqueID&lt;br /&gt;
		INNER JOIN DocumentCertificates ON (DocumentCharge.QESTUniqueParentID = DocumentCertificates.QESTUniqueParentID AND DocumentCharge.QESTParentID = DocumentCertificates.QESTParentID)&lt;br /&gt;
		WHERE (DocumentChargeSingle.Printed = 0 OR DocumentChargeSingle.Printed IS NULL) AND (DocumentCertificates.SignatoryID &amp;gt; 0)&lt;br /&gt;
	) AS Charges&lt;br /&gt;
	Group By Charges.ProjectCode, Charges.ProjectName, Charges.ClientName, Charges.LabNo&lt;br /&gt;
)&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
CREATE VIEW qestfilterLab_WIP_Complete AS &lt;br /&gt;
(&lt;br /&gt;
	SELECT Charges.LabNo, Sum(Charges.WIP) AS WIP, Charges.LabCode FROM&lt;br /&gt;
	(&lt;br /&gt;
		SELECT DISTINCT DocumentChargeSingle.QestOwnerLabNo As LabNo, DocumentChargeSingle.TotalCharge AS WIP, &lt;br /&gt;
		Laboratory.CounterPrefix AS LabCode, DocumentCharge.QESTUniqueParentID FROM DocumentChargeSingle &lt;br /&gt;
		INNER JOIN Laboratory On DocumentChargeSingle.QESTOwnerLabNo = Laboratory.LabNo &lt;br /&gt;
		INNER JOIN DocumentCharge ON DocumentChargeSingle.QESTUniqueParentID = DocumentCharge.QESTUniqueID&lt;br /&gt;
		INNER JOIN DocumentCertificates ON (DocumentCharge.QESTUniqueParentID = DocumentCertificates.QESTUniqueParentID AND DocumentCharge.QESTParentID = DocumentCertificates.QESTParentID)&lt;br /&gt;
		WHERE (DocumentChargeSingle.Printed = 0 OR DocumentChargeSingle.Printed IS NULL) AND (DocumentCertificates.SignatoryID &amp;gt; 0)&lt;br /&gt;
	) AS Charges&lt;br /&gt;
	Group By Charges.LabNo, Charges.LabCode&lt;br /&gt;
)&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--Drop filters if were already added:&lt;br /&gt;
DELETE FROM DataFilters WHERE Name = &amp;#039;WIP Complete by Project&amp;#039;&lt;br /&gt;
DELETE FROM DataFilters WHERE Name = &amp;#039;WIP Complete by Lab&amp;#039;&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
--Insert WIP filters to use the WIP_Complete views.&lt;br /&gt;
INSERT INTO DataFilters(FilterGroup, Name, SQL, Locked, SQLEdit, Grouping, Properties, GroupSQL, SearchCriteria) &lt;br /&gt;
	VALUES(90000, &amp;#039;WIP Complete by Project&amp;#039;, &amp;#039;SELECT   qestfilterProject_WIP_Complete.ProjectCode, qestfilterProject_WIP_Complete.ProjectName, qestfilterProject_WIP_Complete.ClientName, qestfilterProject_WIP_Complete.WIP  FROM qestfilterProject_WIP_Complete&amp;#039;, 0, 0, &amp;#039;&amp;#039;, &amp;#039;&amp;#039;, &amp;#039;SELECT Count(qestfilterProject_WIP_Complete.WIP) AS WIP_Count, Avg(qestfilterProject_WIP_Complete.WIP) AS WIP_Avg, Sum(qestfilterProject_WIP_Complete.WIP) AS WIP_Sum, Min(qestfilterProject_WIP_Complete.WIP) AS WIP_Min, Max(qestfilterProject_WIP_Complete.WIP) AS WIP_Max, StDev(qestfilterProject_WIP_Complete.WIP) AS WIP_StDevP, Var(qestfilterProject_WIP_Complete.WIP) AS WIP_VarP FROM qestfilterProject_WIP_Complete&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
GO&lt;br /&gt;
INSERT INTO DataFilters(FilterGroup, Name, SQL, Locked, SQLEdit, Grouping, Properties, GroupSQL, SearchCriteria) &lt;br /&gt;
	VALUES(90000, &amp;#039;WIP Complete by Lab&amp;#039;, &amp;#039;SELECT  qestfilterLab_WIP_Complete.LabNo, qestfilterLab_WIP_Complete.WIP, qestfilterLab_WIP_Complete.LabCode FROM qestfilterLab_WIP_Complete&amp;#039;, 0, 0, &amp;#039;&amp;#039;, &amp;#039;&amp;#039;, &amp;#039;SELECT Count(qestfilterLab_WIP_Complete.LabNo) AS LabNo_Count, Avg(qestfilterLab_WIP_Complete.LabNo) AS LabNo_Avg, Sum(qestfilterLab_WIP_Complete.LabNo) AS LabNo_Sum, Min(qestfilterLab_WIP_Complete.LabNo) AS LabNo_Min, Max(qestfilterLab_WIP_Complete.LabNo) AS LabNo_Max, StDev(qestfilterLab_WIP_Complete.LabNo) AS LabNo_StDevP, Var(qestfilterLab_WIP_Complete.LabNo) AS LabNo_VarP, Count(qestfilterLab_WIP_Complete.WIP) AS WIP_Count, Avg(qestfilterLab_WIP_Complete.WIP) AS WIP_Avg, Sum(qestfilterLab_WIP_Complete.WIP) AS WIP_Sum, Min(qestfilterLab_WIP_Complete.WIP) AS WIP_Min, Max(qestfilterLab_WIP_Complete.WIP) AS WIP_Max, StDev(qestfilterLab_WIP_Complete.WIP) AS WIP_StDevP, Var(qestfilterLab_WIP_Complete.WIP) AS WIP_VarP FROM qestfilterLab_WIP_Complete&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--Drop reports if were already added:&lt;br /&gt;
DELETE FROM Reports WHERE Name = &amp;#039;Project WIP Complete Report&amp;#039;&lt;br /&gt;
DELETE FROM Reports WHERE Name = &amp;#039;Lab WIP Complete Report&amp;#039;&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
--Insert WIP reports to use the WIP_Complete filters&lt;br /&gt;
INSERT INTO Reports(QestID, QestCreatedBy, QestCreatedDate, QestModifiedBy, QestModifiedDate, QestOwnerLabNo, Name, ReportGroup, FilterName, Title, SubTitle, DocumentNo, PageWidth, PageHeight, Orientation, PageMarginLeft, PageMarginRight, PageMarginTop, PageMarginBottom, ShowLimits, LimitFontBold, LimitFontItalic, LimitFontColour, LimitShadingColour, LineHeight, TitleFontName, TitleFontSize, TitleFontBold, TitleFontItalic, SubTitleFontName, SubTitleFontSize, SubTitleFontBold, SubTitleFontItalic, HeaderFontName, HeaderFontSize, HeaderFontBold, HeaderFontItalic, DetailFontName, DetailFontSize, DetailFontBold, DetailFontItalic, Fields, Locked, StatsOnly, StatsLine, LineEachRow, GroupNewPage, GroupForLastN, LastN, LastNDateField, Chart, ChartSize1, ChartSize2, ChartSize3, ChartSize4, ChartSize5, Properties, CustomReportObject, Columns, AlternateSpecification, AlternateSpecificationName, SuppressSearchCriteria, DifferenceValues) VALUES(90001, 3, CONVERT(DATETIME, &amp;#039;2006-03-01 8:45:50&amp;#039;, 102), 0, CONVERT(DATETIME, &amp;#039;2006-03-01 8:45:50&amp;#039;, 102), 0, &amp;#039;Project WIP Complete Report&amp;#039;, &amp;#039;Billing&amp;#039;, &amp;#039;WIP Complete by Project&amp;#039;, &amp;#039;&amp;#039;, &amp;#039;&amp;#039;, &amp;#039;&amp;#039;, 21, 29.7, 1, 1, 1, 1, 1, 0, 0, 0, -1, -1, 210, &amp;#039;Arial&amp;#039;, 8.25, 0, 0, &amp;#039;Arial&amp;#039;, 8.25, 0, 0, &amp;#039;Arial&amp;#039;, 8.25, -1, 0, &amp;#039;Arial&amp;#039;, 8.25, 0, 0, &amp;#039;LabNo,ProjectCode,ProjectName,ClientName,WIP,&amp;#039;, 0, 0, 0, 0, 0, 0, &amp;#039;&amp;#039;, &amp;#039;&amp;#039;, 0, Null, Null, Null, Null, Null, &amp;#039;&amp;#039;, Null, &amp;#039;START[COLUMN1]&lt;br /&gt;
Header=Project Code&lt;br /&gt;
DataFormat=&lt;br /&gt;
RunningType=0&lt;br /&gt;
PrevValues_MaxSize=3&lt;br /&gt;
StatNumber=False&lt;br /&gt;
Statminimum=False&lt;br /&gt;
Statmaximum=False&lt;br /&gt;
Stataverage=False&lt;br /&gt;
StatStandardDeviation=False&lt;br /&gt;
StatSlope=False&lt;br /&gt;
StatSum=False&lt;br /&gt;
StatVarCoef=False&lt;br /&gt;
FieldName=ProjectCode&lt;br /&gt;
Alignment=0&lt;br /&gt;
Divider=2&lt;br /&gt;
Width=2.47619047619048&lt;br /&gt;
DefaultFont=True&lt;br /&gt;
FontBold=False&lt;br /&gt;
FontItalic=False&lt;br /&gt;
FontColour=-1&lt;br /&gt;
ShadingColour=-1&lt;br /&gt;
HighlightMarginal=0,0,0,&lt;br /&gt;
HighlightMarginalColour=0&lt;br /&gt;
HighlightCritical=0,0,0,&lt;br /&gt;
HighlightCriticalColour=0&lt;br /&gt;
FootnoteMargPass=&lt;br /&gt;
FootnoteMargFail=&lt;br /&gt;
FootnoteCritPass=&lt;br /&gt;
FootnoteCritFail=&lt;br /&gt;
END[COLUMN1]&lt;br /&gt;
START[COLUMN2]&lt;br /&gt;
Header=Project Name&lt;br /&gt;
DataFormat=&lt;br /&gt;
RunningType=0&lt;br /&gt;
PrevValues_MaxSize=3&lt;br /&gt;
StatNumber=False&lt;br /&gt;
Statminimum=False&lt;br /&gt;
Statmaximum=False&lt;br /&gt;
Stataverage=False&lt;br /&gt;
StatStandardDeviation=False&lt;br /&gt;
StatSlope=False&lt;br /&gt;
StatSum=False&lt;br /&gt;
StatVarCoef=False&lt;br /&gt;
FieldName=ProjectName&lt;br /&gt;
Alignment=0&lt;br /&gt;
Divider=2&lt;br /&gt;
Width=6.52380952380952&lt;br /&gt;
DefaultFont=True&lt;br /&gt;
FontBold=False&lt;br /&gt;
FontItalic=False&lt;br /&gt;
FontColour=-1&lt;br /&gt;
ShadingColour=-1&lt;br /&gt;
HighlightMarginal=0,0,0,&lt;br /&gt;
HighlightMarginalColour=0&lt;br /&gt;
HighlightCritical=0,0,0,&lt;br /&gt;
HighlightCriticalColour=0&lt;br /&gt;
FootnoteMargPass=&lt;br /&gt;
FootnoteMargFail=&lt;br /&gt;
FootnoteCritPass=&lt;br /&gt;
FootnoteCritFail=&lt;br /&gt;
END[COLUMN2]&lt;br /&gt;
START[COLUMN3]&lt;br /&gt;
Header=Client Name&lt;br /&gt;
DataFormat=&lt;br /&gt;
RunningType=0&lt;br /&gt;
PrevValues_MaxSize=3&lt;br /&gt;
StatNumber=False&lt;br /&gt;
Statminimum=False&lt;br /&gt;
Statmaximum=False&lt;br /&gt;
Stataverage=False&lt;br /&gt;
StatStandardDeviation=False&lt;br /&gt;
StatSlope=False&lt;br /&gt;
StatSum=False&lt;br /&gt;
StatVarCoef=False&lt;br /&gt;
FieldName=ClientName&lt;br /&gt;
Alignment=0&lt;br /&gt;
Divider=2&lt;br /&gt;
Width=6.47089947089947&lt;br /&gt;
DefaultFont=True&lt;br /&gt;
FontBold=False&lt;br /&gt;
FontItalic=False&lt;br /&gt;
FontColour=-1&lt;br /&gt;
ShadingColour=-1&lt;br /&gt;
HighlightMarginal=0,0,0,&lt;br /&gt;
HighlightMarginalColour=0&lt;br /&gt;
HighlightCritical=0,0,0,&lt;br /&gt;
HighlightCriticalColour=0&lt;br /&gt;
FootnoteMargPass=&lt;br /&gt;
FootnoteMargFail=&lt;br /&gt;
FootnoteCritPass=&lt;br /&gt;
FootnoteCritFail=&lt;br /&gt;
END[COLUMN3]&lt;br /&gt;
START[COLUMN4]&lt;br /&gt;
Header=WIP ($)&lt;br /&gt;
DataFormat=0.00&lt;br /&gt;
RunningType=0&lt;br /&gt;
PrevValues_MaxSize=3&lt;br /&gt;
StatNumber=False&lt;br /&gt;
Statminimum=False&lt;br /&gt;
Statmaximum=False&lt;br /&gt;
Stataverage=False&lt;br /&gt;
StatStandardDeviation=False&lt;br /&gt;
StatSlope=False&lt;br /&gt;
StatSum=True&lt;br /&gt;
StatVarCoef=False&lt;br /&gt;
FieldName=WIP&lt;br /&gt;
Alignment=1&lt;br /&gt;
Divider=1&lt;br /&gt;
Width=2.63492063492063&lt;br /&gt;
DefaultFont=True&lt;br /&gt;
FontBold=False&lt;br /&gt;
FontItalic=False&lt;br /&gt;
FontColour=-1&lt;br /&gt;
ShadingColour=-1&lt;br /&gt;
HighlightMarginal=0,0,0,&lt;br /&gt;
HighlightMarginalColour=0&lt;br /&gt;
HighlightCritical=0,0,0,&lt;br /&gt;
HighlightCriticalColour=0&lt;br /&gt;
FootnoteMargPass=&lt;br /&gt;
FootnoteMargFail=&lt;br /&gt;
FootnoteCritPass=&lt;br /&gt;
FootnoteCritFail=&lt;br /&gt;
END[COLUMN4]&lt;br /&gt;
&amp;#039;, 0, &amp;#039;&amp;#039;, 0, 0)&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
INSERT INTO Reports(QestID, QestCreatedBy, QestCreatedDate, QestModifiedBy, QestModifiedDate, QestOwnerLabNo, Name, ReportGroup, FilterName, Title, SubTitle, DocumentNo, PageWidth, PageHeight, Orientation, PageMarginLeft, PageMarginRight, PageMarginTop, PageMarginBottom, ShowLimits, LimitFontBold, LimitFontItalic, LimitFontColour, LimitShadingColour, LineHeight, TitleFontName, TitleFontSize, TitleFontBold, TitleFontItalic, SubTitleFontName, SubTitleFontSize, SubTitleFontBold, SubTitleFontItalic, HeaderFontName, HeaderFontSize, HeaderFontBold, HeaderFontItalic, DetailFontName, DetailFontSize, DetailFontBold, DetailFontItalic, Fields, Locked, StatsOnly, StatsLine, LineEachRow, GroupNewPage, GroupForLastN, LastN, LastNDateField, Chart, ChartSize1, ChartSize2, ChartSize3, ChartSize4, ChartSize5, Properties, CustomReportObject, Columns, AlternateSpecification, AlternateSpecificationName, SuppressSearchCriteria, DifferenceValues) VALUES(90001, 3, CONVERT(DATETIME, &amp;#039;2006-03-01 8:46:14&amp;#039;, 102), 0, CONVERT(DATETIME, &amp;#039;2006-03-01 14:31:38&amp;#039;, 102), 0, &amp;#039;Lab WIP Complete Report&amp;#039;, &amp;#039;Billing&amp;#039;, &amp;#039;WIP Complete by Lab&amp;#039;, &amp;#039;&amp;#039;, &amp;#039;&amp;#039;, &amp;#039;&amp;#039;, 21, 29.7, 1, 1, 1, 1, 1, 0, 0, 0, -1, -1, 210, &amp;#039;Arial&amp;#039;, 8.25, 0, 0, &amp;#039;Arial&amp;#039;, 8.25, 0, 0, &amp;#039;Arial&amp;#039;, 8.25, -1, 0, &amp;#039;Arial&amp;#039;, 8.25, 0, 0, &amp;#039;LabNo,WIP,LabCode,&amp;#039;, 0, 0, 0, 0, 0, 0, &amp;#039;&amp;#039;, &amp;#039;&amp;#039;, 0, Null, Null, Null, Null, Null, &amp;#039;&amp;#039;, Null, &amp;#039;START[COLUMN1]&lt;br /&gt;
Header=Lab No&lt;br /&gt;
DataFormat=&lt;br /&gt;
RunningType=0&lt;br /&gt;
PrevValues_MaxSize=3&lt;br /&gt;
StatNumber=False&lt;br /&gt;
Statminimum=False&lt;br /&gt;
Statmaximum=False&lt;br /&gt;
Stataverage=False&lt;br /&gt;
StatStandardDeviation=False&lt;br /&gt;
StatSlope=False&lt;br /&gt;
StatSum=False&lt;br /&gt;
StatVarCoef=False&lt;br /&gt;
FieldName=LabNo&lt;br /&gt;
Alignment=0&lt;br /&gt;
Divider=2&lt;br /&gt;
Width=1.94708994708995&lt;br /&gt;
DefaultFont=True&lt;br /&gt;
FontBold=False&lt;br /&gt;
FontItalic=False&lt;br /&gt;
FontColour=-1&lt;br /&gt;
ShadingColour=-1&lt;br /&gt;
HighlightMarginal=0,0,0,&lt;br /&gt;
HighlightMarginalColour=0&lt;br /&gt;
HighlightCritical=0,0,0,&lt;br /&gt;
HighlightCriticalColour=0&lt;br /&gt;
FootnoteMargPass=&lt;br /&gt;
FootnoteMargFail=&lt;br /&gt;
FootnoteCritPass=&lt;br /&gt;
FootnoteCritFail=&lt;br /&gt;
END[COLUMN1]&lt;br /&gt;
START[COLUMN2]&lt;br /&gt;
Header=Lab Code&lt;br /&gt;
DataFormat=&lt;br /&gt;
RunningType=0&lt;br /&gt;
PrevValues_MaxSize=3&lt;br /&gt;
StatNumber=False&lt;br /&gt;
Statminimum=False&lt;br /&gt;
Statmaximum=False&lt;br /&gt;
Stataverage=False&lt;br /&gt;
StatStandardDeviation=False&lt;br /&gt;
StatSlope=False&lt;br /&gt;
StatSum=True&lt;br /&gt;
StatVarCoef=False&lt;br /&gt;
FieldName=LabCode&lt;br /&gt;
Alignment=0&lt;br /&gt;
Divider=1&lt;br /&gt;
Width=2&lt;br /&gt;
DefaultFont=True&lt;br /&gt;
FontBold=False&lt;br /&gt;
FontItalic=False&lt;br /&gt;
FontColour=-1&lt;br /&gt;
ShadingColour=-1&lt;br /&gt;
HighlightMarginal=&lt;br /&gt;
HighlightMarginalColour=0&lt;br /&gt;
HighlightCritical=&lt;br /&gt;
HighlightCriticalColour=0&lt;br /&gt;
FootnoteMargPass=&lt;br /&gt;
FootnoteMargFail=&lt;br /&gt;
FootnoteCritPass=&lt;br /&gt;
FootnoteCritFail=&lt;br /&gt;
END[COLUMN2]&lt;br /&gt;
START[COLUMN3]&lt;br /&gt;
Header=WIP ($)&lt;br /&gt;
DataFormat=0.00&lt;br /&gt;
RunningType=0&lt;br /&gt;
PrevValues_MaxSize=3&lt;br /&gt;
StatNumber=False&lt;br /&gt;
Statminimum=False&lt;br /&gt;
Statmaximum=False&lt;br /&gt;
Stataverage=False&lt;br /&gt;
StatStandardDeviation=False&lt;br /&gt;
StatSlope=False&lt;br /&gt;
StatSum=True&lt;br /&gt;
StatVarCoef=False&lt;br /&gt;
FieldName=WIP&lt;br /&gt;
Alignment=1&lt;br /&gt;
Divider=1&lt;br /&gt;
Width=2.55555555555556&lt;br /&gt;
DefaultFont=True&lt;br /&gt;
FontBold=False&lt;br /&gt;
FontItalic=False&lt;br /&gt;
FontColour=-1&lt;br /&gt;
ShadingColour=-1&lt;br /&gt;
HighlightMarginal=0,0,0,&lt;br /&gt;
HighlightMarginalColour=0&lt;br /&gt;
HighlightCritical=0,0,0,&lt;br /&gt;
HighlightCriticalColour=0&lt;br /&gt;
FootnoteMargPass=&lt;br /&gt;
FootnoteMargFail=&lt;br /&gt;
FootnoteCritPass=&lt;br /&gt;
FootnoteCritFail=&lt;br /&gt;
END[COLUMN3]&lt;br /&gt;
&amp;#039;, 0, &amp;#039;&amp;#039;, 0, 0)&lt;br /&gt;
GO&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mark.pritchard</name></author>
	</entry>
</feed>