HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/MariaDB Data/jms_demo_master/reports.MYD
1�R�,�	User ListISELECT * FROM users WHERE UserName >= "[START]" AND UserName <= "[END]"
?1<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40863.5595222338" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1B000000204E616D653D22746B6E5354415254222056616C75653D2227272200010C19000000204E616D653D22746B6E454E44222056616C75653D2227272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="548.03185" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo5" Left="0" Top="7.55906" Width="279.68522" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="User List"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="56.69295" Width="162.51979" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="User Name"/>
      <TfrxMemoView Name="Memo7" Left="291.02381" Top="56.69295" Width="56.69295" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="5" HAlign="haRight" ParentFont="False" Text="Rate A"/>
      <TfrxMemoView Name="Memo8" Left="381.73253" Top="56.69295" Width="56.69295" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="5" HAlign="haRight" ParentFont="False" Text="Rate B"/>
      <TfrxMemoView Name="Memo9" Left="476.22078" Top="56.69295" Width="56.69295" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="5" HAlign="haRight" ParentFont="False" Text="Rate C"/>
      <TfrxMemoView Name="Memo11" Left="570.70903" Top="56.69295" Width="56.69295" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Abbrev"/>
      <TfrxMemoView Name="Memo12" Left="653.85869" Top="56.69295" Width="56.69295" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Active"/>
      <TfrxMemoView Name="Memo16" Left="170.07885" Top="56.69295" Width="86.92919" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Branch ID"/>
      <TfrxMemoView Name="Memo18" Left="7.55906" Top="79.37013" Width="351.49629" Height="461.10266" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Arial" Font.Style="0" HAlign="haBlock" ParentFont="False" Text="Delphi became the site of a major temple to Phoebus Apollo, as well as the Pythian Games and the famous prehistoric oracle. Even in Roman times, hundreds of votive statues remained, described by Pliny the Younger and seen by Pausanias. Supposedly carved into the temple were three phrases: γνῶθι σεαυτόν (gnothi seauton = &#34;know thyself&#34;) and μηδὲν ἄγαν (meden agan = &#34;nothing in excess&#34;), as well as a large letter E.[3] Among other things epsilon signifies the number 5. Plutarch's essay on the meaning of the “E at Delphi&#34; is the only literary source for the inscription.&#13;&#10;&#13;&#10;From a late myth that deviates from much older ones, when young, Apollo killed the chthonic serpent Python, named Pythia in older myths, but according to some later accounts his wife, Pythia, who lived beside the Castalian Spring, according to some because Python had attempted to rape Leto while she was pregnant with Apollo and Artemis. The bodies of the pair were draped around his Rod, which, with the wings created the caduceus symbolic of the god. This spring flowed toward the temple but disappeared beneath, creating a cleft which emitted vapors that caused the Oracle at Delphi to give her prophecies. Apollo killed Python but had to be punished for it, since she was a child of Gaia. The shrine dedicated to Apollo was originally dedicated to Gaia and then, possibly to Poseidon. The name Pythia remained as the title of the Delphic Oracle. As punishment for this murder Apollo was sent to serve in menial tasks for eight years. A festival, the Septeria, was performed annually portraying the slaying of the serpent, the flight, the atonment and the return of the God. The Pythian Games took place every four years to commemorate his victory [1].&#13;&#10;&#13;&#10;Erwin Rohde wrote that the Python was an earth spirit, who was conquered by Apollo, and buried under the Omphalos, and that it is a case of one deity setting up a temple on the grave of another.[4] Another view holds that Apollo was a fairly recent addition to the Greek pantheon coming originally from Lydia. The Etruscans coming from northern Anatolia also worshiped Apollo, and it may be that he was originally identical with Mesopotamian Aplu, an Akkadian title meaning &#34;son&#34;, originally given to the plague God Nergal, son of Enlil. Apollo Smintheus (Greek Απόλλων Σμινθεύς), the mouse killer[5] eliminates mice, a primary cause of disease, hence he promotes preventive medicine."/>
      <TfrxMemoView Name="strReportTitle" Left="306.14193" Top="7.55906" Width="79.37013" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[strReportTitle]"/>
      <TfrxMemoView Name="strUserName" Left="400.63018" Top="3.77953" Width="79.37013" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[strUserName]"/>
      <TfrxMemoView Name="strBranchPrefix" Left="506.45702" Top="3.77953" Width="79.37013" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[strBranchPrefix]"/>
      <TfrxMemoView Name="strBranchName" Left="600.94527" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[strBranchName]"/>
      <TfrxMemoView Name="tknSTART" Left="306.14193" Top="34.01577" Width="79.37013" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[tknSTART]"/>
      <TfrxMemoView Name="tknEND" Left="400.63018" Top="34.01577" Width="79.37013" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[tknEND]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="627.40198" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="113.3859" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[&#60;ds.&#34;UserName&#34;&#62;]"/>
      <TfrxMemoView Name="Memo2" Left="328.81911" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" DataField="RateA" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;RateA&#34;]"/>
      <TfrxMemoView Name="Memo3" Left="419.52783" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" DataField="RateB" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;RateB&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="514.01608" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" DataField="RateC" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;RateC&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="600.94527" Top="0" Width="49.13389" Height="18.89765" ShowHint="False" DataField="Abbrev" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;Abbrev&#34;]"/>
      <TfrxMemoView Name="Memo15" Left="653.85869" Top="0" Width="49.13389" Height="18.89765" ShowHint="False" DataField="Active" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="_,x" DisplayFormat.Kind="fkBoolean" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;Active&#34;]"/>
      <TfrxMemoView Name="Memo17" Left="230.55133" Top="0" Width="86.92919" Height="18.89765" ShowHint="False" DataField="BranchID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;BranchID&#34;]"/>
      <TfrxMemoView Name="Memo19" Left="124.72449" Top="0" Width="132.28355" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial Narrow" Font.Style="0" ParentFont="False" Text="['#' + Translate(&#60;ds.&#34;UserName&#34;&#62;, 2, 0) + '#']"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="710.55164" Width="718.1107">
      <TfrxMemoView Name="Memo13" Left="0" Top="0" Width="225" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo14" Left="574.48856" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
Test�Nú�H r�,�	Job Label�SELECT * FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID
LEFT JOIN groups g ON g.GroupID = c.GroupID
WHERE JobID >= "[FROMJOBID]" AND JobID <= "[TOJOBID]"�A<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39205.5580658681" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; '' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; '' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + ', '&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + ' '&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;CustomerName&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;procedure Page1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if &#60;tknLABELTYPE&#62; = 'Fault Details' then&#13;&#10;   chdCustomerInstruction.Visible := False&#13;&#10;  else if &#60;tknLABELTYPE&#62; = 'Customer Instruction' then&#13;&#10;   chdFaultDetails.Visible := False&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2C000000204E616D653D22746B6E4C4142454C54595045222056616C75653D22274661756C742044657461696C73272200010C25000000204E616D653D22746B6E46524F4D4A4F424944222056616C75653D2227313030303031272200010C23000000204E616D653D22746B6E544F4A4F424944222056616C75653D222731303030303127220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D22302200010C8A000000204E616D653D224E6F726D616C20426F6C642220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2231220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
    <TfrxMasterData Name="MasterData1" Height="16.2519685" Left="0" Top="18.89765" Width="718.1107" Child="Child1" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" KeepChild="True" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="45.35436" Top="0" Width="86.92919" Height="16.2519685" DataSetName="frxDBDataset1" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Style="Normal Bold" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="0" Top="0" Width="45.35436" Height="16.2519685" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Style="Normal Bold" Text="Job No:"/>
      <TfrxMemoView Name="Memo7" Left="177.63791" Top="0" Width="22.67718" Height="16.2519685" DataSetName="frxDBDataset1" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;JobClassID&#34;]"/>
      <TfrxMemoView Name="Memo8" Left="136.06308" Top="0" Width="37.7953" Height="16.2519685" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Style="Normal Bold" Text="Class:"/>
      <TfrxMemoView Name="Memo10" Left="207.87415" Top="0" Width="37.7953" Height="16.251968503937" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Style="Normal Bold" Text="Type:"/>
      <TfrxMemoView Name="Memo11" Left="249.44898" Top="0" Width="132.28355" Height="16.2519685" DataSetName="frxDBDataset1" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;JobType&#34;]"/>
      <TfrxMemoView Name="Memo9" Left="389.29159" Top="0" Width="64.25201" Height="16.2519685" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;DateTimeOfEntry&#34;]"/>
    </TfrxMasterData>
    <TfrxChild Name="Child1" Height="16.2519685" Left="0" Top="56.69295" Width="718.1107" Child="Child2" PrintChildIfInvisible="True" Stretched="True">
      <TfrxMemoView Name="Memo12" Left="0" Top="0" Width="117.16543" Height="16.2519685" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Customer Addr:"/>
      <TfrxMemoView Name="Memo13" Left="98.26778" Top="0" Width="355.27582" Height="16.2519685" StretchMode="smActualHeight" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetAddress]"/>
    </TfrxChild>
    <TfrxChild Name="Child2" Height="16.2519685" Left="0" Top="94.48825" Width="718.1107" Child="Child3" PrintChildIfInvisible="True" Stretched="True">
      <TfrxMemoView Name="Memo14" Left="0" Top="1.4210854715202E-14" Width="117.16543" Height="16.2519685" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Contact:"/>
      <TfrxMemoView Name="Memo15" Left="98.26778" Top="0" Width="355.27582" Height="16.2519685" StretchMode="smActualHeight" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetContact]"/>
    </TfrxChild>
    <TfrxChild Name="Child3" Height="16.2519685" Left="0" Top="132.28355" Width="718.1107" Child="chdCustomerInstruction" PrintChildIfInvisible="True">
      <TfrxMemoView Name="Memo30" Left="0" Top="0" Width="117.16543" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Order No:"/>
      <TfrxMemoView Name="Memo31" Left="98.26778" Top="0" Width="355.27582" Height="16.2519685" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
    </TfrxChild>
    <TfrxChild Name="chdCustomerInstruction" Height="16.2519685" Left="0" Top="170.07885" Width="718.1107" Child="chdFaultDetails" PrintChildIfInvisible="True" Stretched="True">
      <TfrxMemoView Name="Memo3" Left="98.26778" Top="0" Width="355.27582" Height="16.2519685" StretchMode="smActualHeight" DataSetName="frxDBDataset1" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;CustomerInstruction&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="0" Top="0" Width="117.16543" Height="16.2519685" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Customer Inst:"/>
    </TfrxChild>
    <TfrxChild Name="Child5" Height="16.2519685" Left="0" Top="245.66945" Width="718.1107" Child="Child6" PrintChildIfInvisible="True">
      <TfrxMemoView Name="Memo5" Left="0" Top="0" Width="117.16543" Height="16.2519685" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Advice Note:"/>
      <TfrxMemoView Name="Memo6" Left="98.26778" Top="0" Width="355.27582" Height="16.2519685" DataSetName="frxDBDataset1" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;AdviceNoteNo&#34;]"/>
    </TfrxChild>
    <TfrxChild Name="Child6" Height="16.2519685" Left="0" Top="283.46475" Width="718.1107" Child="Child7" PrintChildIfInvisible="True">
      <TfrxMemoView Name="Memo18" Left="0" Top="0" Width="117.16543" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Item Desc:"/>
      <TfrxMemoView Name="Memo19" Left="98.26778" Top="0" Width="355.27582" Height="16.2519685" StretchMode="smActualHeight" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;Description&#34;]"/>
    </TfrxChild>
    <TfrxChild Name="Child7" Height="16.2519685" Left="0" Top="321.26005" Width="718.1107" Child="Child8" PrintChildIfInvisible="True">
      <TfrxMemoView Name="Memo16" Left="0" Top="5.6843418860808E-14" Width="117.16543" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Manufacturer:"/>
      <TfrxMemoView Name="Memo17" Left="98.26778" Top="0" Width="355.27582" Height="16.2519685" StretchMode="smActualHeight" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;ManufacturerName&#34;]"/>
    </TfrxChild>
    <TfrxChild Name="Child8" Height="16.2519685" Left="0" Top="359.05535" Width="718.1107" Child="Child9" PrintChildIfInvisible="True">
      <TfrxMemoView Name="Memo20" Left="0" Top="5.6843418860808E-14" Width="117.16543" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Model Number:"/>
      <TfrxMemoView Name="Memo21" Left="98.26778" Top="5.6843418860808E-14" Width="355.27582" Height="16.2519685" StretchMode="smActualHeight" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;ModelNumber&#34;]"/>
    </TfrxChild>
    <TfrxChild Name="Child9" Height="16.2519685" Left="0" Top="396.85065" Width="718.1107" Child="Child10" PrintChildIfInvisible="True">
      <TfrxMemoView Name="Memo22" Left="0" Top="5.6843418860808E-14" Width="83.14966" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Number Off:"/>
      <TfrxMemoView Name="Memo23" Left="68.03154" Top="5.6843418860808E-14" Width="26.45671" Height="16.2519685" StretchMode="smActualHeight" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;NumberOff&#34;]"/>
      <TfrxMemoView Name="Memo24" Left="98.26778" Top="5.6843418860808E-14" Width="94.48825" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Engineer Report?"/>
      <TfrxMemoView Name="Memo27" Left="192.75603" Top="0" Width="41.57483" Height="16.2519685" DataField="j.EngineerReportRequired" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="No,Yes" DisplayFormat.Kind="fkBoolean" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;j.EngineerReportRequired&#34;]"/>
      <TfrxMemoView Name="Memo25" Left="238.11039" Top="5.6843418860808E-14" Width="94.48825" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="QuoteRequired?"/>
      <TfrxMemoView Name="Memo26" Left="328.81911" Top="0" Width="41.57483" Height="16.2519685" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="No,Yes" DisplayFormat.Kind="fkBoolean" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;j.QuoteRequired&#34;]"/>
    </TfrxChild>
    <TfrxChild Name="Child10" Height="38.9291485" Left="0" Top="434.64595" Width="718.1107" PrintChildIfInvisible="True">
      <TfrxMemoView Name="Memo28" Left="0" Top="0" Width="83.14966" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Style="Normal Bold" Text="Group:"/>
      <TfrxMemoView Name="Memo29" Left="98.26778" Top="0" Width="355.27582" Height="16.2519685" StretchMode="smActualHeight" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Style="Normal Bold" Text="[ds.&#34;GroupName&#34;]"/>
    </TfrxChild>
    <TfrxChild Name="chdFaultDetails" Height="16.2519685" Left="0" Top="207.87415" Width="718.1107" Child="Child5" PrintChildIfInvisible="True" Stretched="True">
      <TfrxMemoView Name="Memo32" Left="98.26778" Top="0" Width="355.27582" Height="16.2519685" StretchMode="smActualHeight" DataSetName="frxDBDataset1" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[ds.&#34;FaultDetails&#34;]"/>
      <TfrxMemoView Name="Memo34" Left="0" Top="0" Width="117.16543" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Fault Details:"/>
    </TfrxChild>
  </TfrxReportPage>
</TfrxReport>
TestL
=====================================

Lektronix CZ, s.r.o. : Cenová nabídka

=====================================

Kontaktní osoba: {Title} {FirstName} {Surname}
Spoleènost: {CustomerName}
Datum cenové nabídky: {strToday}
Èíslo Vaší zakázky: {JobID}
Množství: {NumberOff}
Položka k opravì: {ManufacturerName} {ModelNumber} ({Description})

Sériové èíslo: {SerialNo}

{quote_lines}

Cena dopravy: {quoted_delivery} {QuoteCurrencyCode}
Termín dodání: {DeliveryDays} dní

Ceny jsou uvedeny bez DPH. Záruka je 12 mìsícù.

Platnost nabídky je 14 dní.

Máte-li další dotazy, kontaktujte nás co nejdøíve na telefonním èísle 544 528 660.

Uvìdomte nás laskavì o dalším postupu, pro který jste se rozhodli, a to buï telefonicky na èísle 544 528 660, nebo vybráním jedné z níže uvedených možností a zasláním na faxové èíslo 544 501 132.

[  ] Objednaváme. Èíslo objednávky: _______
[  ] Žádáme o vrácení bez opravy.
[  ] Žádáme o likvidaci.

S pozdravem a pøáním pøíjemného dne

{strUserName}
���+0G�8�n�R��	QuotationSELECT
j.JobID, j.BranchID, j.CustomerID, j.EquipmentID, j.DeliveryDays, j.DateTimeOfEntry, j.ContactID, j.JobTypeID,
j.NumberOff, j.SellPrice, j.QuotedPrice, j.QuotedDelivery, j.CustomerOrderNo, j.AdviceNoteNo, j.FaultDetails, j.CustomerInstruction, j.SerialNo, j.DiscountRate, j.QuoteCurrencyCode, j.QuoteCurrencyRate,
e.Description, m.ManufacturerName, e.ModelNumber,
c.CustomerName, c.LanguageID, c.DeliveryFax, cc.Title, cc.FirstName, cc.Surname, cc.Fax, cr.CurrencySymbol, 
br.CompanyName, br.Address1, br.Address2, br.Address3, br.Address4, br.Address5, br.Postcode,
br.Tel AS BranchTel, br.Fax AS BranchFax, br.SalesEmail AS BranchSalesEmail
FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN currencies cr ON cr.CurrencyCode = j.QuoteCurrencyCode 
LEFT JOIN branches br ON br.BranchID = j.BranchID
WHERE JobID = "[JOBID]"VSELECT 
j.JobID, j.BranchID, j.CustomerID, j.EquipmentID, j.DeliveryDays, j.DateTimeOfEntry, j.ContactID, j.JobTypeID,
q.NumberOff, q.SellPrice, q.QuotedPrice, q.QuotedDelivery, q.CustomerOrderNo, q.AdviceNoteNo, q.FaultDetails, q.CustomerInstruction, q.SerialNo, q.DiscountRate, q.QuoteCurrencyCode, q.QuoteCurrencyRate,
e.Description, m.ManufacturerName, e.ModelNumber,
c.CustomerName, c.LanguageID, c.DeliveryFax, cc.Title, cc.FirstName, cc.Surname, cc.Fax, cr.CurrencySymbol,
br.CompanyName, br.Address1, br.Address2, br.Address3, br.Address4, br.Address5, br.Postcode,
br.Tel AS BranchTel, br.Fax AS BranchFax, br.SalesEmail AS BranchSalesEmail
FROM job_quote_log q
INNER JOIN jobs j ON j.JobID = q.JobID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN currencies cr ON cr.CurrencyCode = q.QuoteCurrencyCode
LEFT JOIN branches br ON br.BranchID = j.BranchID
WHERE QuoteLogID = "[QUOTELOGID]"b<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39035.7740109375" ReportOptions.Description.Text="" ReportOptions.LastChange="41507.6123501273" ScriptLanguage="PascalScript" ScriptText.Text="procedure Page1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if &#60;tknQUOTETYPE&#62; = 'Order Number Request' then&#13;&#10;  begin&#13;&#10;    mmMessageQuotation.Visible := False;&#13;&#10;    mmMessageOrderNoRequest.Visible := True;&#13;&#10;    chdReply.Visible := False;&#13;&#10;    mmTitle.Text := UpperCase(&#60;tknQUOTETYPE&#62;);&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;    mmMessageQuotation.Visible := True;&#13;&#10;    mmMessageOrderNoRequest.Visible := False;&#13;&#10;    chdReply.Visible := True;&#13;&#10;    {&#13;&#10;    if &#60;ds.&#34;JobTypeID&#34;&#62; = 2 then&#13;&#10;      mmTitle.Text := 'Supply Quotation'&#13;&#10;    else&#13;&#10;      mmTitle.Text := 'Repair Quotation';&#13;&#10;    }&#13;&#10;    mmTitle.Text := UpperCase(&#60;tknQUOTETYPE&#62;);&#13;&#10;&#13;&#10;  end;&#13;&#10;&#13;&#10;  // (SS,14/8/13) changed &#34;&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0&#34; to &#34;&#60;ds.&#34;DiscountRate&#34;&#62; &#60;&#62; 0&#34; to show surcharge (positive discount), also added Abs to prevent negative for surcharge                                                                                                                                                                                                                                                                                                                 &#13;&#10;  mmPriceEach.Text := &#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat('#0.00', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;SellPrice&#34;&#62;);&#13;&#10;  mmDiscountAmount.Text := IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60;&#62; 0, &#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat('#0.00', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * Abs((&#60;ds.&#34;SellPrice&#34;&#62; - &#60;ds.&#34;QuotedPrice&#34;&#62;))) , '');  &#13;&#10;  mmQuotedPrice.Text := IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60;&#62; 0, &#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat('#0.00', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;QuotedPrice&#34;&#62;), '');  &#13;&#10;  mmDelivery.Text := &#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat('#0.00', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;QuotedDelivery&#34;&#62;);  &#13;&#10;              &#13;&#10;  // pass values to email                                                                                        &#13;&#10;  SetEmailVar('evPriceEach', mmPriceEach.Text);&#13;&#10;  SetEmailVar('evDiscountAmount', mmDiscountAmount.Text);      &#13;&#10;  SetEmailVar('evQuotedPrice', mmQuotedPrice.Text);      &#13;&#10;  SetEmailVar('evDelivery', mmDelivery.Text);&#13;&#10;      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetFax: String;&#13;&#10;begin&#13;&#10;  // if Fax from contact record is blank then use the one from customer record                                                                                                                                                                                                                 &#13;&#10;  if Trim(&#60;ds.&#34;Fax&#34;&#62;) = '' then&#13;&#10;    Result := &#60;ds.&#34;DeliveryFax&#34;&#62;&#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;Fax&#34;&#62;;                                                                             &#13;&#10;end;    &#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D2264732200010C3C00000020446174615365743D226672784442446174617365745265706F72742220446174615365744E616D653D2264735265706F727453657474696E6773220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E51554F544554595045222056616C75653D222751756F746174696F6E272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C7D000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31392220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
    <TfrxMasterData Name="MasterData1" Height="783.49605322" Left="0" Top="151.1812" Width="699.21305" Child="chdReply" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo2" Left="0" Top="4.15747787000001" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="To:"/>
      <TfrxMemoView Name="Memo3" Left="0" Top="27.9685015" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Company:"/>
      <TfrxMemoView Name="Memo4" Left="0" Top="51.77952512" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Fax No:"/>
      <TfrxMemoView Name="mmMessageQuotation" Left="11.33858268" Top="109.60626992" Width="676.53587" Height="79.37013" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="We would be grateful if you could advise at your earliest convenience how you would like to proceed. You can do this by phone on [ds.&#34;BranchTel&#34;] or by selecting one of the options below and faxing us on [ds.&#34;BranchFax&#34;].&#13;&#10;&#13;&#10;You can also email your confirmation to [ds.&#34;BranchSalesEmail&#34;]."/>
      <TfrxShapeView Name="Shape1" Left="11.33859" Top="216.56691449" Width="676.53587" Height="185.19697" ShowHint="False"/>
      <TfrxMemoView Name="Memo6" Left="18.8976378" Top="224.50392236" Width="188.9765" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Important Information:"/>
      <TfrxMemoView Name="Memo7" Left="18.89765" Top="248.69289874" Width="657.63822" Height="143.62214" ShowHint="False" DataField="CustomerInstruction" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerInstruction&#34;]"/>
      <TfrxMemoView Name="Memo8" Left="109.60637" Top="3.77952999999999" Width="278.55120551" Height="26.45671" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" WordWrap="False" Text="[Trim(&#60;ds.&#34;Title&#34;&#62; + ' ' + Trim(&#60;ds.&#34;FirstName&#34;&#62; + ' ' + &#60;ds.&#34;Surname&#34;&#62;))]"/>
      <TfrxMemoView Name="Memo9" Left="109.60637" Top="27.9685015" Width="287.24428" Height="24.56692913" ShowHint="False" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" WordWrap="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="109.60637" Top="51.77952512" Width="249.44898" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[GetFax]"/>
      <TfrxMemoView Name="Memo11" Left="359.05512055" Top="4.15747787000001" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="From:"/>
      <TfrxMemoView Name="Memo12" Left="359.05535" Top="27.9685015" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Date:"/>
      <TfrxMemoView Name="Memo13" Left="359.05535" Top="51.77952512" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Your Ref:"/>
      <TfrxMemoView Name="Memo14" Left="468.66172" Top="27.9685015" Width="230.55133" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd mmmm yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" WordWrap="False" Text="[Date]"/>
      <TfrxMemoView Name="Memo15" Left="468.66172" Top="51.77952512" Width="230.55133" Height="24.56692913" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;AdviceNoteNo&#34;]"/>
      <TfrxMemoView Name="Memo16" Left="468.66172" Top="3.77952999999999" Width="230.55133" Height="24.56692913" ShowHint="False" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[strUserName]"/>
      <TfrxShapeView Name="Shape2" Left="11.33858268" Top="419.52783" Width="677.29135079" Height="336.37795276" ShowHint="False"/>
      <TfrxLineView Name="Line1" Left="83.1496063" Top="419.52783" Width="0" Height="336.37817" ShowHint="False" Frame.Typ="1"/>
      <TfrxLineView Name="Line2" Left="196.53543307" Top="419.52783" Width="0" Height="336.37817" ShowHint="False" Frame.Typ="1"/>
      <TfrxLineView Name="Line3" Left="563.1496063" Top="419.52783" Width="0" Height="336.37817" ShowHint="False" Frame.Typ="1"/>
      <TfrxLineView Name="Line4" Left="11.33858268" Top="483.77951291" Width="677.29133858" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo17" Left="22.67718" Top="438.42548" Width="45.35429409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="QTY"/>
      <TfrxMemoView Name="Memo18" Left="86.92919" Top="430.86642" Width="98.26771409" Height="43.46457913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="OUR JOB REF"/>
      <TfrxMemoView Name="Memo19" Left="204.09462" Top="438.42548" Width="355.27575409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="DESCRIPTION OF ITEM"/>
      <TfrxMemoView Name="Memo20" Left="574.48856" Top="423.30707197" Width="98.26771409" Height="43.46457913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="PRICE EACH"/>
      <TfrxMemoView Name="Memo21" Left="574.48856" Top="464.88187512" Width="102.04724409" Height="17.00786913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="(excluding VAT)"/>
      <TfrxMemoView Name="Memo22" Left="18.89765" Top="498.89796" Width="49.13389" Height="26.45669291" ShowHint="False" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Style="Normal" Text="[ds.&#34;NumberOff&#34;]"/>
      <TfrxMemoView Name="Memo23" Left="90.70872" Top="498.89796" Width="94.48825" Height="26.45669291" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo24" Left="204.09462" Top="498.89796" Width="143.62205213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Manufacturer:"/>
      <TfrxMemoView Name="Memo25" Left="204.09462" Top="529.1342" Width="143.62205213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Part No:"/>
      <TfrxMemoView Name="Memo26" Left="204.09462" Top="559.37044" Width="143.62205213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Description:"/>
      <TfrxMemoView Name="Memo27" Left="204.09462" Top="608.50433" Width="143.62205213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Serial No(s):"/>
      <TfrxMemoView Name="Memo28" Left="355.27582" Top="498.89796" Width="200.31509" Height="26.45671" ShowHint="False" DataField="ManufacturerName" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" WordWrap="False" Text="[ds.&#34;ManufacturerName&#34;]"/>
      <TfrxMemoView Name="Memo29" Left="355.27582" Top="529.1342" Width="200.31509" Height="22.67718" ShowHint="False" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" WordWrap="False" Text="[ds.&#34;ModelNumber&#34;]"/>
      <TfrxMemoView Name="Memo30" Left="355.27582" Top="559.37044" Width="200.31509" Height="45.35436" ShowHint="False" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;Description&#34;]"/>
      <TfrxMemoView Name="mmPriceEach" Left="566.9295" Top="498.89762315" Width="109.60637" Height="26.45669291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Price Each"/>
      <TfrxMemoView Name="Memo32" Left="355.27582" Top="608.50433" Width="200.31509" Height="64.2519685" ShowHint="False" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;SerialNo&#34;]"/>
      <TfrxMemoView Name="Memo33" Left="207.87415" Top="672.75634" Width="347.71667213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Style="Normal" Text="[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, 'Less Discount at ' + FloatToStr(-&#60;ds.&#34;DiscountRate&#34;&#62;) + '%', IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#62; 0, 'Surcharge', ''))]"/>
      <TfrxMemoView Name="mmDiscountAmount" Left="566.9295" Top="672.75634" Width="109.60637" Height="26.45669291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Discount Amount"/>
      <TfrxMemoView Name="Memo35" Left="207.87415" Top="699.21305" Width="347.71667213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Style="Normal" Text="[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60;&#62; 0, 'Net Price', '')]"/>
      <TfrxMemoView Name="Memo36" Left="207.87415" Top="725.66976" Width="98.26769213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Style="Normal" Text="Delivery:"/>
      <TfrxMemoView Name="Memo37" Left="313.70099" Top="725.66976" Width="241.88983213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Style="Normal" Text="[IntToStr(&#60;ds.&#34;DeliveryDays&#34;&#62;) + ' days']"/>
      <TfrxMemoView Name="mmQuotedPrice" Left="566.9295" Top="699.21305" Width="109.60637" Height="26.45669291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Quoted Price"/>
      <TfrxMemoView Name="mmDelivery" Left="566.9295" Top="725.66976" Width="109.60637" Height="26.45669291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Delivery"/>
      <TfrxMemoView Name="Memo40" Left="11.33858268" Top="759.68502472" Width="676.53587" Height="16.2519685" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[IIF(&#60;ds.&#34;QuoteCurrencyCode&#34;&#62; &#60;&#62; 'GBP',&#13;&#10;'The exchange rate is set at quote time and this is the exchange rate that will be used for invoicing.'&#13;&#10;, '')]"/>
      <TfrxMemoView Name="mmMessageOrderNoRequest" Left="11.33859" Top="109.60637" Width="676.53587" Height="79.37013" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="We have recently repaired and returned the item(s) listed below and would be grateful if you provide us with a Purchase Order Number to cover this work, as soon as possible.&#13;&#10;&#13;&#10;Please phone the number through to [ds.&#34;BranchTel&#34;], fax it to [ds.&#34;BranchFax&#34;] or alternatively you can also email your Purchase Order Number to [ds.&#34;BranchSalesEmail&#34;]."/>
    </TfrxMasterData>
    <TfrxChild Name="chdReply" Height="156.0945785" Left="0" Top="956.22109" Width="699.21305">
      <TfrxShapeView Name="Shape3" Left="11.33858268" Top="7.55906000000004" Width="23.81102362" Height="23.81102362" ShowHint="False"/>
      <TfrxMemoView Name="Memo41" Left="49.13389" Top="11.33859" Width="313.70092409" Height="17.00786913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Proceed with repair using order number:"/>
      <TfrxMemoView Name="Memo46" Left="366.61441" Top="11.33859" Width="215.43321" Height="18.8976378" ShowHint="False" DataField="CustomerOrderNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" Frame.Typ="15" GapX="5" ParentFont="False" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
      <TfrxMemoView Name="Memo47" Left="49.13389" Top="34.0152183499999" Width="638.74050409" Height="17.00786913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="['For nett price of ' +&#13;&#10;&#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat('#0.00', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;QuotedPrice&#34;&#62; * &#60;ds.&#34;NumberOff&#34;&#62;)&#13;&#10;+ ' + ' + &#13;&#10;&#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat('#0.00', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * &#60;ds.&#34;QuotedDelivery&#34;&#62;)&#13;&#10;+ ' p&#38;p']"/>
      <TfrxShapeView Name="Shape4" Left="11.33859" Top="68.0315399999999" Width="23.81102362" Height="23.81102362" ShowHint="False"/>
      <TfrxMemoView Name="Memo42" Left="49.13389732" Top="71.81107" Width="287.24421409" Height="17.00786913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Return the item un-repaired. Reason:"/>
      <TfrxShapeView Name="Shape5" Left="11.33859" Top="120.94496" Width="23.81102362" Height="23.81102362" ShowHint="False"/>
      <TfrxMemoView Name="Memo43" Left="49.13389732" Top="124.72449" Width="139.84254409" Height="17.00786913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Scrap the item"/>
      <TfrxShapeView Name="Shape6" Left="343.93723" Top="71.81107" Width="340.1577" Height="18.89765" ShowHint="False"/>
    </TfrxChild>
    <TfrxPageFooter Name="PageFooter1" Height="16.2519685" Left="0" Top="1171.6543" Width="699.21305"/>
    <TfrxPageHeader Name="PageHeader1" Height="71.81107" Left="0" Top="18.89765" Width="699.21305">
      <TfrxPictureView Name="Picture1" Left="435.77997913" Top="10.96062748" Width="263.43307087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
      <TfrxMemoView Name="mmTitle" Left="0" Top="15.11812" Width="423.30736" Height="37.7953" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-27" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Title"/>
    </TfrxPageHeader>
  </TfrxReportPage>
</TfrxReport>
Quotation for Job ID {JobID}�<html>Quotation for Job {JobID}
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<table>
<tr><td>To</td><td><b>{Title} {FirstName} {Surname}</b></td></tr>
<tr><td>Company</td><td><b>{CustomerName}</b></td></tr>
<tr><td>Date</td><td><b>{strToday}</b></td></tr>
<tr><td>Your Advice Ref</td><td><b>{AdviceNoteNo}</b></td></tr>
<tr><td>Qty</td><td><b>{NumberOff}</b></td></tr>
<tr><td>Our Job Ref</td><td><b>{JobID}</b></td></tr>
<!-- {JobID} = 109772 -->
<tr><td>Manufacturer</td><td><b>{ManufacturerName}</b></td></tr>
<tr><td>Model Number</td><td><b>{ModelNumber}</b></td></tr>
<!---->
<tr><td>Description</td><td><b>{Description}</b></td></tr>
<!-- {JobID} != 109772 -->
<tr><td>Serial No</td><td><b>{SerialNo}</b></td></tr>
<!---->
<tr><td>Delivery Days</td><td><b>{DeliveryDays}</b></td></tr>
</table>
<br/>
Please see attached quotation for further details.
<br/><br/>
{strEmailSignatureHTML}
</body>
</html>BranchID
LanguageID-���*bN�3;=�R���
Delivery Note�SELECT j.*, c.*, cc.*, e.*, m.*, f.*,
b1.CompanyName, b1.Address1, b1.Address2, b1.Address3, b1.Address4, b1.Address5, b1.Postcode, b1.LanguageID,
b2.CompanyName, b2.Address1, b2.Address2, b2.Address3, b2.Address4, b2.Address5, b2.Postcode,
"[TYPE]" AS DeliveryNoteType
FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
INNER JOIN branches b1 ON b1.BranchID = j.BranchID
INNER JOIN branches b2 ON b2.BranchID = j.RepairBranchID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN final_outcomes f ON f.FinalOutcomeID = j.FinalOutcomeID
WHERE JobID = "[JOBID]"�:<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40932.513446331" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; '' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; '' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + ', '&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + ' '&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;DeliveryNoteType&#34;&#62; = 'TransferBack' Then&#13;&#10;  begin&#13;&#10;    Result := AddField('', &#60;ds.&#34;b1.CompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Address5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b1.Postcode&#34;&#62;, False, True);      &#13;&#10;  end&#13;&#10;  else&#13;&#10;  if &#60;ds.&#34;DeliveryNoteType&#34;&#62; = 'TransferTo' Then                        &#13;&#10;  begin&#13;&#10;    Result := AddField('', &#60;ds.&#34;b2.CompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Address5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;b2.Postcode&#34;&#62;, False, True);      &#13;&#10;  end          &#13;&#10;  else // 'Normal'                          &#13;&#10;  begin              &#13;&#10;    Result := AddField('', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, False, True);&#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2C000000204E616D653D22737472557365724E616D65222056616C75653D2227416E6472657720466F6C6C616E74272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D2227313030303031272200010C20000000204E616D653D22746B6E54595045222056616C75653D22274E6F726D616C272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="215.9" PaperHeight="279.4" PaperSize="1" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="294.80316913" Left="0" Top="18.89765" Width="721.512277">
      <TfrxMemoView Name="Memo2" Left="75.59055118" Top="136.06299213" Width="566.9295" Height="120.94496" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetAddress]"/>
      <TfrxMemoView Name="Memo3" Left="0" Top="260.78739913" Width="721.89023" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="DELIVERY / ADVICE NOTE"/>
      <TfrxPictureView Name="Picture1" Left="464.88219" Top="45.35436" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="661.41762551" Left="0" Top="374.17347" Width="721.512277" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo4" Left="0" Top="7.55905999999999" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Job Number:"/>
      <TfrxMemoView Name="Memo5" Left="113.3859" Top="7.55905999999999" Width="170.07885" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="30.23624" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Order Number:"/>
      <TfrxMemoView Name="Memo7" Left="113.3859" Top="30.23624" Width="302.3624" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
      <TfrxMemoView Name="Memo8" Left="0" Top="52.91342" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date:"/>
      <TfrxMemoView Name="Memo9" Left="113.3859" Top="52.91342" Width="170.07885" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[Date]"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="75.5906" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Contact:"/>
      <TfrxMemoView Name="Memo12" Left="0" Top="120.94496" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Description"/>
      <TfrxMemoView Name="Memo14" Left="0" Top="154.96073" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Description:"/>
      <TfrxMemoView Name="Memo16" Left="0" Top="177.63791" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Quantity:"/>
      <TfrxMemoView Name="Memo15" Left="113.3859" Top="154.96073" Width="495.11843" Height="18.89765" ShowHint="False" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Description&#34;]"/>
      <TfrxMemoView Name="Memo17" Left="113.3859" Top="75.5906" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
      <TfrxMemoView Name="Memo11" Left="113.3859" Top="177.63791" Width="495.11843" Height="18.89765" ShowHint="False" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;NumberOff&#34;]"/>
      <TfrxMemoView Name="Memo13" Left="0" Top="200.31509" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Manufacturer:"/>
      <TfrxMemoView Name="Memo18" Left="113.3859" Top="200.31509" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ManufacturerName&#34;]"/>
      <TfrxMemoView Name="Memo19" Left="0" Top="222.99227" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Model Number:"/>
      <TfrxMemoView Name="Memo20" Left="113.3859" Top="222.99227" Width="495.11843" Height="18.89765" ShowHint="False" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ModelNumber&#34;]"/>
      <TfrxMemoView Name="Memo21" Left="0" Top="245.66945" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Advice Note No:"/>
      <TfrxMemoView Name="Memo22" Left="113.3859" Top="245.66945" Width="495.11843" Height="18.89765" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AdviceNoteNo&#34;]"/>
      <TfrxMemoView Name="Memo23" Left="0" Top="268.34663" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Serial Number(s):"/>
      <TfrxMemoView Name="Memo24" Left="113.3859" Top="268.34663" Width="495.11843" Height="56.69291827" ShowHint="False" StretchMode="smMaxHeight" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SerialNo&#34;]"/>
      <TfrxMemoView Name="Memo25" Left="0" Top="332.59864" Width="521.57480315" Height="192.75590551" ShowHint="False" DataField="InvoiceText" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceText&#34;]"/>
      <TfrxMemoView Name="Memo26" Left="0" Top="540.47279" Width="139.84261" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-17" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Final Outcome:"/>
      <TfrxMemoView Name="Memo31" Left="143.62214" Top="538.58267717" Width="536.69326" Height="26.45671" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[Translate(&#60;ds.&#34;FinalOutcome&#34;&#62;,&#60;ds.&#34;c.LanguageID&#34;&#62;,&#60;ds.&#34;b1.LanguageID&#34;&#62;)]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="18.89765" Left="0" Top="1096.0637" Width="721.512277">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="355.27582" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="['Branch: ' + &#60;strBranchName&#62;]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
E��l�F�����r�,�Invoice�SELECT i.*, j.*,
c.CustomerName, c.InvoiceCustomerName, c.InvoiceAddr1, c.InvoiceAddr2, c.InvoiceAddr3, c.InvoiceAddr4, c.InvoiceAddr5, c.InvoicePostcode, c.InvoiceTel, c.InvoiceFax, c.AccountNo, c.VATIDNumber,
cc.Title, cc.FirstName, cc.Surname, cc.Tel, cc.TelExtension,
e.ModelNumber, e.Description, m.ManufacturerName,
bc.BranchPrefix AS ComBranchPrefix, bc.CompanyName AS ComCompanyName, bc.Address1 AS ComAddress1, bc.Address2 AS ComAddress2, bc.Address3 AS ComAddress3, bc.Address4 AS ComAddress4, bc.Address5 AS ComAddress5, bc.Postcode AS ComPostcode, bc.Tel AS ComTel, bc.Fax AS ComFax, bc.VATNo AS ComVATNo,
br.BranchPrefix AS RepBranchPrefix, br.CompanyName AS RepCompanyName, br.Address1 AS RepAddress1, br.Address2 AS RepAddress2, br.Address3 AS RepAddress3, br.Address4 AS RepAddress4, br.Address5 AS RepAddress5, br.Postcode AS RepPostcode, br.Tel AS RepTel, br.Fax AS RepFax, br.VATNo AS RepVATNo,
ci.CurrencySymbol AS InvoiceCurrencySymbol, ci.CurrencyName AS InvoiceCurrencyName,
ca.CurrencySymbol AS AccountsCurrencySymbol, ca.CurrencyName AS AccountsCurrencyName,
cr.CurrencySymbol AS RechargeCurrencySymbol, cr.CurrencyName AS RechargeCurrencyName,
cra.CurrencySymbol AS RechargeAccountsCurrencySymbol, cra.CurrencyName AS RechargeAccountsCurrencyName
FROM invoice_print_list i
INNER JOIN jobs j ON j.JobID = i.IPL_JobID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
INNER JOIN branches bc ON bc.BranchID = j.BranchID
INNER JOIN branches br ON br.BranchID = j.RepairBranchID
LEFT JOIN currencies ci ON ci.CurrencyCode = j.InvoiceCurrencyCode
LEFT JOIN currencies ca ON ca.CurrencyCode = j.AccountsCurrencyCode
LEFT JOIN currencies cr ON cr.CurrencyCode = j.RechargeCurrencyCode
LEFT JOIN currencies cra ON cra.CurrencyCode = j.RechargeAccountsCurrencyCoder�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="41507.6299790394" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; '' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; '' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + ', '&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + ' '&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then // if it's a recharge invoice                                                                 &#13;&#10;  begin&#13;&#10;    // commercial branch address                                                                                           &#13;&#10;    Result := AddField('', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, 'Accounts Payable', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);      &#13;&#10;  end          &#13;&#10;  else&#13;&#10;  begin&#13;&#10;    // customer's address&#13;&#10;    if Trim(&#60;ds.&#34;InvoiceCustomerName&#34;&#62;) = '' then                                        &#13;&#10;      Result := AddField('', &#60;ds.&#34;CustomerName&#34;&#62;, False, True)&#13;&#10;    else&#13;&#10;      Result := AddField('', &#60;ds.&#34;InvoiceCustomerName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, 'Accounts Payable', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoicePostcode&#34;&#62;, False, True);&#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetBranchAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;  begin              &#13;&#10;    Result := AddField('', &#60;ds.&#34;RepCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepTel&#34;&#62; &#60;&#62; '' then                                            &#13;&#10;      Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;RepTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepFax&#34;&#62; &#60;&#62; '' then                                                 &#13;&#10;    Result := AddField(Result, 'Fax: ' + &#60;ds.&#34;RepFax&#34;&#62;, False, True);&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;    Result := AddField('', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComTel&#34;&#62; &#60;&#62; '' then                                            &#13;&#10;      Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;ComTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComFax&#34;&#62; &#60;&#62; '' then                                                 &#13;&#10;    Result := AddField(Result, 'Fax: ' + &#60;ds.&#34;ComFax&#34;&#62;, False, True);      &#13;&#10;  end;            &#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATRegNo: String;      &#13;&#10;begin&#13;&#10;  if IsRecharge then                &#13;&#10;    Result := &#60;ds.&#34;RepVATNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;ComVATNo&#34;&#62;;                   &#13;&#10;end;          &#13;&#10;    &#13;&#10;function IsCustomerCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'C';                                                                  &#13;&#10;end;  &#13;&#10;&#13;&#10;function IsCustomerAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'A';    &#13;&#10;end;          &#13;&#10;&#13;&#10;function IsRechargeCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'R';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRechargeAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'RA';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRecharge: Boolean;&#13;&#10;begin&#13;&#10;  Result := IsRechargeCopy or IsRechargeAccountsCopy;                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetInvoiceTitle: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;CreditNote&#34;&#62; then&#13;&#10;    Result := 'CREDIT NOTE'&#13;&#10;  else&#13;&#10;    if IsRecharge then&#13;&#10;      Result := 'RECHARGE INVOICE'&#13;&#10;    else                      &#13;&#10;      if &#60;ds.&#34;InvoiceNo&#34;&#62; &#62; 0 then&#13;&#10;        Result := 'INVOICE'&#13;&#10;      else         &#13;&#10;        Result := 'ZERO INVOICE';&#13;&#10;&#13;&#10;  if IsRecharge then&#13;&#10;    Result := Result + '  ' + &#60;ds.&#34;RepBranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;RechargeInvoiceNo&#34;&#62;)  &#13;&#10;  else&#13;&#10;    Result := Result + '  ' + &#60;ds.&#34;ComBranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;);                 &#13;&#10;end;&#13;&#10;&#13;&#10;function IsGBPCurrency: Boolean;&#13;&#10;begin&#13;&#10;  Result := GetCurrencyCode = 'GBP';                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetCurrencyCode: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then                                &#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyCode&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyCode&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Code undetermined');                                                                                     &#13;&#10;end;          &#13;&#10;  &#13;&#10;function GetCurrencyRate: Double;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyRate&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyRate&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Rate undetermined');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencySymbol: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencySymbol&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencySymbol&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Symbol undetermined');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencyName: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyName&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyName&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Name undetermined');      &#13;&#10;end;    &#13;&#10;    &#13;&#10;function AsCurrency(const AValue: Double): String;&#13;&#10;begin&#13;&#10;  Result := GetCurrencySymbol + FormatFloat('#0.00', GetCurrencyRate * AValue);                                                                        &#13;&#10;end;&#13;&#10;&#13;&#10;function IsDiscount: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0;                                   &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscount: Double;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;  begin&#13;&#10;    // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field                                                                                                                                                                                                                                                                                      &#13;&#10;    if &#60;ds.&#34;DiscountRate&#34;&#62; = -100 then&#13;&#10;      Result := 0&#13;&#10;    else                      &#13;&#10;      Result := &#60;ds.&#34;InvoicePrice&#34;&#62; * (100/(100 + &#60;ds.&#34;DiscountRate&#34;&#62;));&#13;&#10;  end                     &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;InvoicePrice&#34;&#62;;    &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscount: Double;&#13;&#10;begin&#13;&#10;  // done this way to ensure there's no rounding error of 1p in the printout&#13;&#10;  Result := GetInvoicePriceIncDiscount - &#60;ds.&#34;InvoicePrice&#34;&#62;                                         &#13;&#10;end;&#13;&#10;&#13;&#10;function GetQuotedPriceAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;QuotedPrice&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetInvoicePriceIncDiscount);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetDiscount)    &#13;&#10;  else&#13;&#10;    Result := '';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetPriceIfDiscountAsCurrency: String;  &#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoicePrice&#34;&#62;)                   &#13;&#10;  else&#13;&#10;    Result := '';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDeliveryAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;InvoiceDelivery&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62;)      &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62;);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;RechargeInvoiceNet&#34;&#62; / 100)                       &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetTotalAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then    &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1))&#13;&#10;  else&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1));                         &#13;&#10;end;  &#13;&#10;&#13;&#10;function GetExchangeRateMessage: String;&#13;&#10;begin&#13;&#10;  if IsGBPCurrency then&#13;&#10;    Result := ''&#13;&#10;  else&#13;&#10;  begin              &#13;&#10;    Result := 'This invoice was generated using the exchange rate ' + FormatFloat('#0.0000', GetCurrencyRate) + ' which was set at the time of ';&#13;&#10;    if IsRecharge then&#13;&#10;      Result := Result + 'invoicing.'&#13;&#10;    else&#13;&#10;      Result := Result + 'quotation.';                                                                       &#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetLabel: String;&#13;&#10;var&#13;&#10;  LLabel: String; // LLabel used because Result := Result + .. causes error                                                                                                                                                                                    &#13;&#10;begin&#13;&#10;  if IsCustomerAccountsCopy or IsRechargeAccountsCopy then&#13;&#10;    LLabel := 'Accounts Copy'                        &#13;&#10;  else&#13;&#10;    LLabel := '';&#13;&#10;    &#13;&#10;  if &#60;ds.&#34;IPL_CopyNo&#34;&#62; &#62; 1 then&#13;&#10;    LLabel := LLabel + IIf(LLabel = '', 'Copy', '') + ' ' + IntToStr(&#60;ds.&#34;IPL_CopyNo&#34;&#62;);&#13;&#10;&#13;&#10;  Result := LLabel;                                                    &#13;&#10;end;&#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;                                                           &#13;&#10;begin&#13;&#10;  // hide certain values if recharge invoice                                                                                                   &#13;&#10;  LVisible := not IsRecharge;                                              &#13;&#10;  mInvoicePrice.Visible := LVisible;                                         &#13;&#10;  mDiscountRate.Visible := LVisible;                                                         &#13;&#10;  mDiscount.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscountTitle.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscount.Visible := LVisible;  &#13;&#10;  mDeliveryTitle.Visible := LVisible;  &#13;&#10;  mDelivery.Visible := LVisible;          &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D2264732200010C3C00000020446174615365743D226672784442446174617365745265706F72742220446174615365744E616D653D2264735265706F727453657474696E6773220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="119.43307086" Left="0" Top="18.89765" Width="699.21305">
      <TfrxPictureView Name="Picture1" Left="366.61417323" Top="36.28345724" Width="332.5984252" Height="71.81102362" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="914.64626" Left="0" Top="200.31509" Width="699.21305" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" StartNewPage="True">
      <TfrxMemoView Name="Memo3" Left="34.01577" Top="0" Width="321.26005" Height="147.40167" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetAddress]"/>
      <TfrxMemoView Name="Memo5" Left="0" Top="147.40159433" Width="699.21305" Height="27.5905585" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-24" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[GetInvoiceTitle]"/>
      <TfrxShapeView Name="Shape1" Left="0" Top="188.97658787" Width="699.21305" Height="86.92919" ShowHint="False"/>
      <TfrxMemoView Name="Memo6" Left="79.37013" Top="196.53564787" Width="120.94496" Height="18.89765" ShowHint="False" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;]"/>
      <TfrxMemoView Name="Memo7" Left="7.55906" Top="196.53564787" Width="64.25201" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Tax Point:"/>
      <TfrxMemoView Name="Memo8" Left="7.55906" Top="215.43329787" Width="64.25201" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Order No:"/>
      <TfrxMemoView Name="Memo9" Left="79.37013" Top="215.43329787" Width="306.14193" Height="18.89765" ShowHint="False" DataField="CustomerOrderNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="7.55906" Top="234.33094787" Width="64.25201" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Contact:"/>
      <TfrxMemoView Name="Memo11" Left="79.37013" Top="234.33094787" Width="306.14193" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
      <TfrxMemoView Name="Memo12" Left="419.52783" Top="196.53564787" Width="79.37013" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Job No:"/>
      <TfrxMemoView Name="Memo13" Left="514.01608" Top="196.53564787" Width="173.85838" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo14" Left="419.52783" Top="215.43329787" Width="79.37013" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT Reg No:"/>
      <TfrxMemoView Name="Memo15" Left="514.01608" Top="215.43329787" Width="173.85838" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetVATRegNo]"/>
      <TfrxMemoView Name="Memo16" Left="419.52783" Top="234.33094787" Width="86.92919" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Account Code:"/>
      <TfrxMemoView Name="Memo17" Left="419.52783" Top="253.22859787" Width="86.92919" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[IIF(&#60;ds.&#34;VATIDNumber&#34;&#62; = '', '', 'VAT ID No:')]"/>
      <TfrxMemoView Name="Memo18" Left="514.01608" Top="253.22859787" Width="173.85838" Height="18.89765" ShowHint="False" DataField="VATIDNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;VATIDNumber&#34;]"/>
      <TfrxMemoView Name="Memo19" Left="514.01608" Top="234.33094787" Width="173.85838" Height="18.89765" ShowHint="False" DataField="AccountNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AccountNo&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="298.58295787" Width="699.21305" Height="347.71676" ShowHint="False"/>
      <TfrxLineView Name="Line1" Left="0" Top="325.03966787" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxLineView Name="Line2" Left="582.04762" Top="298.58295787" Width="0" Height="347.71676" ShowHint="False" Frame.Typ="1"/>
      <TfrxMemoView Name="Memo20" Left="7.55906" Top="302.36248787" Width="113.3859" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Description"/>
      <TfrxMemoView Name="Memo21" Left="597.16574" Top="302.36248787" Width="94.48825" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Price"/>
      <TfrxMemoView Name="Memo22" Left="7.55906" Top="336.37825787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Description:"/>
      <TfrxMemoView Name="Memo23" Left="7.55906" Top="393.07120787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Quantity:"/>
      <TfrxMemoView Name="Memo24" Left="117.16543" Top="336.37825787" Width="461.10266" Height="18.89765" ShowHint="False" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Description&#34;]"/>
      <TfrxMemoView Name="Memo25" Left="117.16543" Top="393.07120787" Width="117.16543" Height="18.89765" ShowHint="False" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;NumberOff&#34;]"/>
      <TfrxMemoView Name="Memo26" Left="7.55906" Top="355.27590787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Manufacturer:"/>
      <TfrxMemoView Name="Memo27" Left="117.16543" Top="355.27590787" Width="461.10266" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ManufacturerName&#34;]"/>
      <TfrxMemoView Name="Memo28" Left="7.55906" Top="374.17355787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Model Number:"/>
      <TfrxMemoView Name="Memo29" Left="117.16543" Top="374.17355787" Width="461.10266" Height="18.89765" ShowHint="False" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ModelNumber&#34;]"/>
      <TfrxMemoView Name="Memo30" Left="7.55906" Top="430.86650787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Advice Note No:"/>
      <TfrxMemoView Name="Memo31" Left="117.16543" Top="430.86650787" Width="449.76407" Height="18.89765" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AdviceNoteNo&#34;]"/>
      <TfrxMemoView Name="Memo32" Left="7.55906" Top="449.76415787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Serial Number(s):"/>
      <TfrxMemoView Name="Memo33" Left="117.16543" Top="449.76415787" Width="449.76407" Height="56.69291827" ShowHint="False" StretchMode="smMaxHeight" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SerialNo&#34;]"/>
      <TfrxMemoView Name="Memo34" Left="7.55906" Top="506.45710787" Width="487.55903315" Height="68.03141551" ShowHint="False" DataField="InvoiceText" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceText&#34;]"/>
      <TfrxMemoView Name="Memo37" Left="7.55906" Top="411.96885787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Price Each:"/>
      <TfrxMemoView Name="Memo38" Left="117.16543" Top="411.96885787" Width="117.16543" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetQuotedPriceAsCurrency]"/>
      <TfrxMemoView Name="mDiscountRate" Left="7.55906" Top="582.04770787" Width="563.14963315" Height="18.89752551" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, 'Less Discount at ' + FloatToStr(-&#60;ds.&#34;DiscountRate&#34;&#62;) + '%', '')]"/>
      <TfrxMemoView Name="mDiscount" Left="585.82715" Top="582.04770787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetDiscountAsCurrency]"/>
      <TfrxMemoView Name="mNetPriceIfDiscountTitle" Left="7.55906" Top="600.94535787" Width="563.14988213" Height="18.8976378" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, 'Net Price', '')]"/>
      <TfrxMemoView Name="mNetPriceIfDiscount" Left="585.82715" Top="600.94535787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetNetPriceIfDiscountAsCurrency]"/>
      <TfrxMemoView Name="mDeliveryTitle" Left="7.55906" Top="619.84300787" Width="241.88983213" Height="18.8976378" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Delivery"/>
      <TfrxMemoView Name="mDelivery" Left="585.82715" Top="619.84300787" Width="105.82684" Height="18.8976378" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetDeliveryAsCurrency]"/>
      <TfrxShapeView Name="Shape3" Left="0" Top="661.41783787" Width="699.21305" Height="86.92914118" ShowHint="False"/>
      <TfrxMemoView Name="Memo39" Left="7.55906" Top="668.97689787" Width="328.81911" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Payment terms strictly 30 days from date of invoice."/>
      <TfrxMemoView Name="Memo42" Left="7.55906" Top="687.87454787" Width="162.51979" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT Rate:"/>
      <TfrxMemoView Name="Memo46" Left="7.55906" Top="706.77219787" Width="328.81911" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="['All values shown are in ' + GetCurrencyName + '.']"/>
      <TfrxMemoView Name="Memo47" Left="173.85838" Top="687.87454787" Width="162.51979" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[FloatToStr(&#60;ds.&#34;VATRate&#34;&#62;) + '%']"/>
      <TfrxMemoView Name="Memo48" Left="7.55906" Top="725.66984787" Width="684.09493" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetExchangeRateMessage]"/>
      <TfrxMemoView Name="Memo49" Left="7.55906" Top="759.68561787" Width="684.09493" Height="30.23624" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="E &#38; OE Claims with regard to the above must be notified to us within 7 days of the date of invoice.&#13;&#10;Please note all contracts are made in accordance with our standard conditions of trading a copy of which is available on request."/>
      <TfrxMemoView Name="Memo50" Left="7.55906" Top="797.48091787" Width="684.09493" Height="41.57483" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text=""/>
      <TfrxMemoView Name="Memo52" Left="476.22078" Top="668.97689787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Invoice Net ="/>
      <TfrxMemoView Name="Memo53" Left="476.22078" Top="687.87454787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT ="/>
      <TfrxMemoView Name="Memo54" Left="476.22078" Top="706.77219787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Total ="/>
      <TfrxMemoView Name="Memo55" Left="585.82715" Top="668.97689787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetNetAsCurrency]"/>
      <TfrxMemoView Name="Memo56" Left="585.82715" Top="687.87454787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetVATAsCurrency]"/>
      <TfrxMemoView Name="Memo57" Left="585.82715" Top="706.77219787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetTotalAsCurrency]"/>
      <TfrxMemoView Name="Memo51" Left="291.02381" Top="873.07151787" Width="404.40971" Height="15.11812" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[GetLabel]"/>
      <TfrxMemoView Name="Memo1" Left="491.3389" Top="0" Width="204.09462" Height="139.84261" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetBranchAddress]"/>
      <TfrxMemoView Name="mInvoicePrice" Left="585.82715" Top="336.37817" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetInvoicePriceIncDiscountAsCurrency]"/>
    </TfrxMasterData>
  </TfrxReportPage>
</TfrxReport>
?Invoice for Order No {CustomerOrderNo} (Invoice No {InvoiceNo})2<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
Dear

<!-- {InvoiceCustomerName} !=  -->
{InvoiceCustomerName},
<!---->
<!-- {InvoiceCustomerName} =  -->
{CustomerName},
<!---->

<br /><br />
Please find attached the invoice for Order No  {CustomerOrderNo}.
<br /><br />
Your order details:
<br/>
<table>
<tr><td>Company</td><td><b>{CustomerName}</b></td></tr>
<tr><td>Date</td><td><b>{strToday}</b></td></tr>
<tr><td>Your Order No</td><td><b>{CustomerOrderNo}</b></td></tr>
<tr><td>Your Advice Ref</td><td><b>{AdviceNoteNo}</b></td></tr>
<tr><td>Our Job Ref</td><td><b>{JobID}</b></td></tr>
<tr><td>Invoice No</td><td><b>{InvoiceNo}</b></td></tr>
<tr><td>Qty</td><td><b>{NumberOff}</b></td></tr>
<tr><td>Manufacturer</td><td><b>{ManufacturerName}</b></td></tr>
<tr><td>Model Number</td><td><b>{ModelNumber}</b></td></tr>
<tr><td>Description</td><td><b>{Description}</b></td></tr>
<tr><td>Serial No</td><td><b>{SerialNo}</b></td></tr>
</table>
<br />
{strEmailSignatureHTML}
</body>
</html>BranchID ����	M4��6wR���	Engineer Service ReportSELECT *
FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
WHERE JobID = "[JOBID]"5<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40928.8499811806" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; '' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; '' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + ', '&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + ' '&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, False, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetFax: String;&#13;&#10;begin&#13;&#10;  // if Fax from contact record is blank then use the one from customer record                                                                                                                                                                                                                 &#13;&#10;  if Trim(&#60;ds.&#34;Fax&#34;&#62;) = '' then&#13;&#10;    Result := &#60;ds.&#34;DeliveryFax&#34;&#62;&#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;Fax&#34;&#62;;    &#13;&#10;end;          &#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="204.09444913" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo3" Left="222.99227" Top="162.51961913" Width="253.22851" Height="30.23624" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-24" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="15" HAlign="haCenter" ParentFont="False" Text="SERVICE REPORT"/>
      <TfrxPictureView Name="Picture1" Left="445.98454" Top="18.89765" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="767.24459" Left="0" Top="283.46475" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo4" Left="0" Top="79.37013" Width="143.62214" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Our Job Ref:"/>
      <TfrxMemoView Name="Memo5" Left="162.51979" Top="79.37013" Width="302.3624" Height="22.67718" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="26.45671" Width="143.62214" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Contact:"/>
      <TfrxMemoView Name="Memo14" Left="0" Top="215.43321" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Description:"/>
      <TfrxMemoView Name="Memo15" Left="113.3859" Top="215.43321" Width="495.11843" Height="18.89765" ShowHint="False" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Description&#34;]"/>
      <TfrxMemoView Name="Memo17" Left="162.51979" Top="26.45671" Width="559.37044" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
      <TfrxMemoView Name="Memo13" Left="0" Top="238.11039" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Manufacturer:"/>
      <TfrxMemoView Name="Memo18" Left="113.3859" Top="238.11039" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ManufacturerName&#34;]"/>
      <TfrxMemoView Name="Memo19" Left="0" Top="260.78757" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Model Number:"/>
      <TfrxMemoView Name="Memo20" Left="113.3859" Top="260.78757" Width="495.11843" Height="18.89765" ShowHint="False" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ModelNumber&#34;]"/>
      <TfrxMemoView Name="Memo23" Left="0" Top="287.24428" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Serial Number(s):"/>
      <TfrxMemoView Name="Memo24" Left="113.3859" Top="287.24428" Width="495.11843" Height="56.69291827" ShowHint="False" StretchMode="smMaxHeight" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SerialNo&#34;]"/>
      <TfrxMemoView Name="Memo25" Left="0" Top="389.29159" Width="687.87412315" Height="374.1732552" ShowHint="False" DataField="ExternalReport" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ExternalReport&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="143.62214" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Customer:"/>
      <TfrxMemoView Name="Memo2" Left="162.51979" Top="0" Width="559.37044" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="Memo32" Left="0" Top="52.91342" Width="143.62214" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Fax No:"/>
      <TfrxMemoView Name="Memo33" Left="162.51979" Top="52.91342" Width="442.20501" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[GetFax]"/>
      <TfrxMemoView Name="Memo34" Left="0" Top="105.82684" Width="151.1812" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Customer Order No:"/>
      <TfrxMemoView Name="Memo35" Left="162.51979" Top="105.82684" Width="559.37044" Height="22.67718" ShowHint="False" DataField="CustomerOrderNo" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
      <TfrxMemoView Name="Memo36" Left="0" Top="132.28355" Width="151.1812" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Advice Note No:"/>
      <TfrxMemoView Name="Memo37" Left="162.51979" Top="132.28355" Width="559.37044" Height="22.67718" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AdviceNoteNo&#34;]"/>
      <TfrxLineView Name="Line1" Left="0" Top="162.51979" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4" Frame.Width="2"/>
      <TfrxMemoView Name="Memo38" Left="0" Top="177.63791" Width="196.53556" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-17" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Description of Repair:"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="355.27582" Width="196.53556" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-17" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Action:"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="45.35436" Left="0" Top="1111.18182" Width="699.21305">
      <TfrxMemoView Name="Memo28" Left="0" Top="7.55906000000004" Width="434.64595" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Engineer:"/>
      <TfrxMemoView Name="Memo30" Left="487.55937" Top="7.55906000000004" Width="177.63791" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Date:"/>
      <TfrxLineView Name="Line2" Left="0" Top="41.57483" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4" Frame.Width="2"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
1��l� <�R���
Engineer On-site ReportSELECT * FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
WHERE JobID = "[JOBID]"�;<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40928.8495265394" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; '' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; '' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + ', '&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + ' '&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, False, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="215.43303913" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo2" Left="75.59055118" Top="18.89756213" Width="566.9295" Height="170.07885" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetAddress]"/>
      <TfrxMemoView Name="Memo3" Left="249.44898" Top="181.41726913" Width="196.53556" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="15" HAlign="haCenter" ParentFont="False" Text="ON-SITE REPORT"/>
      <TfrxPictureView Name="Picture1" Left="457.32313" Top="7.55906" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="793.70117551" Left="0" Top="294.80334" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo4" Left="434.64595" Top="7.55905999999999" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Job Number:"/>
      <TfrxMemoView Name="Memo5" Left="532.91373" Top="7.55905999999999" Width="166.29932" Height="22.67718" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="34.01577" Width="75.5906" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Order No:"/>
      <TfrxMemoView Name="Memo7" Left="79.37013" Top="34.01577" Width="351.49629" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
      <TfrxMemoView Name="Memo8" Left="434.64595" Top="34.01577" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date:"/>
      <TfrxMemoView Name="Memo9" Left="532.91373" Top="34.01577" Width="166.29932" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[Date]"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="60.47248" Width="75.5906" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Contact:"/>
      <TfrxMemoView Name="Memo17" Left="79.37013" Top="60.47248" Width="351.49629" Height="22.67718" ShowHint="False" StretchMode="smActualHeight" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
      <TfrxMemoView Name="Memo21" Left="434.64595" Top="60.47248" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Advice Note:"/>
      <TfrxMemoView Name="Memo22" Left="532.91373" Top="60.47248" Width="166.29932" Height="22.67718" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AdviceNoteNo&#34;]"/>
      <TfrxMemoView Name="Memo28" Left="0" Top="755.906" Width="272.12616" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Signed __________________________"/>
      <TfrxMemoView Name="Memo29" Left="279.68522" Top="755.906" Width="260.78757" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Name __________________________"/>
      <TfrxMemoView Name="Memo30" Left="548.03185" Top="755.906" Width="147.40167" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date ____________"/>
      <TfrxMemoView Name="Memo11" Left="0" Top="7.55905999999999" Width="75.5906" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Customer:"/>
      <TfrxMemoView Name="Memo13" Left="79.37013" Top="7.55905999999999" Width="351.49629" Height="22.67718" ShowHint="False" DataField="CustomerName" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxShapeView Name="Shape1" Left="0" Top="105.82684" Width="699.21305" Height="257.007874015748" ShowHint="False"/>
      <TfrxMemoView Name="Memo12" Left="7.55906" Top="113.3859" Width="128.50402" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Work carried out:"/>
      <TfrxMemoView Name="Memo14" Left="385.51206" Top="381.73253" Width="302.3624" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Signed _____________________________"/>
      <TfrxMemoView Name="Memo15" Left="0" Top="381.73253" Width="377.95278031" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Name of engineer ______________________________"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="423.30736" Width="699.21305" Height="302.36222913" ShowHint="False"/>
      <TfrxLineView Name="Line1" Left="0" Top="498.89796" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxLineView Name="Line2" Left="0" Top="555.59091" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxLineView Name="Line3" Left="0" Top="612.28386" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxLineView Name="Line4" Left="0" Top="668.97681" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxLineView Name="Line5" Left="188.9765" Top="423.30736" Width="0" Height="302.3624" ShowHint="False" Frame.Typ="1"/>
      <TfrxLineView Name="Line6" Left="359.05535" Top="423.30736" Width="0" Height="245.66945" ShowHint="False" Frame.Typ="1"/>
      <TfrxLineView Name="Line7" Left="529.1342" Top="423.30736" Width="0" Height="245.66945" ShowHint="False" Frame.Typ="1"/>
      <TfrxMemoView Name="Memo1" Left="207.87415" Top="438.42548" Width="132.28355" Height="45.35436" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="BETWEEN&#13;&#10;07:00 & 17:00"/>
      <TfrxMemoView Name="Memo16" Left="374.17347" Top="434.64595" Width="132.28355" Height="56.69295" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="BETWEEN&#13;&#10;17:00 &#38; 22:00 &#38;&#13;&#10;All day Saturday"/>
      <TfrxMemoView Name="Memo18" Left="548.03185" Top="434.64595" Width="132.28355" Height="56.69295" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="BETWEEN&#13;&#10;22:00 &#38; 07:00 &#38;&#13;&#10;All day Sunday"/>
      <TfrxMemoView Name="Memo19" Left="11.33859" Top="517.79561" Width="166.29932" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="TRAVELLING Time:"/>
      <TfrxMemoView Name="Memo20" Left="11.33859" Top="574.48856" Width="166.29932" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="ENGINEERING Time:"/>
      <TfrxMemoView Name="Memo23" Left="11.33859" Top="631.18151" Width="166.29932" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="CALL OUT:"/>
      <TfrxMemoView Name="Memo24" Left="11.33859" Top="687.87446" Width="166.29932" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Additional Costs:"/>
      <TfrxMemoView Name="Memo25" Left="238.11039" Top="631.18151" Width="71.81107" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="N/A"/>
      <TfrxMemoView Name="Memo26" Left="408.18924" Top="631.18151" Width="71.81107" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="N/A"/>
      <TfrxMemoView Name="Memo27" Left="578.26809" Top="631.18151" Width="71.81107" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="£100.00"/>
    </TfrxMasterData>
  </TfrxReportPage>
</TfrxReport>
����z�����Customer MessageKSELECT 
j.JobID, j.CustomerID, j.EquipmentID, j.DeliveryDays, j.DateTimeOfEntry, j.ContactID, j.JobTypeID, 
IF(cc.Fax IS NULL OR TRIM(cc.Fax) = "", c.DeliveryFax, cc.Fax) AS QuoteFax,
j.NumberOff, j.QuotedPrice, j.QuotedDelivery, j.CustomerOrderNo, j.AdviceNoteNo, j.FaultDetails, j.CustomerInstruction, j.SerialNo, j.DiscountRate, j.QuoteCurrencyCode, j.QuoteCurrencyRate,
e.Description, m.ManufacturerName, e.ModelNumber,
c.CustomerName, cc.Title, cc.FirstName, cc.Surname, cr.CurrencySymbol
FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN currencies cr ON cr.CurrencyCode = j.QuoteCurrencyCode
WHERE JobID = "[JOBID]"
<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39205.5345215972" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1B000000204E616D653D22746B6E4A4F424944222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="20" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="45.35436" Left="0" Top="18.89765" Width="680.3154"/>
    <TfrxMasterData Name="MasterData1" Height="396.85065" Left="0" Top="124.72449" Width="680.3154" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="68.03154" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="From:"/>
      <TfrxMemoView Name="Memo2" Left="75.5906" Top="0" Width="79.37013" Height="18.89765" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[strUserName]"/>
      <TfrxMemoView Name="Memo3" Left="0" Top="41.57483" Width="680.3154" Height="45.35436" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="[strMessage1]"/>
      <TfrxMemoView Name="Memo4" Left="0" Top="102.04731" Width="680.3154" Height="128.50402" StretchMode="smMaxHeight" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[strMessage2]"/>
    </TfrxMasterData>
  </TfrxReportPage>
</TfrxReport>
�<|R��Delivery Manifest�SELECT d.*, u.UserName, j.JobID, j.CustomerID, c.CustomerName, e.Description, j.NumberOff,
c.DeliveryAddr1, c.DeliveryAddr2, c.DeliveryAddr3, c.DeliveryAddr4, c.DeliveryAddr5, c.DeliveryPostCode,
cc.Title, cc.FirstName, cc.Surname, cc.Tel, fo.FinalOutcome
FROM delivery_manifests d
INNER JOIN users u ON u.UserID = d.CreatedByID
INNER JOIN jobs j ON j.ManifestID = d.ManifestID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON j.ContactID = cc.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
INNER JOIN final_outcomes fo ON j.FinalOutcomeID = fo.FinalOutcomeID
WHERE d.ManifestID = [MANIFESTID]
ORDER BY j.JobID
ZSELECT d.*, u.UserName, j.JobID, j.CustomerID, c.CustomerName, e.Description, j.NumberOff,
j.CustomerOrderNo, j.AdviceNoteNo, cc.Title, cc.FirstName, cc.Surname, m.ManufacturerName, 
e.ModelNumber, j.SerialNo
FROM delivery_manifests d
INNER JOIN users u ON u.UserID = d.CreatedByID
INNER JOIN jobs j ON j.ManifestID = d.ManifestID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
INNER JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
WHERE j.JobID = [JOBID]	2<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="41655.6932306713" ScriptLanguage="PascalScript" ScriptText.Text="// (SS,16/01/14) improved version from KontrolTek (code below has been added by KontrolTek)                                                                                                                                                                                                              &#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;       ca: string;&#13;&#10;       con: string;                                  &#13;&#10;begin&#13;&#10;       ca:='';                     &#13;&#10;       ca:=&#60;ds.&#34;DeliveryAddr1&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryAddr2&#34;&#62; &#60;&#62; '' then ca:=ca+', '+&#60;ds.&#34;DeliveryAddr2&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryAddr3&#34;&#62; &#60;&#62; '' then ca:=ca+', '+&#60;ds.&#34;DeliveryAddr3&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryAddr4&#34;&#62; &#60;&#62; '' then ca:=ca+', '+&#60;ds.&#34;DeliveryAddr4&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryAddr5&#34;&#62; &#60;&#62; '' then ca:=ca+', '+&#60;ds.&#34;DeliveryAddr5&#34;&#62;;&#13;&#10;       if &#60;ds.&#34;DeliveryPostcode&#34;&#62; &#60;&#62; '' then ca:=ca+', '+&#60;ds.&#34;DeliveryPostcode&#34;&#62;;  &#13;&#10;       mmCustAddr.Text:=ca;&#13;&#10;&#13;&#10;       con:='';                        &#13;&#10;       if &#60;ds.&#34;Title&#34;&#62; &#60;&#62; '' then con:=con+&#60;ds.&#34;Title&#34;&#62;+' ';&#13;&#10;       if &#60;ds.&#34;FirstName&#34;&#62; &#60;&#62; '' then con:=con+&#60;ds.&#34;FirstName&#34;&#62;+' ';&#13;&#10;       if &#60;ds.&#34;Surname&#34;&#62; &#60;&#62; '' then con:=con+&#60;ds.&#34;Surname&#34;&#62;+' ';&#13;&#10;       if &#60;ds.&#34;Tel&#34;&#62; &#60;&#62; '' then con:=con+'Tel: '+&#60;ds.&#34;Tel&#34;&#62;;                                                                                                                           &#13;&#10;       mmContact.Text:=con;  &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C22000000204E616D653D22746B6E4D414E49464553544944222056616C75653D22273236272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
    <TfrxPageHeader Name="PageHeader1" Height="136.06308" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="373.72449" Height="31.55906" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-24" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Delivery Manifest"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="45.35436" Width="506.45702" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="Please sign and print to confirm receipt of consignment"/>
      <TfrxMemoView Name="Memo2" Left="102.04731" Top="75.5906" Width="79.37013" Height="22.67718" ShowHint="False" DataField="ManifestID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;ManifestID&#34;]"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="75.5906" Width="495.11843" Height="22.67718" ShowHint="False" DataField="d.Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;d.Description&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="0" Top="75.5906" Width="102.04731" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Manifest ID:"/>
      <TfrxMemoView Name="Memo5" Left="109.60637" Top="102.04731" Width="188.9765" Height="22.67718" ShowHint="False" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;DateTimeCreated&#34;]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="102.04731" Width="109.60637" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Date Created:"/>
      <TfrxMemoView Name="Memo10" Left="325.03958" Top="102.04731" Width="98.26778" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Created By:"/>
      <TfrxMemoView Name="Memo11" Left="423.30736" Top="102.04731" Width="268.34663" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;UserName&#34;]"/>
      <TfrxLineView Name="Line1" Left="0" Top="136.06308" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4" Frame.Width="2"/>
      <TfrxPictureView Name="Picture2" Left="464.88219" Top="0" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="105.82684" Left="0" Top="215.43321" Width="699.21305" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo12" Left="0" Top="3.77952999999999" Width="94.48825" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo13" Left="102.04731" Top="3.77952999999999" Width="215.43321" Height="18.89765" ShowHint="False" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="Memo14" Left="321.26005" Top="3.77952999999999" Width="340.1577" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[&#60;ds.&#34;e.Description&#34;&#62;]"/>
      <TfrxShapeView Name="Shape1" Left="0" Top="64.25201" Width="253.22851" Height="34.01577" ShowHint="False"/>
      <TfrxShapeView Name="Shape2" Left="268.34663" Top="64.25201" Width="253.22851" Height="34.01577" ShowHint="False"/>
      <TfrxMemoView Name="Memo16" Left="0" Top="64.25201" Width="41.57483" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="SIGN"/>
      <TfrxMemoView Name="Memo17" Left="268.34663" Top="64.25201" Width="41.57483" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="PRINT"/>
      <TfrxShapeView Name="Shape3" Left="536.69326" Top="64.25201" Width="162.51979" Height="34.01577" ShowHint="False"/>
      <TfrxMemoView Name="Memo18" Left="536.69326" Top="64.25201" Width="41.57483" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="DATE"/>
      <TfrxLineView Name="Line2" Left="0" Top="105.82684" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4" Frame.Width="2"/>
      <TfrxMemoView Name="dsNumberOff" Left="665.19728" Top="3.77952999999999" Width="34.01577" Height="18.89765" ShowHint="False" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;NumberOff&#34;]"/>
      <TfrxMemoView Name="mmCustAddr" Left="102.04731" Top="22.67718" Width="597.16574" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="mmCustAddr"/>
      <TfrxMemoView Name="mmContact" Left="102.04731" Top="41.57483" Width="291.02381" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="mmContact"/>
      <TfrxMemoView Name="dsFinalOutcome" Left="472.44125" Top="41.57483" Width="226.7718" Height="18.89765" ShowHint="False" DataField="FinalOutcome" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;FinalOutcome&#34;]"/>
      <TfrxMemoView Name="Memo15" Left="393.07112" Top="41.57483" Width="79.37013" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Outcome:"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="381.73253" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="168.30705" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="551.81138" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="Memo19" Left="173.85838" Top="0" Width="370.39394" Height="18.89765" ShowHint="False" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haCenter" ParentFont="False" Text="[strBranchName]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
4Delivery of Order No {CustomerOrderNo} (Job {JobID})�<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
Dear {Title} {FirstName} {Surname},
<br /><br />
<!-- {ExternalCourier} = True -->
Your tracking number is {TrackingNo}
Your order number  {CustomerOrderNo} will be delivered via {CourierName} on the next working day and you can track your parcel via {TrackingURL}. Consignment/Tracking No is {TrackingNo}.
<!---->
<!-- {ExternalCourier} != True -->
Your order number {CustomerOrderNo} will be delivered via a Kontroltek driver on the next working day.
<!---->
<br /><br />
Your order details:
<br/>
<table>
<tr><td>Company</td><td><b>{CustomerName}</b></td></tr>
<tr><td>Date</td><td><b>{strToday}</b></td></tr>
<tr><td>Your Order No</td><td><b>{CustomerOrderNo}</b></td></tr>
<tr><td>Your Advice Ref</td><td><b>{AdviceNoteNo}</b></td></tr>
<tr><td>Our Job Ref</td><td><b>{JobID}</b></td></tr>
<tr><td>Qty</td><td><b>{NumberOff}</b></td></tr>
<tr><td>Manufacturer</td><td><b>{ManufacturerName}</b></td></tr>
<tr><td>Model Number</td><td><b>{ModelNumber}</b></td></tr>
<tr><td>Description</td><td><b>{e.Description}</b></td></tr>
<tr><td>Serial No</td><td><b>{SerialNo}</b></td></tr>
</table>
<br />
{strEmailSignatureHTML}
</body>
</html>
	����k:GR���
Service Exchange FormaSELECT * FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN final_outcomes f ON f.FinalOutcomeID = j.FinalOutcomeID
WHERE JobID = "[JOBID]"�8<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40928.8490666667" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; '' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; '' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + ', '&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + ' '&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr1&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr2&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr3&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr4&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryAddr5&#34;&#62;, False, True);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;DeliveryPostcode&#34;&#62;, False, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D2264732200010C3C00000020446174615365743D226672784442446174617365745265706F72742220446174615365744E616D653D2264735265706F727453657474696E6773220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="215.9" PaperHeight="279.4" PaperSize="1" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="294.80316913" Left="0" Top="18.89765" Width="721.512277">
      <TfrxMemoView Name="Memo2" Left="75.59055118" Top="136.06299213" Width="566.9295" Height="120.94496" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetAddress]"/>
      <TfrxMemoView Name="Memo3" Left="0" Top="260.78739913" Width="721.89023" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="SERVICE EXCHANGE FORM"/>
      <TfrxPictureView Name="Picture1" Left="487.55937" Top="41.57483" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="661.41762551" Left="0" Top="374.17347" Width="721.512277" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo4" Left="0" Top="7.55905999999999" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Job Number:"/>
      <TfrxMemoView Name="Memo5" Left="113.3859" Top="7.55905999999999" Width="170.07885" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="30.23624" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Order Number:"/>
      <TfrxMemoView Name="Memo7" Left="113.3859" Top="30.23624" Width="302.3624" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
      <TfrxMemoView Name="Memo8" Left="0" Top="52.91342" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date:"/>
      <TfrxMemoView Name="Memo9" Left="113.3859" Top="52.91342" Width="170.07885" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[Date]"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="75.5906" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Contact:"/>
      <TfrxMemoView Name="Memo12" Left="0" Top="120.94496" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Description"/>
      <TfrxMemoView Name="Memo14" Left="0" Top="154.96073" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Description:"/>
      <TfrxMemoView Name="Memo16" Left="0" Top="177.63791" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Quantity:"/>
      <TfrxMemoView Name="Memo15" Left="113.3859" Top="154.96073" Width="495.11843" Height="18.89765" ShowHint="False" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Description&#34;]"/>
      <TfrxMemoView Name="Memo17" Left="113.3859" Top="75.5906" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
      <TfrxMemoView Name="Memo11" Left="113.3859" Top="177.63791" Width="495.11843" Height="18.89765" ShowHint="False" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;NumberOff&#34;]"/>
      <TfrxMemoView Name="Memo13" Left="0" Top="200.31509" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Manufacturer:"/>
      <TfrxMemoView Name="Memo18" Left="113.3859" Top="200.31509" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ManufacturerName&#34;]"/>
      <TfrxMemoView Name="Memo19" Left="0" Top="222.99227" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Model Number:"/>
      <TfrxMemoView Name="Memo20" Left="113.3859" Top="222.99227" Width="495.11843" Height="18.89765" ShowHint="False" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ModelNumber&#34;]"/>
      <TfrxMemoView Name="Memo21" Left="0" Top="245.66945" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Advice Note No:"/>
      <TfrxMemoView Name="Memo22" Left="113.3859" Top="245.66945" Width="495.11843" Height="18.89765" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AdviceNoteNo&#34;]"/>
      <TfrxMemoView Name="Memo23" Left="0" Top="268.34663" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Serial Number(s):"/>
      <TfrxMemoView Name="Memo24" Left="113.3859" Top="268.34663" Width="495.11843" Height="56.69291827" ShowHint="False" StretchMode="smMaxHeight" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SerialNo&#34;]"/>
      <TfrxMemoView Name="Memo25" Left="0" Top="332.59864" Width="521.57480315" Height="192.75590551" ShowHint="False" DataField="InvoiceText" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceText&#34;]"/>
      <TfrxMemoView Name="Memo27" Left="0" Top="544.25232" Width="192.75603" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Received In Good Condition:"/>
      <TfrxMemoView Name="Memo28" Left="0" Top="608.50433" Width="272.12616" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Signed _____________________________"/>
      <TfrxMemoView Name="Memo29" Left="279.68522" Top="608.50433" Width="264.5671" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Print ______________________________"/>
      <TfrxMemoView Name="Memo30" Left="551.81138" Top="608.50433" Width="162.51979" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date ______________"/>
      <TfrxMemoView Name="Memo26" Left="0" Top="574.48856" Width="200.31509" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Dynamic Date requested by Jim:"/>
      <TfrxMemoView Name="Memo31" Left="207.87415" Top="574.48856" Width="128.50402" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[Date + 7]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="18.89765" Left="0" Top="1096.0637" Width="721.512277">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="355.27582" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="['Branch: ' + &#60;strBranchName&#62;]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
�-FP�,�WIP Manager���SELECT JobID, JobClassID, c.CustomerName, DateTimeOfEntry, DateTimeGoAheadGiven, u1.Abbrev AS QuotedByEngineer, u2.Abbrev AS RepairedByEngineer,
e.Description, Location, f.RNRFlag, CustomerChasing, PartsRequiredToBeOrdered, HistoryLastUpdated, ct.CategoryName AS Category,
b1.BranchPrefix AS Branch, b2.BranchPrefix AS RepairBranch
FROM jobs j
LEFT JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN categories ct ON ct.CategoryID = e.CategoryID
LEFT JOIN final_outcomes f ON f.FinalOutcomeID = j.FinalOutcomeID
LEFT JOIN users u1 ON u1.UserID = j.QuotedByID
LEFT JOIN users u2 ON u2.UserID = j.RepairedByID
LEFT JOIN branches b1 ON b1.BranchID = j.BranchID
LEFT JOIN branches b2 ON b2.BranchID = j.RepairBranchID
WHERE WIP = TRUE AND (j.BranchID = 1 OR j.RepairBranchID = 1) AND JobTypeID = 1 AND ComStatusID = 8 ORDER BY JobID, DateTimeGoAheadGiven ASC, DateTimeOfEntry ASC
�(<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39286.7252453125" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="5" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="60.47248" Left="0" Top="18.89765" Width="737.00835">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="120.49598" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="WIP Manager"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="37.7953" Width="45.35436" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo2" Left="41.57483" Top="37.7953" Width="34.01577" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Class"/>
      <TfrxMemoView Name="Memo3" Left="71.81107" Top="37.7953" Width="154.96073" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo4" Left="230.55133" Top="37.7953" Width="49.13389" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Booked"/>
      <TfrxMemoView Name="Memo5" Left="283.46475" Top="37.7953" Width="56.69295" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="GoAhead"/>
      <TfrxMemoView Name="Memo10" Left="336.37817" Top="37.7953" Width="30.23624" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Q/E"/>
      <TfrxMemoView Name="Memo11" Left="370.39394" Top="37.7953" Width="30.23624" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="R/E"/>
      <TfrxMemoView Name="Memo12" Left="404.40971" Top="37.7953" Width="170.07885" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Item Description"/>
      <TfrxMemoView Name="Memo13" Left="578.26809" Top="37.7953" Width="30.23624" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Loc"/>
      <TfrxMemoView Name="Memo14" Left="668.97681" Top="37.7953" Width="68.03154" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Category"/>
      <TfrxMemoView Name="strReportSubtitle" Left="192.75603" Top="5.10235" Width="544.25232" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="5" HAlign="haRight" ParentFont="False" Text="[strReportSubtitle]"/>
      <TfrxMemoView Name="Memo15" Left="612.28386" Top="37.7953" Width="22.67718" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Brn"/>
      <TfrxMemoView Name="Memo16" Left="638.74057" Top="37.7953" Width="30.23624" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="RBrn"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="139.84261" Width="737.00835" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="47.62204724" Height="15.11812" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dsJobClassID" Left="52.91342" Top="0" Width="18.14173228" Height="15.11812" DataField="JobClassID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobClassID&#34;]"/>
      <TfrxMemoView Name="dsCustomerName" Left="71.81107" Top="0" Width="155.71653299" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="dsDateTimeOfEntry" Left="230.55133" Top="0" Width="49.13385827" Height="15.11812" DataField="DateTimeOfEntry" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeOfEntry&#34;]"/>
      <TfrxMemoView Name="dsDateTimeGoAheadGiven" Left="283.46475" Top="0" Width="49.13385827" Height="15.11812" DataField="DateTimeGoAheadGiven" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeGoAheadGiven&#34;]"/>
      <TfrxMemoView Name="dsQuotedByEngineer" Left="336.37817" Top="0" Width="31.7480315" Height="15.11812" DataField="QuotedByEngineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;QuotedByEngineer&#34;]"/>
      <TfrxMemoView Name="dsRepairedByEngineer" Left="370.39394" Top="0" Width="31.7480315" Height="15.11812" DataField="RepairedByEngineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;RepairedByEngineer&#34;]"/>
      <TfrxMemoView Name="dsDescription" Left="404.40971" Top="0" Width="167.43307087" Height="15.11812" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;Description&#34;]"/>
      <TfrxMemoView Name="dsLocation" Left="578.26809" Top="0" Width="26.45669291" Height="15.11812" DataField="Location" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;Location&#34;]"/>
      <TfrxMemoView Name="dsCategory" Left="668.97681" Top="0" Width="72.1889715" Height="15.11812" DataField="Category" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;Category&#34;]"/>
      <TfrxMemoView Name="dsBranch" Left="612.28386" Top="0" Width="26.45671" Height="15.11811024" DataField="Branch" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;Branch&#34;]"/>
      <TfrxMemoView Name="dsRepairBranch" Left="638.74057" Top="0" Width="26.45671" Height="15.11812" DataField="RepairBranch" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;RepairBranch&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="215.43321" Width="737.00835">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="126.73222" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strBranchName" Left="128.50402" Top="0" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[strBranchName]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
tSQL is built on the fly by WIP Manager and passed here. SQL Select 1 has been entered here for design/test purposes.��i(�N�q�n�R�,�Invoice Batch Summary!# (SS,21/2/12) added JobType, and some changes to the report, no longer showing separate figures for delivery

(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, InvoiceNo, 'S' AS InvoiceType, CustomerOrderNo, jt.JobType AS JobType, 
InvoiceNet * AccountsCurrencyRate AS InvoiceNet, j.VATRate, 'N' AS Recharge, 'N' AS NominalType, j.SalesNominalCode AS NominalCode, InvoicePrice * AccountsCurrencyRate AS NominalNet
FROM jobs j
LEFT JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN branches b ON b.BranchID = j.BranchID
LEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID
WHERE InvoiceBatchID = [INVOICEBATCHID])

UNION ALL

(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, RechargeInvoiceNo, 'S' AS InvoiceType, CustomerOrderNo, jt.JobType AS JobType, 
RechargeInvoiceNet * RechargeAccountsCurrencyRate AS InvoiceNet, RechargeVATRate AS VATRate, 'Y' AS Recharge, 'N' AS NominalType, j.RechargeSalesNominalCode AS NominalCode, RechargeInvoiceNet * RechargeAccountsCurrencyRate AS NominalNet
FROM jobs j
LEFT JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN branches b ON b.BranchID = j.RepairBranchID
LEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID
WHERE InvoiceBatchID = [INVOICEBATCHID] AND RechargeInvoiceNo IS NOT NULL)

UNION ALL

(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, jt.JobType AS JobType, 
RechargeInvoiceNo, 'P' AS InvoiceType, CustomerOrderNo, RechargeInvoiceNet * RechargeAccountsCurrencyRate AS InvoiceNet, RechargeVATRate AS VATRate, 'Y' AS Recharge, 'N' AS NominalType, j.RechargePurchaseNominalCode AS NominalCode, RechargeInvoiceNet * RechargeAccountsCurrencyRate AS NominalNet
FROM jobs j
LEFT JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN branches b ON b.BranchID = j.RepairBranchID
LEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID
WHERE InvoiceBatchID = [INVOICEBATCHID] AND RechargeInvoiceNo IS NOT NULL)

ORDER BY InvoiceType DESC, Recharge, BranchID, InvoiceNo, NominalType DESCf8<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40960.6487043056" ScriptLanguage="PascalScript" ScriptText.Text="function GetAccountNo: String;                                                                  &#13;&#10;begin          &#13;&#10;  if &#60;ds.&#34;Recharge&#34;&#62; = 'N' then&#13;&#10;    Result := &#60;ds.&#34;AccountNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;BranchName&#34;&#62;;                         &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDetails: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;Recharge&#34;&#62; = 'N' then&#13;&#10;    Result := &#60;ds.&#34;CustomerOrderNo&#34;&#62;      &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;JobID&#34;&#62;;                    &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C25000000204E616D653D22746B6E494E564F49434542415443484944222056616C75653D222735272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="37.7953" Left="0" ParentFont="False" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="214.98423" Height="24" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Invoice Batch Summary"/>
      <TfrxMemoView Name="Memo15" Left="396.85065" Top="0" Width="301.91342" Height="24" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Times New Roman" Font.Style="5" HAlign="haRight" ParentFont="False" Text="['Invoice Batch ID: ' + IntToStr(&#60;tknINVOICEBATCHID&#62;)]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="15.11812" Left="0" ParentFont="False" Top="257.00804" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" Stretched="True"/>
    <TfrxPageFooter Name="PageFooter1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="22.67718" Left="0" ParentFont="False" Top="438.42548" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="551.81138" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="75.5906" Left="0" ParentFont="False" Top="117.16543" Width="699.21305" Condition="&#60;ds.&#34;Recharge&#34;&#62;+&#60;ds.&#34;InvoiceType&#34;&#62;">
      <TfrxMemoView Name="Memo1" Left="0" Top="15.11812" Width="377.953" Height="24.18897638" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="[IIF(&#60;ds.&#34;Recharge&#34;&#62;='Y', IIF(&#60;ds.&#34;InvoiceType&#34;&#62;='S','Recharge Sales Invoices', 'Recharge Purchase Invoices'), 'Sales Invoices')]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="45.35436" Width="75.5906" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="A/C"/>
      <TfrxMemoView Name="Memo2" Left="83.14966" Top="45.35436" Width="56.69295" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Date"/>
      <TfrxMemoView Name="Memo3" Left="147.40167" Top="45.35436" Width="64.25201" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Invoice No"/>
      <TfrxMemoView Name="Memo4" Left="219.21274" Top="45.35436" Width="45.35436" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo5" Left="272.12616" Top="45.35436" Width="105.82684" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo11" Left="385.51206" Top="45.35436" Width="71.81107" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Order No"/>
      <TfrxMemoView Name="Memo12" Left="464.88219" Top="45.35436" Width="75.5906" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Net"/>
      <TfrxMemoView Name="Memo14" Left="548.03185" Top="45.35436" Width="71.81107" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="VAT"/>
      <TfrxMemoView Name="Memo17" Left="627.40198" Top="45.35436" Width="71.81107" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Total"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="18.89765" Left="0" Top="215.43321" Width="699.21305" Condition="&#60;ds.&#34;BranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;)">
      <TfrxMemoView Name="dsAccountNo" Left="0" Top="0" Width="75.5906" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[GetAccountNo]"/>
      <TfrxMemoView Name="dsInvoiceDate" Left="83.14966" Top="0" Width="56.69295" Height="15.11812" ShowHint="False" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;]"/>
      <TfrxMemoView Name="dsInvoiceNo" Left="147.40167" Top="0" Width="64.25201" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[&#60;ds.&#34;BranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;)]"/>
      <TfrxMemoView Name="dsCustomerOrderNo" Left="385.51206" Top="0" Width="75.5906" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[GetDetails]"/>
      <TfrxMemoView Name="dsInvoiceNet" Left="461.10266" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" DataField="InvoiceNet" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[ds.&#34;InvoiceNet&#34;]"/>
      <TfrxMemoView Name="Memo16" Left="551.81138" Top="0" Width="68.03154" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100]"/>
      <TfrxMemoView Name="Memo23" Left="219.21274" Top="0" Width="45.35436" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo13" Left="272.12616" Top="0" Width="105.82684" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;JobType&#34;]"/>
      <TfrxMemoView Name="Memo18" Left="631.18151" Top="0" Width="68.03154" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1)]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="11.33859" Left="0" Top="294.80334" Width="699.21305"/>
    <TfrxGroupFooter Name="GroupFooter2" Height="49.13389" Left="0" Top="328.81911" Width="699.21305">
      <TfrxMemoView Name="Memo20" Left="461.10266" Top="11.33859" Width="79.37013" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;InvoiceNet&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo21" Left="548.03185" Top="11.33859" Width="71.81107" Height="15.11811024" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(Round(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62;) / 100)]"/>
      <TfrxMemoView Name="Memo22" Left="0" Top="11.33859" Width="264.5671" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="['Totals for ' + IIF(&#60;ds.&#34;Recharge&#34;&#62;='Y', IIF(&#60;ds.&#34;InvoiceType&#34;&#62;='S','Recharge Sales Invoices', 'Recharge Purchase Invoices'), 'Sales Invoices')]"/>
      <TfrxMemoView Name="Memo10" Left="272.12616" Top="11.33859" Width="109.60637" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="No. of Invoices: [COUNT(MasterData1)]"/>
      <TfrxLineView Name="Line1" Left="0" Top="0" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo19" Left="627.40198" Top="11.33859" Width="71.81107" Height="15.11811024" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(Round(&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1) * 100) / 100)]"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�-<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39756.183303669" ScriptLanguage="PascalScript" ScriptText.Text="function GetAccountNo: String;                                                                  &#13;&#10;begin          &#13;&#10;  if &#60;ds.&#34;Recharge&#34;&#62; = 'N' then&#13;&#10;    Result := &#60;ds.&#34;AccountNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;BranchName&#34;&#62;;                         &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDetails: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;Recharge&#34;&#62; = 'N' then&#13;&#10;    Result := &#60;ds.&#34;CustomerOrderNo&#34;&#62;      &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;JobID&#34;&#62;;                    &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E494E564F49434542415443484944222056616C75653D2227333031313727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="37.7953" Left="0" ParentFont="False" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="214.98423" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Invoice Batch Summary"/>
      <TfrxMemoView Name="Memo15" Left="396.85065" Top="0" Width="301.91342" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Times New Roman" Font.Style="5" HAlign="haRight" ParentFont="False" Text="['Invoice Batch ID: ' + IntToStr(&#60;tknINVOICEBATCHID&#62;)]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="15.11812" Left="0" ParentFont="False" Top="257.00804" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo17" Left="430.86642" Top="0" Width="79.37013" Height="15.11812" StretchMode="smActualHeight" DataField="NominalCode" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;NominalCode&#34;]"/>
      <TfrxMemoView Name="Memo18" Left="514.01608" Top="0" Width="60.47248" Height="15.11812" DataField="NominalNet" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;NominalNet&#34;]"/>
      <TfrxMemoView Name="Memo19" Left="362.83488" Top="0" Width="64.25201" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Nominal"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="22.67718" Left="0" ParentFont="False" Top="366.61441" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="551.81138" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="75.5906" Left="0" ParentFont="False" Top="117.16543" Width="699.21305" Condition="&#60;ds.&#34;Recharge&#34;&#62;+&#60;ds.&#34;InvoiceType&#34;&#62;">
      <TfrxMemoView Name="Memo1" Left="0" Top="15.11812" Width="377.953" Height="24.18897638" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="[IIF(&#60;ds.&#34;Recharge&#34;&#62;='Y', IIF(&#60;ds.&#34;InvoiceType&#34;&#62;='S','Recharge Sales Invoices', 'Recharge Purchase Invoices'), 'Sales Invoices')]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="45.35436" Width="75.5906" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="A/C"/>
      <TfrxMemoView Name="Memo2" Left="83.14966" Top="45.35436" Width="56.69295" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Date"/>
      <TfrxMemoView Name="Memo3" Left="147.40167" Top="45.35436" Width="64.25201" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Ref"/>
      <TfrxMemoView Name="Memo4" Left="219.21274" Top="45.35436" Width="64.25201" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Ex Ref"/>
      <TfrxMemoView Name="Memo5" Left="291.02381" Top="45.35436" Width="64.25201" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Dept"/>
      <TfrxMemoView Name="Memo10" Left="362.83488" Top="45.35436" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Project Ref"/>
      <TfrxMemoView Name="Memo11" Left="430.86642" Top="45.35436" Width="75.5906" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Details"/>
      <TfrxMemoView Name="Memo12" Left="514.01608" Top="45.35436" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Net"/>
      <TfrxMemoView Name="Memo13" Left="582.04762" Top="45.35436" Width="52.91342" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="T/C"/>
      <TfrxMemoView Name="Memo14" Left="642.5201" Top="45.35436" Width="56.69295" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="VAT"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="18.89765" Left="0" Top="215.43321" Width="699.21305" Condition="&#60;ds.&#34;BranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;)">
      <TfrxMemoView Name="dsAccountNo" Left="0" Top="0" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[GetAccountNo]"/>
      <TfrxMemoView Name="dsInvoiceDate" Left="83.14966" Top="0" Width="56.69295" Height="15.11812" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;]"/>
      <TfrxMemoView Name="dsInvoiceNo" Left="147.40167" Top="0" Width="64.25201" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[&#60;ds.&#34;BranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;)]"/>
      <TfrxMemoView Name="dsCustomerOrderNo" Left="430.86642" Top="0" Width="79.37013" Height="18.89765" StretchMode="smActualHeight" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[GetDetails]"/>
      <TfrxMemoView Name="dsInvoiceNet" Left="514.01608" Top="0" Width="60.47248" Height="18.89765" DataField="InvoiceNet" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[ds.&#34;InvoiceNet&#34;]"/>
      <TfrxMemoView Name="Memo16" Left="638.74057" Top="0" Width="60.47248" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="11.33859" Left="0" Top="294.80334" Width="699.21305">
      <TfrxLineView Name="Line1" Left="0" Top="3.77953" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�����IJ\�zr�,�Inv - Credit Note�SELECT i.*, j.*,
c.CustomerName, c.InvoiceCustomerName, c.InvoiceAddr1, c.InvoiceAddr2, c.InvoiceAddr3, c.InvoiceAddr4, c.InvoiceAddr5, c.InvoicePostcode, c.InvoiceTel, c.InvoiceFax, c.AccountNo, c.VATIDNumber,
cc.Title, cc.FirstName, cc.Surname, cc.Tel, cc.TelExtension,
e.ModelNumber, e.Description, m.ManufacturerName,
bc.BranchPrefix AS ComBranchPrefix, bc.CompanyName AS ComCompanyName, bc.Address1 AS ComAddress1, bc.Address2 AS ComAddress2, bc.Address3 AS ComAddress3, bc.Address4 AS ComAddress4, bc.Address5 AS ComAddress5, bc.Postcode AS ComPostcode, bc.Tel AS ComTel, bc.Fax AS ComFax, bc.VATNo AS ComVATNo,
br.BranchPrefix AS RepBranchPrefix, br.CompanyName AS RepCompanyName, br.Address1 AS RepAddress1, br.Address2 AS RepAddress2, br.Address3 AS RepAddress3, br.Address4 AS RepAddress4, br.Address5 AS RepAddress5, br.Postcode AS RepPostcode, br.Tel AS RepTel, br.Fax AS RepFax, br.VATNo AS RepVATNo,
ci.CurrencySymbol AS InvoiceCurrencySymbol, ci.CurrencyName AS InvoiceCurrencyName,
ca.CurrencySymbol AS AccountsCurrencySymbol, ca.CurrencyName AS AccountsCurrencyName,
cr.CurrencySymbol AS RechargeCurrencySymbol, cr.CurrencyName AS RechargeCurrencyName,
cra.CurrencySymbol AS RechargeAccountsCurrencySymbol, cra.CurrencyName AS RechargeAccountsCurrencyName
FROM invoice_print_list i
INNER JOIN jobs j ON j.JobID = i.IPL_JobID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
INNER JOIN branches bc ON bc.BranchID = j.BranchID
INNER JOIN branches br ON br.BranchID = j.RepairBranchID
LEFT JOIN currencies ci ON ci.CurrencyCode = j.InvoiceCurrencyCode
LEFT JOIN currencies ca ON ca.CurrencyCode = j.AccountsCurrencyCode
LEFT JOIN currencies cr ON cr.CurrencyCode = j.RechargeCurrencyCode
LEFT JOIN currencies cra ON cra.CurrencyCode = j.RechargeAccountsCurrencyCode|�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39619.6611051157" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; '' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; '' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + ', '&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + ' '&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then // if it's a recharge invoice                                                                 &#13;&#10;  begin&#13;&#10;    // commercial branch address                                                                                           &#13;&#10;    Result := AddField('', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, 'Accounts Payable', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);      &#13;&#10;  end          &#13;&#10;  else&#13;&#10;  begin&#13;&#10;    // customer's address&#13;&#10;    if Trim(&#60;ds.&#34;InvoiceCustomerName&#34;&#62;) = '' then                                        &#13;&#10;      Result := AddField('', &#60;ds.&#34;CustomerName&#34;&#62;, False, True)&#13;&#10;    else&#13;&#10;      Result := AddField('', &#60;ds.&#34;InvoiceCustomerName&#34;&#62;, False, True);  &#13;&#10;    Result := AddField('', &#60;ds.&#34;CustomerName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, 'Accounts Payable', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoicePostcode&#34;&#62;, False, True);&#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetBranchAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;  begin              &#13;&#10;    Result := AddField('', &#60;ds.&#34;RepCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepTel&#34;&#62; &#60;&#62; '' then                                            &#13;&#10;      Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;RepTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepFax&#34;&#62; &#60;&#62; '' then                                                 &#13;&#10;    Result := AddField(Result, 'Fax: ' + &#60;ds.&#34;RepFax&#34;&#62;, False, True);&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;    Result := AddField('', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComTel&#34;&#62; &#60;&#62; '' then                                            &#13;&#10;      Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;ComTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComFax&#34;&#62; &#60;&#62; '' then                                                 &#13;&#10;    Result := AddField(Result, 'Fax: ' + &#60;ds.&#34;ComFax&#34;&#62;, False, True);      &#13;&#10;  end;            &#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATRegNo: String;      &#13;&#10;begin&#13;&#10;  if IsRecharge then                &#13;&#10;    Result := &#60;ds.&#34;RepVATNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;ComVATNo&#34;&#62;;                   &#13;&#10;end;          &#13;&#10;    &#13;&#10;function IsCustomerCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'C';                                                                  &#13;&#10;end;  &#13;&#10;&#13;&#10;function IsCustomerAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'A';    &#13;&#10;end;          &#13;&#10;&#13;&#10;function IsRechargeCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'R';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRechargeAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'RA';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRecharge: Boolean;&#13;&#10;begin&#13;&#10;  Result := IsRechargeCopy or IsRechargeAccountsCopy;                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetInvoiceTitle: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;CreditNote&#34;&#62; then&#13;&#10;    Result := 'CREDIT NOTE'&#13;&#10;  else&#13;&#10;    if IsRecharge then&#13;&#10;      Result := 'RECHARGE INVOICE'&#13;&#10;    else                      &#13;&#10;      if &#60;ds.&#34;InvoiceNo&#34;&#62; &#62; 0 then&#13;&#10;        Result := 'INVOICE'&#13;&#10;      else         &#13;&#10;        Result := 'ZERO INVOICE';&#13;&#10;&#13;&#10;  if IsRecharge then&#13;&#10;    Result := Result + '  ' + &#60;ds.&#34;RepBranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;RechargeInvoiceNo&#34;&#62;)  &#13;&#10;  else&#13;&#10;    Result := Result + '  ' + &#60;ds.&#34;ComBranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;);                 &#13;&#10;end;&#13;&#10;&#13;&#10;function IsGBPCurrency: Boolean;&#13;&#10;begin&#13;&#10;  Result := GetCurrencyCode = 'GBP';                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetCurrencyCode: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then                                &#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyCode&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyCode&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Code undetermined');                                                                                     &#13;&#10;end;          &#13;&#10;  &#13;&#10;function GetCurrencyRate: Double;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyRate&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyRate&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Rate undetermined');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencySymbol: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencySymbol&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencySymbol&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Symbol undetermined');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencyName: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyName&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyName&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Name undetermined');      &#13;&#10;end;    &#13;&#10;    &#13;&#10;function AsCurrency(const AValue: Double): String;&#13;&#10;begin&#13;&#10;  Result := GetCurrencySymbol + FormatFloat('#0.00', GetCurrencyRate * AValue);                                                                        &#13;&#10;end;&#13;&#10;&#13;&#10;function IsDiscount: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0;                                   &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscount: Double;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;  begin&#13;&#10;    // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field                                                                                                                                                                                                                                                                                      &#13;&#10;    if &#60;ds.&#34;DiscountRate&#34;&#62; = -100 then&#13;&#10;      Result := 0&#13;&#10;    else                      &#13;&#10;      Result := &#60;ds.&#34;InvoicePrice&#34;&#62; * (100/(100 + &#60;ds.&#34;DiscountRate&#34;&#62;));&#13;&#10;  end                     &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;InvoicePrice&#34;&#62;;    &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscount: Double;&#13;&#10;begin&#13;&#10;  // done this way to ensure there's no rounding error of 1p in the printout&#13;&#10;  Result := GetInvoicePriceIncDiscount - &#60;ds.&#34;InvoicePrice&#34;&#62;                                         &#13;&#10;end;&#13;&#10;&#13;&#10;function GetQuotedPriceAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;QuotedPrice&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetInvoicePriceIncDiscount);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetDiscount)    &#13;&#10;  else&#13;&#10;    Result := '';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetPriceIfDiscountAsCurrency: String;  &#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoicePrice&#34;&#62;)                   &#13;&#10;  else&#13;&#10;    Result := '';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDeliveryAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;InvoiceDelivery&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62;)      &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62;);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;RechargeInvoiceNet&#34;&#62; / 100)                       &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetTotalAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then    &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1))&#13;&#10;  else&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1));                         &#13;&#10;end;  &#13;&#10;&#13;&#10;function GetExchangeRateMessage: String;&#13;&#10;begin&#13;&#10;  if IsGBPCurrency then&#13;&#10;    Result := ''&#13;&#10;  else&#13;&#10;  begin              &#13;&#10;    Result := 'This invoice was generated using the exchange rate ' + FormatFloat('#0.0000', GetCurrencyRate) + ' which was set at the time of ';&#13;&#10;    if IsRecharge then&#13;&#10;      Result := Result + 'invoicing.'&#13;&#10;    else&#13;&#10;      Result := Result + 'quotation.';                                                                       &#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetLabel: String;&#13;&#10;var&#13;&#10;  LLabel: String; // LLabel used because Result := Result + .. causes error                                                                                                                                                                                    &#13;&#10;begin&#13;&#10;  if IsCustomerAccountsCopy or IsRechargeAccountsCopy then&#13;&#10;    LLabel := 'Accounts Copy'                        &#13;&#10;  else&#13;&#10;    LLabel := '';&#13;&#10;    &#13;&#10;  if &#60;ds.&#34;IPL_CopyNo&#34;&#62; &#62; 1 then&#13;&#10;    LLabel := LLabel + IIf(LLabel = '', 'Copy', '') + ' ' + IntToStr(&#60;ds.&#34;IPL_CopyNo&#34;&#62;);&#13;&#10;&#13;&#10;  Result := LLabel;                                                    &#13;&#10;end;&#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;                                                           &#13;&#10;begin&#13;&#10;  // hide certain values if recharge invoice                                                                                                   &#13;&#10;  LVisible := not IsRecharge;                                              &#13;&#10;  mInvoicePrice.Visible := LVisible;                                         &#13;&#10;  mDiscountRate.Visible := LVisible;                                                         &#13;&#10;  mDiscount.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscountTitle.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscount.Visible := LVisible;  &#13;&#10;  mDeliveryTitle.Visible := LVisible;  &#13;&#10;  mDelivery.Visible := LVisible;          &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="119.43307086" Left="0" Top="18.89765" Width="699.21305">
      <TfrxPictureView Name="Picture1" Left="366.61417323" Top="47.62204724" Width="332.5984252" Height="71.81102362"/>
      <TfrxMemoView Name="Memo2" Left="0" Top="7.55906" Width="188.9765" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Inv - Credit Note"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="914.64626" Left="0" Top="200.31509" Width="699.21305" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" StartNewPage="True">
      <TfrxMemoView Name="Memo3" Left="34.01577" Top="0" Width="321.26005" Height="147.40167" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetAddress]"/>
      <TfrxMemoView Name="Memo5" Left="0" Top="147.40159433" Width="699.21305" Height="27.5905585" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-24" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[GetInvoiceTitle]"/>
      <TfrxShapeView Name="Shape1" Left="0" Top="188.97658787" Width="699.21305" Height="86.92919"/>
      <TfrxMemoView Name="Memo6" Left="79.37013" Top="196.53564787" Width="120.94496" Height="18.89765" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;]"/>
      <TfrxMemoView Name="Memo7" Left="7.55906" Top="196.53564787" Width="64.25201" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Tax Point:"/>
      <TfrxMemoView Name="Memo8" Left="7.55906" Top="215.43329787" Width="64.25201" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Order No:"/>
      <TfrxMemoView Name="Memo9" Left="79.37013" Top="215.43329787" Width="306.14193" Height="18.89765" DataField="CustomerOrderNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="7.55906" Top="234.33094787" Width="64.25201" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Contact:"/>
      <TfrxMemoView Name="Memo11" Left="79.37013" Top="234.33094787" Width="306.14193" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
      <TfrxMemoView Name="Memo12" Left="419.52783" Top="196.53564787" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Job No:"/>
      <TfrxMemoView Name="Memo13" Left="514.01608" Top="196.53564787" Width="173.85838" Height="18.89765" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo14" Left="419.52783" Top="215.43329787" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT Reg No:"/>
      <TfrxMemoView Name="Memo15" Left="514.01608" Top="215.43329787" Width="173.85838" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetVATRegNo]"/>
      <TfrxMemoView Name="Memo16" Left="419.52783" Top="234.33094787" Width="86.92919" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Account Code:"/>
      <TfrxMemoView Name="Memo17" Left="419.52783" Top="253.22859787" Width="86.92919" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[IIF(&#60;ds.&#34;VATIDNumber&#34;&#62; = '', '', 'VAT ID No:')]"/>
      <TfrxMemoView Name="Memo18" Left="514.01608" Top="253.22859787" Width="173.85838" Height="18.89765" DataField="VATIDNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;VATIDNumber&#34;]"/>
      <TfrxMemoView Name="Memo19" Left="514.01608" Top="234.33094787" Width="173.85838" Height="18.89765" DataField="AccountNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AccountNo&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="298.58295787" Width="699.21305" Height="347.71676"/>
      <TfrxLineView Name="Line1" Left="0" Top="325.03966787" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line2" Left="582.04762" Top="298.58295787" Width="0" Height="347.71676" Frame.Typ="1"/>
      <TfrxMemoView Name="Memo20" Left="7.55906" Top="302.36248787" Width="113.3859" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Description"/>
      <TfrxMemoView Name="Memo21" Left="597.16574" Top="302.36248787" Width="94.48825" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Price"/>
      <TfrxMemoView Name="Memo22" Left="7.55906" Top="336.37825787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Description:"/>
      <TfrxMemoView Name="Memo23" Left="7.55906" Top="393.07120787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Quantity:"/>
      <TfrxMemoView Name="Memo24" Left="117.16543" Top="336.37825787" Width="461.10266" Height="18.89765" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Description&#34;]"/>
      <TfrxMemoView Name="Memo25" Left="117.16543" Top="393.07120787" Width="117.16543" Height="18.89765" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;NumberOff&#34;]"/>
      <TfrxMemoView Name="Memo26" Left="7.55906" Top="355.27590787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Manufacturer:"/>
      <TfrxMemoView Name="Memo27" Left="117.16543" Top="355.27590787" Width="461.10266" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ManufacturerName&#34;]"/>
      <TfrxMemoView Name="Memo28" Left="7.55906" Top="374.17355787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Model Number:"/>
      <TfrxMemoView Name="Memo29" Left="117.16543" Top="374.17355787" Width="461.10266" Height="18.89765" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ModelNumber&#34;]"/>
      <TfrxMemoView Name="Memo30" Left="7.55906" Top="430.86650787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Advice Note No:"/>
      <TfrxMemoView Name="Memo31" Left="117.16543" Top="430.86650787" Width="449.76407" Height="18.89765" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AdviceNoteNo&#34;]"/>
      <TfrxMemoView Name="Memo32" Left="7.55906" Top="449.76415787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Serial Number(s):"/>
      <TfrxMemoView Name="Memo33" Left="117.16543" Top="449.76415787" Width="449.76407" Height="56.69291827" StretchMode="smMaxHeight" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SerialNo&#34;]"/>
      <TfrxMemoView Name="Memo34" Left="7.55906" Top="506.45710787" Width="487.55903315" Height="68.03141551" DataField="InvoiceText" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceText&#34;]"/>
      <TfrxMemoView Name="Memo37" Left="7.55906" Top="411.96885787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Price Each:"/>
      <TfrxMemoView Name="Memo38" Left="117.16543" Top="411.96885787" Width="117.16543" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetQuotedPriceAsCurrency]"/>
      <TfrxMemoView Name="mDiscountRate" Left="7.55906" Top="582.04770787" Width="563.14963315" Height="18.89752551" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, 'Less Discount at ' + FloatToStr(-&#60;ds.&#34;DiscountRate&#34;&#62;) + '%', '')]"/>
      <TfrxMemoView Name="mDiscount" Left="585.82715" Top="582.04770787" Width="105.82684" Height="18.89763291" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetDiscountAsCurrency]"/>
      <TfrxMemoView Name="mNetPriceIfDiscountTitle" Left="7.55906" Top="600.94535787" Width="563.14988213" Height="18.8976378" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, 'Net Price', '')]"/>
      <TfrxMemoView Name="mNetPriceIfDiscount" Left="585.82715" Top="600.94535787" Width="105.82684" Height="18.89763291" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetNetPriceIfDiscountAsCurrency]"/>
      <TfrxMemoView Name="mDeliveryTitle" Left="7.55906" Top="619.84300787" Width="241.88983213" Height="18.8976378" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Delivery"/>
      <TfrxMemoView Name="mDelivery" Left="585.82715" Top="619.84300787" Width="105.82684" Height="18.8976378" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetDeliveryAsCurrency]"/>
      <TfrxShapeView Name="Shape3" Left="0" Top="661.41783787" Width="699.21305" Height="86.92914118"/>
      <TfrxMemoView Name="Memo39" Left="7.55906" Top="668.97689787" Width="328.81911" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Payment terms strictly 30 days from date of invoice."/>
      <TfrxMemoView Name="Memo42" Left="7.55906" Top="687.87454787" Width="162.51979" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT Rate:"/>
      <TfrxMemoView Name="Memo46" Left="7.55906" Top="706.77219787" Width="328.81911" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="['All values shown are in ' + GetCurrencyName + '.']"/>
      <TfrxMemoView Name="Memo47" Left="173.85838" Top="687.87454787" Width="162.51979" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[FloatToStr(&#60;ds.&#34;VATRate&#34;&#62;) + '%']"/>
      <TfrxMemoView Name="Memo48" Left="7.55906" Top="725.66984787" Width="684.09493" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetExchangeRateMessage]"/>
      <TfrxMemoView Name="Memo49" Left="7.55906" Top="759.68561787" Width="684.09493" Height="30.23624" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="E &#38; OE Claims with regard to the above must be notified to us within 7 days of the date of invoice.&#13;&#10;Please note all contracts are made in accordance with our standard conditions of trading a copy of which is available on request."/>
      <TfrxMemoView Name="Memo50" Left="7.55906" Top="797.48091787" Width="684.09493" Height="41.57483" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="The debt shown on this invoice has been assigned to The Royal Bank of Scotland Commercial Services Limited and only they or their appointed agent can give a valid discharge. Until further notice, your remittance payable to The Royal Bank of Scotland Commercial Services Limited should be sent via us, as their duly appointed collection agent, to our address shown on this invoice."/>
      <TfrxMemoView Name="Memo52" Left="476.22078" Top="668.97689787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Invoice Net ="/>
      <TfrxMemoView Name="Memo53" Left="476.22078" Top="687.87454787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT ="/>
      <TfrxMemoView Name="Memo54" Left="476.22078" Top="706.77219787" Width="102.04731" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Total ="/>
      <TfrxMemoView Name="Memo55" Left="585.82715" Top="668.97689787" Width="105.82684" Height="18.89763291" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetNetAsCurrency]"/>
      <TfrxMemoView Name="Memo56" Left="585.82715" Top="687.87454787" Width="105.82684" Height="18.89763291" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetVATAsCurrency]"/>
      <TfrxMemoView Name="Memo57" Left="585.82715" Top="706.77219787" Width="105.82684" Height="18.89763291" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetTotalAsCurrency]"/>
      <TfrxMemoView Name="Memo51" Left="291.02381" Top="873.07151787" Width="404.40971" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[GetLabel]"/>
      <TfrxMemoView Name="Memo1" Left="491.3389" Top="0" Width="204.09462" Height="139.84261" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetBranchAddress]"/>
      <TfrxMemoView Name="mInvoicePrice" Left="585.82715" Top="336.37817" Width="105.82684" Height="18.89763291" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetInvoicePriceIncDiscountAsCurrency]"/>
    </TfrxMasterData>
  </TfrxReportPage>
</TfrxReport>
�H[��*��,�	Pick List�SELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, parts_distribution_lists.CreatedByID,
parts.PartDescription, parts.SupplierPartNo, parts.Location, jobs.QuotedByID, jobs.RepairedByID,
IF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,
IF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench
FROM parts_distribution_lines
INNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID
INNER JOIN parts ON parts.PartID = parts_distribution_lines.PartID
INNER JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID
LEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID 
LEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID 
WHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID]


I&<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40633.6313498958" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D222731272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="128.50402" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="82.70068" Height="24" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Pick List"/>
      <TfrxMemoView Name="dsDistributionListID" Left="124.72449" Top="37.7953" Width="79.37013" Height="18.89765" ShowHint="False" DataField="DistributionListID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;DistributionListID&#34;]"/>
      <TfrxMemoView Name="dsUserName" Left="37.7953" Top="64.25201" Width="136.06308" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;UserName&#34;]"/>
      <TfrxMemoView Name="strBranchName" Left="529.1342" Top="37.7953" Width="79.37013" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[strBranchName]"/>
      <TfrxMemoView Name="Memo2" Left="529.1342" Top="68.03154" Width="79.37013" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="102.04731" Width="52.91342" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Qty"/>
      <TfrxMemoView Name="Memo3" Left="60.47248" Top="102.04731" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Location"/>
      <TfrxMemoView Name="Memo4" Left="162.51979" Top="102.04731" Width="158.74026" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Supplier Part No"/>
      <TfrxMemoView Name="Memo5" Left="328.81911" Top="102.04731" Width="370.39394" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Part Description"/>
      <TfrxMemoView Name="Memo11" Left="0" Top="37.7953" Width="120.94496" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Distribution List ID:"/>
      <TfrxMemoView Name="Memo16" Left="264.5671" Top="64.25201" Width="94.48825" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Bench&#34;]"/>
      <TfrxMemoView Name="Memo17" Left="0" Top="64.25201" Width="30.23624" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="For:"/>
      <TfrxMemoView Name="Memo18" Left="211.65368" Top="64.25201" Width="49.13389" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Bench:"/>
      <TfrxMemoView Name="Memo19" Left="472.44125" Top="37.7953" Width="49.13389" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Branch:"/>
      <TfrxMemoView Name="Memo20" Left="211.65368" Top="37.7953" Width="86.92919" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Date Created:"/>
      <TfrxMemoView Name="dsDateTimeCreated" Left="302.3624" Top="37.7953" Width="143.62214" Height="18.89765" ShowHint="False" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeCreated&#34;]"/>
      <TfrxMemoView Name="Memo21" Left="472.44125" Top="68.03154" Width="49.13389" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Job ID:"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="207.87415" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="52.91342" Height="18.89765" ShowHint="False" DataField="Qty" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;Qty&#34;]"/>
      <TfrxMemoView Name="dsSupplierPartNo" Left="162.51979" Top="0" Width="158.74026" Height="18.89765" ShowHint="False" DataField="SupplierPartNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierPartNo&#34;]"/>
      <TfrxMemoView Name="dsLocation" Left="60.47248" Top="0" Width="94.48825" Height="18.89765" ShowHint="False" DataField="Location" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Location&#34;]"/>
      <TfrxMemoView Name="dsPartDescription" Left="328.81911" Top="0" Width="370.39394" Height="18.89765" ShowHint="False" DataField="PartDescription" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;PartDescription&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="291.02381" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
��n��M���5&��,�Distribution to Jobs List�SELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, 
material_order_lines.PartDescription, material_order_lines.SupplierPartNo, 
material_orders.OrderNo, suppliers.SupplierName, CONCAT("Order: ", material_orders.OrderNo) AS Location, 
IF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,
IF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench
FROM parts_distribution_lines
INNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID
INNER JOIN job_material ON job_material.JobMaterialID = parts_distribution_lines.JobMaterialID
INNER JOIN material_order_lines ON material_order_lines.OrderLineID = parts_distribution_lines.OrderLineID
INNER JOIN material_orders ON material_orders.OrderID = material_order_lines.OrderID
INNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID
INNER JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID
LEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID 
LEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID 
WHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID]

UNION ALL

SELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, 
parts.PartDescription, parts.SupplierPartNo, NULL AS OrderNo, suppliers.SupplierName, parts.Location, 
IF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,
IF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench
FROM parts_distribution_lines
INNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID
INNER JOIN parts ON parts.PartID = parts_distribution_lines.PartID 
INNER JOIN suppliers ON suppliers.SupplierID = parts.SupplierID
INNER JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID
LEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID 
LEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID 
WHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID]

ORDER BY Bench, UserName, JobID, OrderNo, JobMaterialID
�+<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40633.6490065278" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D22273430272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="102.04731" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="207.42517" Height="24" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Distribution to Jobs List"/>
      <TfrxMemoView Name="dsDistributionListID" Left="124.72449" Top="37.7953" Width="79.37013" Height="18.89765" ShowHint="False" DataField="DistributionListID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;DistributionListID&#34;]"/>
      <TfrxMemoView Name="strBranchName" Left="525.35467" Top="37.7953" Width="79.37013" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[strBranchName]"/>
      <TfrxMemoView Name="Memo6" Left="275.90569" Top="75.5906" Width="30.23624" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Qty"/>
      <TfrxMemoView Name="Memo3" Left="158.74026" Top="75.5906" Width="60.47248" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Bench"/>
      <TfrxMemoView Name="Memo4" Left="362.83488" Top="75.5906" Width="86.92919" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Supplier Part No"/>
      <TfrxMemoView Name="Memo5" Left="457.32313" Top="75.5906" Width="177.63791" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Part Description"/>
      <TfrxMemoView Name="Memo11" Left="0" Top="37.7953" Width="120.94496" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Distribution List ID:"/>
      <TfrxMemoView Name="Memo19" Left="472.44125" Top="37.7953" Width="49.13389" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Branch:"/>
      <TfrxMemoView Name="Memo20" Left="211.65368" Top="37.7953" Width="86.92919" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Date Created:"/>
      <TfrxMemoView Name="dsDateTimeCreated" Left="298.58287" Top="37.7953" Width="143.62214" Height="18.89765" ShowHint="False" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeCreated&#34;]"/>
      <TfrxMemoView Name="Memo12" Left="79.37013" Top="75.5906" Width="71.81107" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Engineer"/>
      <TfrxMemoView Name="Memo14" Left="226.7718" Top="75.5906" Width="41.57483" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo2" Left="642.5201" Top="75.5906" Width="56.69295" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Supplier"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="75.5906" Width="71.81107" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Location"/>
      <TfrxMemoView Name="Memo17" Left="313.70099" Top="75.5906" Width="41.57483" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Part ID"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="181.41744" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo1" Left="275.90569" Top="0" Width="30.23624" Height="18.89765" ShowHint="False" DataField="Qty" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;Qty&#34;]"/>
      <TfrxMemoView Name="dsSupplierPartNo" Left="362.83488" Top="0" Width="86.92919" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataField="SupplierPartNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierPartNo&#34;]"/>
      <TfrxMemoView Name="dsLocation" Left="158.74026" Top="0" Width="60.47248" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataField="Bench" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Bench&#34;]"/>
      <TfrxMemoView Name="dsPartDescription" Left="457.32313" Top="0" Width="177.63791" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataField="PartDescription" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;PartDescription&#34;]"/>
      <TfrxMemoView Name="Memo13" Left="79.37013" Top="0" Width="71.81107" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataField="UserName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;UserName&#34;]"/>
      <TfrxMemoView Name="Memo15" Left="226.7718" Top="0" Width="41.57483" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo16" Left="642.5201" Top="0" Width="56.69295" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" WordWrap="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="dsPartID" Left="0" Top="0" Width="71.81107" Height="18.89765" ShowHint="False" DataField="Location" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Location&#34;]"/>
      <TfrxMemoView Name="Memo18" Left="313.70099" Top="0" Width="41.57483" Height="18.89765" ShowHint="False" DataField="PartID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;PartID&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="264.5671" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
�M�ǰ'���,�Restocking List�SELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, material_order_lines.PartDescription, material_order_lines.SupplierPartNo, parts.Location, material_orders.OrderNo, suppliers.SupplierName, users.Bench, users.UserName
FROM parts_distribution_lines
INNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID
INNER JOIN parts ON parts.PartID = parts_distribution_lines.PartID
INNER JOIN material_order_lines ON material_order_lines.OrderLineID = parts_distribution_lines.OrderLineID
INNER JOIN material_orders ON material_orders.OrderID = material_order_lines.OrderID
INNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID
INNER JOIN users ON users.UserID = parts_distribution_lists.CreatedByID 
WHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID]
ORDER BY OrderNo, OrderLineID#$<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39703.4858308912" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D2227323927220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="102.04731" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="135.6141" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Restocking List"/>
      <TfrxMemoView Name="dsDistributionListID" Left="124.72449" Top="37.7953" Width="79.37013" Height="18.89765" DataField="DistributionListID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;DistributionListID&#34;]"/>
      <TfrxMemoView Name="strBranchName" Left="532.91373" Top="37.7953" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[strBranchName]"/>
      <TfrxMemoView Name="Memo6" Left="139.84261" Top="75.5906" Width="34.01577" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Qty"/>
      <TfrxMemoView Name="Memo3" Left="0" Top="75.5906" Width="75.5906" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Location"/>
      <TfrxMemoView Name="Memo4" Left="181.41744" Top="75.5906" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Supplier Part No"/>
      <TfrxMemoView Name="Memo5" Left="287.24428" Top="75.5906" Width="219.21274" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Part Description"/>
      <TfrxMemoView Name="Memo10" Left="638.74057" Top="75.5906" Width="56.69295" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Order No"/>
      <TfrxMemoView Name="Memo11" Left="0" Top="37.7953" Width="120.94496" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Distribution List ID:"/>
      <TfrxMemoView Name="Memo19" Left="476.22078" Top="37.7953" Width="52.91342" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Branch:"/>
      <TfrxMemoView Name="Memo20" Left="219.21274" Top="37.7953" Width="86.92919" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Date Created:"/>
      <TfrxMemoView Name="dsDateTimeCreated" Left="306.14193" Top="37.7953" Width="143.62214" Height="18.89765" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeCreated&#34;]"/>
      <TfrxMemoView Name="Memo14" Left="83.14966" Top="75.5906" Width="49.13389" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Part ID"/>
      <TfrxMemoView Name="Memo2" Left="514.01608" Top="75.5906" Width="117.16543" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Supplier"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="181.41744" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" Stretched="True">
      <TfrxMemoView Name="dsPartID" Left="638.74057" Top="0" Width="56.69295" Height="18.89765" DataField="OrderNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;OrderNo&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="139.84261" Top="0" Width="34.01577" Height="18.89765" DataField="Qty" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;Qty&#34;]"/>
      <TfrxMemoView Name="dsSupplierPartNo" Left="181.41744" Top="0" Width="102.04731" Height="18.89765" StretchMode="smActualHeight" DataField="SupplierPartNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierPartNo&#34;]"/>
      <TfrxMemoView Name="dsLocation" Left="0" Top="0" Width="75.5906" Height="18.89765" StretchMode="smActualHeight" DataField="Location" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Location&#34;]"/>
      <TfrxMemoView Name="dsPartDescription" Left="287.24428" Top="0" Width="219.21274" Height="18.89765" StretchMode="smActualHeight" DataField="PartDescription" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;PartDescription&#34;]"/>
      <TfrxMemoView Name="Memo15" Left="83.14966" Top="0" Width="49.13389" Height="18.89765" DataField="PartID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;PartID&#34;]"/>
      <TfrxMemoView Name="Memo16" Left="514.01608" Top="0" Width="117.16543" Height="18.89765" StretchMode="smActualHeight" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" WordWrap="False" Text="[ds.&#34;SupplierName&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="264.5671" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
�H�F�?R�,�Material Invoice ListSELECT material_orders.MaterialInvoiceListID,
       material_invoice_lists.DateTimeCreated,
       material_orders.OrderNo,
       suppliers.SupplierName,
       material_invoices.*,
       material_order_lines.NominalCode,
       material_payments.MaterialPaymentID,
       SUM(material_order_lines.UnitPrice * material_order_lines.QtyOrdered) AS NominalCodeTotal
FROM material_orders
INNER JOIN material_invoice_lists ON material_invoice_lists.MaterialInvoiceListID = material_orders.MaterialInvoiceListID
INNER JOIN material_invoices ON material_invoices.OrderID = material_orders.OrderID
INNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID
INNER JOIN material_order_lines ON material_order_lines.OrderID = material_orders.OrderID
LEFT JOIN material_payments ON material_payments.OrderID = material_orders.OrderID
WHERE material_orders.MaterialInvoiceListID = [MATERIALINVOICELISTID]
GROUP BY material_order_lines.NominalCode
ORDER BY OrderNo, MaterialInvoiceID, NominalCodeTotal DESC�:<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39759.109979919" ScriptLanguage="PascalScript" ScriptText.Text="var      &#13;&#10;  FPreviousMaterialInvoiceID: Integer;&#13;&#10;  FPreviousOrderID: Integer;                                                &#13;&#10;  FMaterialPaymentIDsPrinted: String;                           &#13;&#10;&#13;&#10;procedure frxReport1OnStartReport(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  FPreviousMaterialInvoiceID := 0;&#13;&#10;  FPreviousOrderID := 0;                           &#13;&#10;  FMaterialPaymentIDsPrinted := ',';                    &#13;&#10;end;  &#13;&#10;&#13;&#10;function GetNominalCode: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;UCode&#34;&#62; = '' then                                        &#13;&#10;    Result := &#60;ds.&#34;NominalCodeJobID&#34;&#62;&#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;UCode&#34;&#62;;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetPaymentRef: String;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;Ref1&#34;&#62;;      &#13;&#10;  if &#60;ds.&#34;Ref2&#34;&#62; &#60;&#62; '' then Result := Result + iif(Result = '', '', ', ') + &#60;ds.&#34;Ref2&#34;&#62;;&#13;&#10;  if &#60;ds.&#34;Ref3&#34;&#62; &#60;&#62; '' then Result := Result + iif(Result = '', '', ', ') + &#60;ds.&#34;Ref3&#34;&#62;;&#13;&#10;end;&#13;&#10;    &#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;&#13;&#10;  LPaymentID: String;                                                     &#13;&#10;begin&#13;&#10;{    &#13;&#10;  LVisible := FPreviousMaterialInvoiceID &#60;&#62; &#60;ds.&#34;MaterialInvoiceID&#34;&#62;;&#13;&#10;  // hide certain fields if same order no, allows more than payment to be listed neatly                                                                                                                                                                                                                 &#13;&#10;  mOrderNo.Visible := LVisible;&#13;&#10;  mSupplierName.Visible := LVisible;                                    &#13;&#10;  mInvoiceNo.Visible := LVisible;&#13;&#10;  mInvoiceDate.Visible := LVisible;          &#13;&#10;  mAmount.Visible := LVisible;  &#13;&#10;  mVAT.Visible := LVisible;  &#13;&#10;  mNominalCode.Visible := LVisible;    &#13;&#10;  FPreviousMaterialInvoiceID := &#60;ds.&#34;MaterialInvoiceID&#34;&#62;;  &#13;&#10;                                         &#13;&#10;  // make sure same payment is only printed once&#13;&#10;  // otherwise due to the recordset, when an order has more than one invoice, the payment will print as many times&#13;&#10;  // as there are invoices for the same order, and if there are two payments for the order then it prints two per invoice&#13;&#10;  if &#60;ds.&#34;OrderID&#34;&#62; &#60;&#62; FPreviousOrderID then&#13;&#10;  begin            &#13;&#10;    FPreviousOrderID := &#60;ds.&#34;OrderID&#34;&#62;;&#13;&#10;    FMaterialPaymentIDsPrinted := ',';                                &#13;&#10;  end;                  &#13;&#10;  LPaymentID := &#60;ds.&#34;MaterialPaymentID&#34;&#62;;&#13;&#10;    &#13;&#10;  LVisible := Pos(',' + LPaymentID + ',', FMaterialPaymentIDsPrinted) = 0;                                                                                                                                                                                                                                                                                                  &#13;&#10;  mPaymentType.Visible := LVisible;&#13;&#10;  mPaymentAmount.Visible := LVisible;&#13;&#10;  mPaymentRef.Visible := LVisible;                      &#13;&#10;    &#13;&#10;  if LPaymentID &#60;&#62; '' then FMaterialPaymentIDsPrinted := FMaterialPaymentIDsPrinted + LPaymentID + ',';&#13;&#10;  }      &#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." OnStartReport="frxReport1OnStartReport" PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D22273236272200010C2E000000204E616D653D22746B6E4D4154455249414C494E564F49434542415443484944222056616C75653D22273136272200010C2D000000204E616D653D22746B6E4D4154455249414C494E564F4943454C4953544944222056616C75653D2227353627220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" PrintIfEmpty="False" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="83.14966" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="286.7953" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Material Invoice List for Accounts"/>
      <TfrxMemoView Name="dsDistributionListID" Left="464.88219" Top="3.77953" Width="60.47248" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;MaterialInvoiceListID&#34;]"/>
      <TfrxMemoView Name="strBranchName" Left="597.16574" Top="3.77953" Width="94.48825" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[strBranchName]"/>
      <TfrxMemoView Name="Memo6" Left="487.55937" Top="60.47248" Width="71.81107" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Amount"/>
      <TfrxMemoView Name="Memo3" Left="79.37013" Top="60.47248" Width="211.65368" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Supplier Name"/>
      <TfrxMemoView Name="Memo5" Left="634.96104" Top="60.47248" Width="56.69295" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Payment"/>
      <TfrxMemoView Name="Memo11" Left="313.70099" Top="3.77953" Width="147.40167" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Material Invoice List ID:"/>
      <TfrxMemoView Name="Memo19" Left="544.25232" Top="3.77953" Width="49.13389" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Branch:"/>
      <TfrxMemoView Name="Memo20" Left="313.70099" Top="26.45671" Width="124.72449" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Date / Time Created:"/>
      <TfrxMemoView Name="dsDateTimeCreated" Left="464.88219" Top="26.45671" Width="132.28355" Height="18.89765" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;DateTimeCreated&#34;]"/>
      <TfrxMemoView Name="Memo12" Left="298.58287" Top="60.47248" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Invoice No"/>
      <TfrxMemoView Name="Memo14" Left="396.85065" Top="60.47248" Width="83.14966" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Invoice Date"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="60.47248" Width="68.03154" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Order No"/>
      <TfrxMemoView Name="Memo17" Left="570.70903" Top="60.47248" Width="56.69295" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="VAT"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="18.89764024" Left="0" Top="207.87415" Width="699.21305" OnAfterPrint="MasterData1OnAfterPrint" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo2" Left="396.85065" Top="0" Width="83.14966" Height="18.89764024" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%g" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;NominalCode&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="487.55937" Top="0" Width="71.81107" Height="18.89764024" DataField="NominalCodeTotal" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;NominalCodeTotal&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="298.58287" Top="0" Width="90.70872" Height="18.89764024" StretchMode="smActualHeight" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Nominal Code"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="287.24428" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="551.81101386" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="22.67717024" Left="0" Top="162.51979" Width="699.21305" Condition="ds.&#34;MaterialInvoiceID&#34;">
      <TfrxMemoView Name="mPaymentType" Left="634.96104" Top="3.77952999999999" Width="56.69295" Height="18.89764024" StretchMode="smActualHeight" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[IIF(&#60;ds.&#34;MaterialPaymentID&#34;&#62;= 0, '', 'Yes')]"/>
      <TfrxMemoView Name="mAmount" Left="487.55937" Top="3.77952999999999" Width="71.81107" Height="18.89764024" DataField="Amount" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[ds.&#34;Amount&#34;]"/>
      <TfrxMemoView Name="mInvoiceNo" Left="298.58287" Top="3.77952999999999" Width="90.70872" Height="18.89764024" StretchMode="smActualHeight" DataField="InvoiceNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;InvoiceNo&#34;]"/>
      <TfrxMemoView Name="mInvoiceDate" Left="396.85065" Top="3.77952999999999" Width="83.14966" Height="18.89764024" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;]"/>
      <TfrxMemoView Name="mVAT" Left="570.70903" Top="3.77952999999999" Width="56.69295" Height="18.89764024" DataField="VATAmount" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[ds.&#34;VATAmount&#34;]"/>
      <TfrxMemoView Name="mSupplierName" Left="79.37013" Top="3.77952999999999" Width="211.65368" Height="18.89764024" StretchMode="smActualHeight" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="mOrderNo" Left="0" Top="3.77952999999999" Width="68.03154" Height="18.89764024" DataField="OrderNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;OrderNo&#34;]"/>
    </TfrxGroupHeader>
  </TfrxReportPage>
</TfrxReport>
��n��I�9��,�
Quote Request�SELECT * FROM material_quote_requests
INNER JOIN suppliers ON suppliers.SupplierID = material_quote_requests.SupplierID
WHERE QuoteRequestID = [QUOTEREQUESTID]?8<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39035.7740109375" ReportOptions.Description.Text="" ReportOptions.LastChange="40892.5951441782" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E51554F544554595045222056616C75653D222751756F746174696F6E272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D2227313833353536272200010C25000000204E616D653D22746B6E51554F5445524551554553544944222056616C75653D222731272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C7D000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31392220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
    <TfrxMasterData Name="MasterData1" Height="783.49605322" Left="0" Top="151.1812" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo2" Left="0" Top="4.15747787000001" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="To:"/>
      <TfrxMemoView Name="Memo3" Left="0" Top="27.9685015" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Company:"/>
      <TfrxMemoView Name="Memo4" Left="0" Top="51.77952512" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Fax No:"/>
      <TfrxMemoView Name="mmMessageQuotation" Left="11.33858268" Top="109.60626992" Width="676.53587" Height="79.37013" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="We would be grateful if you could quote for the following part.&#13;&#10;&#13;&#10;You can do this by phone on XXXXX XXXXXX or by faxing us on XXXXX XXXXXX.&#13;&#10;&#13;&#10;You can also email your quote to xxx@xxx.co.uk.&#13;&#10;&#13;&#10;&#13;&#10;"/>
      <TfrxMemoView Name="Memo8" Left="109.60637" Top="3.77952999999999" Width="278.55120551" Height="26.45671" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" WordWrap="False" Text="[ds.&#34;Contact&#34;]"/>
      <TfrxMemoView Name="Memo9" Left="109.60637" Top="27.9685015" Width="287.24428" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" WordWrap="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="109.60637" Top="51.77952512" Width="249.44898" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;Fax&#34;]"/>
      <TfrxMemoView Name="Memo11" Left="359.05512055" Top="4.15747787000001" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="From:"/>
      <TfrxMemoView Name="Memo12" Left="359.05535" Top="27.9685015" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Date:"/>
      <TfrxMemoView Name="Memo13" Left="359.05535" Top="51.77952512" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Our Ref:"/>
      <TfrxMemoView Name="Memo14" Left="468.66172" Top="27.9685015" Width="230.55133" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd mmmm yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" WordWrap="False" Text="[Date]"/>
      <TfrxMemoView Name="Memo15" Left="468.66172" Top="51.77952512" Width="230.55133" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;JobID&#34;] / [ds.&#34;QuoteRequestID&#34;]"/>
      <TfrxMemoView Name="Memo16" Left="468.66172" Top="3.77952999999999" Width="230.55133" Height="24.56692913" ShowHint="False" Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[strUserName]"/>
      <TfrxShapeView Name="Shape2" Left="11.33858268" Top="207.87415" Width="677.29135079" Height="336.37795276" ShowHint="False"/>
      <TfrxLineView Name="Line1" Left="83.1496063" Top="207.87415" Width="0" Height="336.37817" ShowHint="False" Frame.Typ="1"/>
      <TfrxLineView Name="Line2" Left="196.53543307" Top="207.87415" Width="0" Height="336.37817" ShowHint="False" Frame.Typ="1"/>
      <TfrxLineView Name="Line3" Left="563.1496063" Top="207.87415" Width="0" Height="336.37817" ShowHint="False" Frame.Typ="1"/>
      <TfrxLineView Name="Line4" Left="11.33858268" Top="272.12583291" Width="677.29133858" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo17" Left="22.67718" Top="226.7718" Width="45.35429409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="QTY"/>
      <TfrxMemoView Name="Memo18" Left="86.92919" Top="219.21274" Width="98.26771409" Height="43.46457913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="OUR JOB REF"/>
      <TfrxMemoView Name="Memo19" Left="204.09462" Top="226.7718" Width="355.27575409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="DESCRIPTION OF PART"/>
      <TfrxMemoView Name="Memo20" Left="574.48856" Top="211.65339197" Width="98.26771409" Height="43.46457913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="PRICE EACH"/>
      <TfrxMemoView Name="Memo21" Left="574.48856" Top="253.22819512" Width="102.04724409" Height="17.00786913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="(excluding VAT)"/>
      <TfrxMemoView Name="Memo22" Left="18.89765" Top="287.24428" Width="49.13389" Height="26.45669291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Style="Normal" Text="[ds.&#34;QtyRequired&#34;]"/>
      <TfrxMemoView Name="Memo23" Left="90.70872" Top="287.24428" Width="94.48825" Height="26.45669291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo25" Left="204.09462" Top="287.24428" Width="86.92910213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Part No:"/>
      <TfrxMemoView Name="Memo26" Left="204.09462" Top="317.48052" Width="86.92910213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Desc:"/>
      <TfrxMemoView Name="Memo29" Left="294.80334" Top="287.24428" Width="260.78757" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" WordWrap="False" Text="[ds.&#34;SupplierPartNo&#34;]"/>
      <TfrxMemoView Name="Memo30" Left="294.80334" Top="317.48052" Width="260.78757" Height="98.26778" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;PartDescription&#34;]"/>
      <TfrxMemoView Name="mmPriceEach" Left="566.9295" Top="287.24394315" Width="109.60637" Height="26.45669291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[IIF(&#60;ds.&#34;UnitPrice&#34;&#62; &#60;= 0, 'TBA', &#60;ds.&#34;UnitPrice&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo36" Left="207.87415" Top="514.01608" Width="147.40158213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Style="Normal" Text="Delivery Date:"/>
      <TfrxMemoView Name="Memo1" Left="366.61441" Top="514.01608" Width="147.40158213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Style="Normal" Text="[IIF(&#60;ds.&#34;DeliveryDate&#34;&#62; &#60;= 0, 'ASAP', &#60;ds.&#34;DeliveryDate&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo5" Left="207.87415" Top="430.86642" Width="147.40158213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Style="Normal" Text="Delivery Cost:"/>
      <TfrxMemoView Name="Memo6" Left="366.61441" Top="430.86642" Width="147.40158213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Style="Normal" Text="[IIF(&#60;ds.&#34;Delivery&#34;&#62; &#60;= 0, 'TBA', &#60;ds.&#34;Delivery&#34;&#62;)]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="16.2519685" Left="0" Top="994.01639" Width="699.21305"/>
    <TfrxPageHeader Name="PageHeader1" Height="71.81107" Left="0" Top="18.89765" Width="699.21305">
      <TfrxPictureView Name="Picture1" Left="434.26772386" Top="10.96062748" Width="263.43307087" Height="48" ShowHint="False" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
      <TfrxMemoView Name="mmTitle" Left="0" Top="15.11812" Width="423.30736" Height="37.7953" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-27" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Quote Request"/>
    </TfrxPageHeader>
  </TfrxReportPage>
</TfrxReport>
��n��I5b�5�R�,�Material Payment List�SELECT material_orders.MaterialInvoiceListID,
       material_invoice_lists.DateTimeCreated,
       material_orders.OrderNo,
       suppliers.SupplierName,
       material_payments.*,
       payment_types.*
FROM material_orders
INNER JOIN material_invoice_lists ON material_invoice_lists.MaterialInvoiceListID = material_orders.MaterialInvoiceListID
INNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID
INNER JOIN material_payments ON material_payments.OrderID = material_orders.OrderID
INNER JOIN payment_types ON payment_types.PaymentTypeID = material_payments.PaymentTypeID
WHERE material_orders.MaterialInvoiceListID = [MATERIALINVOICELISTID]
ORDER BY OrderNo, MaterialPaymentID�2<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39759.1138049768" ScriptLanguage="PascalScript" ScriptText.Text="var      &#13;&#10;  FPreviousMaterialInvoiceID: Integer;&#13;&#10;  FPreviousOrderID: Integer;                                                &#13;&#10;  FMaterialPaymentIDsPrinted: String;                           &#13;&#10;&#13;&#10;procedure frxReport1OnStartReport(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  FPreviousMaterialInvoiceID := 0;&#13;&#10;  FPreviousOrderID := 0;                           &#13;&#10;  FMaterialPaymentIDsPrinted := ',';                    &#13;&#10;end;  &#13;&#10;&#13;&#10;function GetNominalCode: String;&#13;&#10;begin&#13;&#10;  if &#60;ds.&#34;UCode&#34;&#62; = '' then                                        &#13;&#10;    Result := &#60;ds.&#34;NominalCodeJobID&#34;&#62;&#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;UCode&#34;&#62;;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetPaymentRef: String;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;Ref1&#34;&#62;;      &#13;&#10;  if &#60;ds.&#34;Ref2&#34;&#62; &#60;&#62; '' then Result := Result + iif(Result = '', '', ', ') + &#60;ds.&#34;Ref2&#34;&#62;;&#13;&#10;  if &#60;ds.&#34;Ref3&#34;&#62; &#60;&#62; '' then Result := Result + iif(Result = '', '', ', ') + &#60;ds.&#34;Ref3&#34;&#62;;&#13;&#10;end;&#13;&#10;    &#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;&#13;&#10;  LPaymentID: String;                                                     &#13;&#10;begin&#13;&#10;{    &#13;&#10;  LVisible := FPreviousMaterialInvoiceID &#60;&#62; &#60;ds.&#34;MaterialInvoiceID&#34;&#62;;&#13;&#10;  // hide certain fields if same order no, allows more than payment to be listed neatly                                                                                                                                                                                                                 &#13;&#10;  mOrderNo.Visible := LVisible;&#13;&#10;  mSupplierName.Visible := LVisible;                                    &#13;&#10;  mInvoiceNo.Visible := LVisible;&#13;&#10;  mInvoiceDate.Visible := LVisible;          &#13;&#10;  mAmount.Visible := LVisible;  &#13;&#10;  mVAT.Visible := LVisible;  &#13;&#10;  mNominalCode.Visible := LVisible;    &#13;&#10;  FPreviousMaterialInvoiceID := &#60;ds.&#34;MaterialInvoiceID&#34;&#62;;  &#13;&#10;                                         &#13;&#10;  // make sure same payment is only printed once&#13;&#10;  // otherwise due to the recordset, when an order has more than one invoice, the payment will print as many times&#13;&#10;  // as there are invoices for the same order, and if there are two payments for the order then it prints two per invoice&#13;&#10;  if &#60;ds.&#34;OrderID&#34;&#62; &#60;&#62; FPreviousOrderID then&#13;&#10;  begin            &#13;&#10;    FPreviousOrderID := &#60;ds.&#34;OrderID&#34;&#62;;&#13;&#10;    FMaterialPaymentIDsPrinted := ',';                                &#13;&#10;  end;                  &#13;&#10;  LPaymentID := &#60;ds.&#34;MaterialPaymentID&#34;&#62;;&#13;&#10;    &#13;&#10;  LVisible := Pos(',' + LPaymentID + ',', FMaterialPaymentIDsPrinted) = 0;                                                                                                                                                                                                                                                                                                  &#13;&#10;  mPaymentType.Visible := LVisible;&#13;&#10;  mPaymentAmount.Visible := LVisible;&#13;&#10;  mPaymentRef.Visible := LVisible;                      &#13;&#10;    &#13;&#10;  if LPaymentID &#60;&#62; '' then FMaterialPaymentIDsPrinted := FMaterialPaymentIDsPrinted + LPaymentID + ',';&#13;&#10;  }      &#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." OnStartReport="frxReport1OnStartReport" PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D22273236272200010C2E000000204E616D653D22746B6E4D4154455249414C494E564F49434542415443484944222056616C75653D22273136272200010C2D000000204E616D653D22746B6E4D4154455249414C494E564F4943454C4953544944222056616C75653D2227353627220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" PrintIfEmpty="False" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="83.14966" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="301.91342" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Material Payment List for Accounts"/>
      <TfrxMemoView Name="dsDistributionListID" Left="464.88219" Top="3.77953" Width="60.47248" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;MaterialInvoiceListID&#34;]"/>
      <TfrxMemoView Name="strBranchName" Left="585.82715" Top="3.77953" Width="109.60637" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[strBranchName]"/>
      <TfrxMemoView Name="Memo6" Left="442.20501" Top="60.47248" Width="64.25201" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Type"/>
      <TfrxMemoView Name="Memo3" Left="79.37013" Top="60.47248" Width="185.19697" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Supplier Name"/>
      <TfrxMemoView Name="Memo11" Left="313.70099" Top="3.77953" Width="147.40167" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Material Invoice List ID:"/>
      <TfrxMemoView Name="Memo19" Left="536.69326" Top="3.77953" Width="49.13389" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Branch:"/>
      <TfrxMemoView Name="Memo20" Left="313.70099" Top="26.45671" Width="124.72449" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Date / Time Created:"/>
      <TfrxMemoView Name="dsDateTimeCreated" Left="464.88219" Top="26.45671" Width="132.28355" Height="18.89765" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;DateTimeCreated&#34;]"/>
      <TfrxMemoView Name="Memo12" Left="272.12616" Top="60.47248" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Payment Date"/>
      <TfrxMemoView Name="Memo14" Left="359.05535" Top="60.47248" Width="75.5906" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Amount"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="60.47248" Width="68.03154" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Order No"/>
      <TfrxMemoView Name="Memo17" Left="514.01608" Top="60.47248" Width="181.41744" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Ref erence"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="18.89764024" Left="0" Top="162.51979" Width="699.21305" OnAfterPrint="MasterData1OnAfterPrint" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo2" Left="359.05535" Top="0" Width="75.5906" Height="18.89764024" DataField="Amount" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[ds.&#34;Amount&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="442.20501" Top="0" Width="64.25201" Height="18.89764024" DataField="PaymentTypeName" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;PaymentTypeName&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="272.12616" Top="0" Width="79.37013" Height="18.89764024" StretchMode="smActualHeight" DataField="PaymentDate" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;PaymentDate&#34;]"/>
      <TfrxMemoView Name="mSupplierName" Left="79.37013" Top="0" Width="185.19697" Height="18.89764024" StretchMode="smActualHeight" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="mOrderNo" Left="0" Top="1.38777878078145E-17" Width="68.03154" Height="18.89764024" DataField="OrderNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;OrderNo&#34;]"/>
      <TfrxMemoView Name="Memo5" Left="514.01608" Top="0" Width="181.41744" Height="18.89764024" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;Ref1&#34;] [ds.&#34;Ref2&#34;] [ds.&#34;Ref3&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="241.88992" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="551.81098945" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
�I�uLcҖ,�Material OrderhSELECT *, GetOrderPaymentDetails([ORDERID]) AS PaymentDetails FROM material_orders
INNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID
INNER JOIN material_order_lines ON material_order_lines.OrderID = material_orders.OrderID
INNER JOIN branches ON branches.BranchID = material_orders.BranchID
WHERE material_orders.OrderID = [ORDERID]sJ<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39035.7740109375" ReportOptions.Description.Text="" ReportOptions.LastChange="40892.5898977894" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E51554F544554595045222056616C75653D222751756F746174696F6E272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D2227313833353536272200010C25000000204E616D653D22746B6E51554F5445524551554553544944222056616C75653D222731272200010C22000000204E616D653D22746B6E4F524445524944222056616C75653D22273132313533272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C7D000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31392220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
    <TfrxMasterData Name="MasterData1" Height="20.03099322" Left="0" Top="423.30736" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsPartID" Left="45.35436" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" DataField="PartID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;PartID&#34;]"/>
      <TfrxMemoView Name="dsSupplierPartNo" Left="132.28355" Top="0" Width="158.74026" Height="18.89765" ShowHint="False" DataField="SupplierPartNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierPartNo&#34;]"/>
      <TfrxMemoView Name="dsQtyOrdered" Left="0" Top="0" Width="37.7953" Height="18.89765" ShowHint="False" DataField="QtyOrdered" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;QtyOrdered&#34;]"/>
      <TfrxMemoView Name="dsPartDescription" Left="298.58287" Top="0" Width="309.92146" Height="18.89765" ShowHint="False" DataField="PartDescription" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;PartDescription&#34;]"/>
      <TfrxMemoView Name="dsUnitPrice" Left="616.06339" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" DataField="UnitPrice" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;UnitPrice&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="16.2519685" Left="0" Top="502.67749" Width="699.21305">
      <TfrxMemoView Name="Memo44" Left="0" Top="0" Width="532.91373" Height="16.2519685" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="IMPORTANT! PURCHASE ORDER NO MUST BE QUOTED ON ALL CORRESPONDENCE"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="381.73253" Left="0" Top="18.89765" Width="699.21305" Condition="ds.&#34;material_orders.OrderID&#34;" StartNewPage="True">
      <TfrxMemoView Name="mmTitle" Left="264.94532614" Top="4.15749252" Width="430.86642" Height="37.7953" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-27" Font.Name="Verdana" Font.Style="1" ParentFont="False" WordWrap="False" Text="Purchase Order No: [ds.&#34;OrderNo&#34;]"/>
      <TfrxPictureView Name="Picture1" Left="0" Top="0" Width="263.43307087" Height="48" ShowHint="False" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
      <TfrxMemoView Name="Memo7" Left="0" Top="52.91342" Width="230.55126409" Height="20.78739913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice & Delivery To:"/>
      <TfrxMemoView Name="dsCompanyName" Left="0" Top="75.5906" Width="230.55133" Height="18.89765" ShowHint="False" DataField="CompanyName" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CompanyName&#34;]"/>
      <TfrxMemoView Name="dsbranchesAddress1" Left="0" Top="94.48825" Width="309.92125984252" Height="18.89765" ShowHint="False" DataField="branches.Address1" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;branches.Address1&#34;]"/>
      <TfrxMemoView Name="dsbranchesAddress2" Left="0" Top="113.3859" Width="309.92125984252" Height="18.89765" ShowHint="False" DataField="branches.Address2" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;branches.Address2&#34;]"/>
      <TfrxMemoView Name="dsbranchesAddress3" Left="0" Top="132.28355" Width="309.92125984252" Height="18.89765" ShowHint="False" DataField="branches.Address3" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;branches.Address3&#34;]"/>
      <TfrxMemoView Name="dsbranchesAddress4" Left="0" Top="151.1812" Width="309.92125984252" Height="18.89765" ShowHint="False" DataField="branches.Address4" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;branches.Address4&#34;]"/>
      <TfrxMemoView Name="dsbranchesAddress5" Left="0" Top="170.07885" Width="192.75603" Height="18.89765" ShowHint="False" DataField="branches.Address5" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;branches.Address5&#34;]"/>
      <TfrxMemoView Name="dsbranchesPostcode" Left="196.53556" Top="170.07885" Width="86.92919" Height="18.89765" ShowHint="False" DataField="branches.Postcode" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;branches.Postcode&#34;]"/>
      <TfrxMemoView Name="dssuppliersSupplierID" Left="457.32313" Top="75.5906" Width="79.37013" Height="18.89765" ShowHint="False" DataField="suppliers.SupplierID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;suppliers.SupplierID&#34;]"/>
      <TfrxMemoView Name="dsSupplierName" Left="457.32313" Top="94.48825" Width="400.63018" Height="18.89765" ShowHint="False" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="Memo24" Left="321.26005" Top="75.5906" Width="109.60637" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Supplier ID:"/>
      <TfrxMemoView Name="Memo27" Left="321.26005" Top="94.48825" Width="109.60637" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Supplier Name:"/>
      <TfrxMemoView Name="Memo28" Left="457.32313" Top="113.3859" Width="400.63018" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;Contact&#34;]"/>
      <TfrxMemoView Name="Memo31" Left="321.26005" Top="113.3859" Width="120.94496" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Supplier Contact:"/>
      <TfrxMemoView Name="Memo32" Left="457.32313" Top="132.28355" Width="400.63018" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;suppliers.Tel&#34;]"/>
      <TfrxMemoView Name="Memo33" Left="321.26005" Top="132.28355" Width="120.94496" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Supplier Tel:"/>
      <TfrxMemoView Name="Memo34" Left="457.32313" Top="151.1812" Width="400.63018" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;suppliers.Fax&#34;]"/>
      <TfrxMemoView Name="Memo35" Left="321.26005" Top="151.1812" Width="120.94496" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Supplier Fax:"/>
      <TfrxMemoView Name="Memo37" Left="457.32313" Top="170.07885" Width="400.63018" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;Email&#34;]"/>
      <TfrxMemoView Name="Memo38" Left="321.26005" Top="170.07885" Width="120.94496" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Supplier Email:"/>
      <TfrxMemoView Name="Memo39" Left="49.13389" Top="196.53556" Width="245.66945" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;branches.Tel&#34;]"/>
      <TfrxMemoView Name="Memo40" Left="0" Top="196.53556" Width="34.01577" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Tel:"/>
      <TfrxMemoView Name="Memo41" Left="49.13389" Top="215.43321" Width="245.66945" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;branches.Fax&#34;]"/>
      <TfrxMemoView Name="Memo42" Left="0" Top="215.43321" Width="34.01577" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Fax:"/>
      <TfrxMemoView Name="Memo43" Left="49.13389" Top="234.33086" Width="245.66945" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;SalesEmail&#34;]"/>
      <TfrxMemoView Name="Memo46" Left="0" Top="234.33086" Width="49.13389" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Email:"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="325.03958" Width="128.50402" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Payment Details:"/>
      <TfrxMemoView Name="dsPaymentDetails" Left="132.28355" Top="325.03958" Width="563.14997" Height="18.89765" ShowHint="False" DataField="PaymentDetails" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;PaymentDetails&#34;]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="268.34663" Width="105.82684" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Date of Order:"/>
      <TfrxMemoView Name="dsOrderDate" Left="132.28355" Top="268.34663" Width="113.3859" Height="18.89765" ShowHint="False" DataField="OrderDate" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;OrderDate&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="287.24428" Width="105.82684" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Supplier Ref:"/>
      <TfrxMemoView Name="Memo22" Left="132.28355" Top="287.24428" Width="245.66945" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;SupplierRef&#34;]"/>
      <TfrxMemoView Name="Memo47" Left="0" Top="306.14193" Width="105.82684" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Account No:"/>
      <TfrxMemoView Name="Memo48" Left="132.28355" Top="306.14193" Width="245.66945" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;AccountNo&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="45.35436" Top="359.05535" Width="79.37013" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Part ID"/>
      <TfrxMemoView Name="Memo3" Left="0" Top="359.05535" Width="37.7953" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Qty"/>
      <TfrxMemoView Name="Memo4" Left="132.28355" Top="359.05535" Width="158.74026" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Supplier Part No"/>
      <TfrxMemoView Name="Memo5" Left="298.58287" Top="359.05535" Width="309.92146" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Part Description"/>
      <TfrxMemoView Name="Memo8" Left="616.06339" Top="359.05535" Width="79.37013" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Unit Price"/>
      <TfrxMemoView Name="dsOrderInformation" Left="457.32313" Top="196.53556" Width="238.11039" Height="124.72449" ShowHint="False" DataField="OrderInformation" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[ds.&#34;OrderInformation&#34;]"/>
      <TfrxMemoView Name="Memo9" Left="321.26005" Top="196.53556" Width="132.28355" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Order Information:"/>
    </TfrxGroupHeader>
  </TfrxReportPage>
</TfrxReport>
Purchase Order {OrderNo}2Please find attached our purchase order {OrderNo}.`��n�CM�z2�R�,� Pro Forma Invoice�SELECT i.*, j.*,
c.CustomerName, c.InvoiceCustomerName, c.InvoiceAddr1, c.InvoiceAddr2, c.InvoiceAddr3, c.InvoiceAddr4, c.InvoiceAddr5, c.InvoicePostcode, c.InvoiceTel, c.InvoiceFax, c.AccountNo, c.VATIDNumber,
cc.Title, cc.FirstName, cc.Surname, cc.Tel, cc.TelExtension,
e.ModelNumber, e.Description, m.ManufacturerName,
bc.BranchPrefix AS ComBranchPrefix, bc.CompanyName AS ComCompanyName, bc.Address1 AS ComAddress1, bc.Address2 AS ComAddress2, bc.Address3 AS ComAddress3, bc.Address4 AS ComAddress4, bc.Address5 AS ComAddress5, bc.Postcode AS ComPostcode, bc.Tel AS ComTel, bc.Fax AS ComFax, bc.VATNo AS ComVATNo,
br.BranchPrefix AS RepBranchPrefix, br.CompanyName AS RepCompanyName, br.Address1 AS RepAddress1, br.Address2 AS RepAddress2, br.Address3 AS RepAddress3, br.Address4 AS RepAddress4, br.Address5 AS RepAddress5, br.Postcode AS RepPostcode, br.Tel AS RepTel, br.Fax AS RepFax, br.VATNo AS RepVATNo,
ci.CurrencySymbol AS InvoiceCurrencySymbol, ci.CurrencyName AS InvoiceCurrencyName,
ca.CurrencySymbol AS AccountsCurrencySymbol, ca.CurrencyName AS AccountsCurrencyName,
cr.CurrencySymbol AS RechargeCurrencySymbol, cr.CurrencyName AS RechargeCurrencyName,
cra.CurrencySymbol AS RechargeAccountsCurrencySymbol, cra.CurrencyName AS RechargeAccountsCurrencyName
FROM invoice_print_list i
INNER JOIN jobs j ON j.JobID = i.IPL_JobID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
INNER JOIN branches bc ON bc.BranchID = j.BranchID
INNER JOIN branches br ON br.BranchID = j.RepairBranchID
LEFT JOIN currencies ci ON ci.CurrencyCode = j.InvoiceCurrencyCode
LEFT JOIN currencies ca ON ca.CurrencyCode = j.AccountsCurrencyCode
LEFT JOIN currencies cr ON cr.CurrencyCode = j.RechargeCurrencyCode
LEFT JOIN currencies cra ON cra.CurrencyCode = j.RechargeAccountsCurrencyCode�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="41507.6301556019" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String;&#13;&#10;begin&#13;&#10;  Result := AFullValue;&#13;&#10;  if Trim(AAddValue) &#60;&#62; '' then&#13;&#10;  begin&#13;&#10;    if Result &#60;&#62; '' then&#13;&#10;    begin&#13;&#10;      if AComma then&#13;&#10;        Result := Result + ', '&#13;&#10;      else if ANewLine then&#13;&#10;        Result := Result + #13#10&#13;&#10;      else&#13;&#10;        Result := Result + ' '&#13;&#10;    end;&#13;&#10;    Result := Result + Trim(AAddValue);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then // if it's a recharge invoice                                                                 &#13;&#10;  begin&#13;&#10;    // commercial branch address                                                                                           &#13;&#10;    Result := AddField('', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, 'Accounts Payable', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);      &#13;&#10;  end          &#13;&#10;  else&#13;&#10;  begin&#13;&#10;    // customer's address&#13;&#10;    if Trim(&#60;ds.&#34;InvoiceCustomerName&#34;&#62;) = '' then                                        &#13;&#10;      Result := AddField('', &#60;ds.&#34;CustomerName&#34;&#62;, False, True)&#13;&#10;    else&#13;&#10;      Result := AddField('', &#60;ds.&#34;InvoiceCustomerName&#34;&#62;, False, True);    &#13;&#10;    Result := AddField(Result, 'Accounts Payable', False, True);    &#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoiceAddr5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;InvoicePostcode&#34;&#62;, False, True);&#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetContact: String;&#13;&#10;begin&#13;&#10;  Result := AddField('', &#60;ds.&#34;Title&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;FirstName&#34;&#62;);&#13;&#10;  Result := AddField(Result, &#60;ds.&#34;Surname&#34;&#62;);&#13;&#10;  Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;Tel&#34;&#62;, True);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetBranchAddress: String;&#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;  begin              &#13;&#10;    Result := AddField('', &#60;ds.&#34;RepCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;RepPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepTel&#34;&#62; &#60;&#62; '' then                                            &#13;&#10;      Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;RepTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;RepFax&#34;&#62; &#60;&#62; '' then                                                 &#13;&#10;    Result := AddField(Result, 'Fax: ' + &#60;ds.&#34;RepFax&#34;&#62;, False, True);&#13;&#10;  end&#13;&#10;  else&#13;&#10;  begin&#13;&#10;    Result := AddField('', &#60;ds.&#34;ComCompanyName&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress1&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress2&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress3&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress4&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComAddress5&#34;&#62;, False, True);&#13;&#10;    Result := AddField(Result, &#60;ds.&#34;ComPostcode&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComTel&#34;&#62; &#60;&#62; '' then                                            &#13;&#10;      Result := AddField(Result, 'Tel: ' + &#60;ds.&#34;ComTel&#34;&#62;, False, True);&#13;&#10;    if &#60;ds.&#34;ComFax&#34;&#62; &#60;&#62; '' then                                                 &#13;&#10;    Result := AddField(Result, 'Fax: ' + &#60;ds.&#34;ComFax&#34;&#62;, False, True);      &#13;&#10;  end;            &#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATRegNo: String;      &#13;&#10;begin&#13;&#10;  if IsRecharge then                &#13;&#10;    Result := &#60;ds.&#34;RepVATNo&#34;&#62;  &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;ComVATNo&#34;&#62;;                   &#13;&#10;end;          &#13;&#10;    &#13;&#10;function IsCustomerCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'C';                                                                  &#13;&#10;end;  &#13;&#10;&#13;&#10;function IsCustomerAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'A';    &#13;&#10;end;          &#13;&#10;&#13;&#10;function IsRechargeCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'R';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRechargeAccountsCopy: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;IPL_InvoiceType&#34;&#62; = 'RA';                                                                  &#13;&#10;end;&#13;&#10;&#13;&#10;function IsRecharge: Boolean;&#13;&#10;begin&#13;&#10;  Result := IsRechargeCopy or IsRechargeAccountsCopy;                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetInvoiceTitle: String;&#13;&#10;begin&#13;&#10;{    &#13;&#10;  if &#60;ds.&#34;CreditNote&#34;&#62; then&#13;&#10;    Result := 'CREDIT NOTE'&#13;&#10;  else&#13;&#10;    if IsRecharge then&#13;&#10;      Result := 'RECHARGE INVOICE'&#13;&#10;    else                      &#13;&#10;      if &#60;ds.&#34;InvoiceNo&#34;&#62; &#62; 0 then&#13;&#10;        Result := 'INVOICE'&#13;&#10;      else         &#13;&#10;        Result := 'ZERO INVOICE';&#13;&#10;&#13;&#10;  if IsRecharge then&#13;&#10;    Result := Result + '  ' + &#60;ds.&#34;RepBranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;RechargeInvoiceNo&#34;&#62;)  &#13;&#10;  else&#13;&#10;    Result := Result + '  ' + &#60;ds.&#34;ComBranchPrefix&#34;&#62; + ' ' + IntToStr(&#60;ds.&#34;InvoiceNo&#34;&#62;);&#13;&#10;}&#13;&#10;  Result := 'PRO FORMA INVOICE'; // (SS,21/12/2010)                                                                                                                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function IsGBPCurrency: Boolean;&#13;&#10;begin&#13;&#10;  Result := GetCurrencyCode = 'GBP';                                                     &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetCurrencyCode: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then                                &#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyCode&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyCode&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyCode&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Code undetermined');                                                                                     &#13;&#10;end;          &#13;&#10;  &#13;&#10;function GetCurrencyRate: Double;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyRate&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyRate&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyRate&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Rate undetermined');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencySymbol: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencySymbol&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencySymbol&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencySymbol&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Symbol undetermined');      &#13;&#10;end;&#13;&#10;&#13;&#10;function GetCurrencyName: String;&#13;&#10;begin&#13;&#10;  if IsCustomerCopy then&#13;&#10;    Result := &#60;ds.&#34;InvoiceCurrencyName&#34;&#62;&#13;&#10;  else if IsCustomerAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;AccountsCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeCurrencyName&#34;&#62;&#13;&#10;  else if IsRechargeAccountsCopy then&#13;&#10;    Result := &#60;ds.&#34;RechargeAccountsCurrencyName&#34;&#62;&#13;&#10;  else&#13;&#10;    ShowMessage('Currency Name undetermined');      &#13;&#10;end;    &#13;&#10;    &#13;&#10;function AsCurrency(const AValue: Double): String;&#13;&#10;begin&#13;&#10;  Result := GetCurrencySymbol + FormatFloat('#0.00', GetCurrencyRate * AValue);                                                                        &#13;&#10;end;&#13;&#10;&#13;&#10;function IsDiscount: Boolean;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0;                                   &#13;&#10;end;&#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscount: Double;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;  begin&#13;&#10;    // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field                                                                                                                                                                                                                                                                                      &#13;&#10;    if &#60;ds.&#34;DiscountRate&#34;&#62; = -100 then&#13;&#10;      Result := 0&#13;&#10;    else                      &#13;&#10;      Result := &#60;ds.&#34;InvoicePrice&#34;&#62; * (100/(100 + &#60;ds.&#34;DiscountRate&#34;&#62;));&#13;&#10;  end                     &#13;&#10;  else&#13;&#10;    Result := &#60;ds.&#34;InvoicePrice&#34;&#62;;    &#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscount: Double;&#13;&#10;begin&#13;&#10;  // done this way to ensure there's no rounding error of 1p in the printout&#13;&#10;  Result := GetInvoicePriceIncDiscount - &#60;ds.&#34;InvoicePrice&#34;&#62;;                                          &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma                                                                                                       &#13;&#10;function GetDiscountForProForma: Double;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;  begin&#13;&#10;    // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field                                                                                                                                                                                                                                                                                      &#13;&#10;    if &#60;ds.&#34;DiscountRate&#34;&#62; = -100 then&#13;&#10;      Result := 0&#13;&#10;    else                      &#13;&#10;      Result := GetSellPriceTotal * (-&#60;ds.&#34;DiscountRate&#34;&#62; / 100);&#13;&#10;  end                     &#13;&#10;  else&#13;&#10;    Result := 0;    &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma replaces [GetDiscountAsCurrency]                                                                                        &#13;&#10;function GetDiscountForProFormaAsCurrency: String;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetDiscountForProForma)    &#13;&#10;  else&#13;&#10;    Result := '';     &#13;&#10;end;                   &#13;&#10;  &#13;&#10;function GetQuotedPriceAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;QuotedPrice&#34;&#62;);  &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) added for proforma, doesn't have discount deducted like QuotePrice, replaces [GetQuotedPriceAsCurrency]                                                                                                                                                                                                                                                     &#13;&#10;function GetSellPriceAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;SellPrice&#34;&#62;);  &#13;&#10;end;    &#13;&#10;&#13;&#10;// (SS,3/2/12) added for Pro Forma Invoice, this one has discount deducted                                                                                                &#13;&#10;function GetQuotedPriceTotal: Double;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;QuotedPrice&#34;&#62; * &#60;ds.&#34;NumberOff&#34;&#62;;  &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/12/12) added for proforma, this doesn't have discount deducted                                                                                                                                                                                             &#13;&#10;function GetSellPriceTotal: Double;&#13;&#10;begin&#13;&#10;  Result := &#60;ds.&#34;SellPrice&#34;&#62; * &#60;ds.&#34;NumberOff&#34;&#62;;  &#13;&#10;end;    &#13;&#10;      &#13;&#10;// (SS,3/2/12) added for Pro Forma Invoice                                                                                                                          &#13;&#10;function GetQuotedPriceTotalAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetQuotedPriceTotal);  &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) added for Pro Forma Invoice, replacing [GetInvoicePriceIncDiscountAsCurrency]                                                                                                                          &#13;&#10;function GetSellPriceTotalAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetSellPriceTotal);  &#13;&#10;end;    &#13;&#10;&#13;&#10;function GetInvoicePriceIncDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetInvoicePriceIncDiscount);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscountAsCurrency: String;&#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetDiscount)    &#13;&#10;  else&#13;&#10;    Result := '';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;function GetNetPriceIfDiscountAsCurrency: String;  &#13;&#10;begin&#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoicePrice&#34;&#62;)                   &#13;&#10;  else&#13;&#10;    Result := '';                                             &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma                                                                              &#13;&#10;function GetNetPriceForProForma: Double;  &#13;&#10;begin&#13;&#10;  Result := GetSellPriceTotal - GetDiscountForProForma;                            &#13;&#10;end;          &#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma replaces [GetNetPriceIfDiscountAsCurrency]        &#13;&#10;function GetNetPriceIfDiscountForProFormaAsCurrency: String;  &#13;&#10;begin            &#13;&#10;  if IsDiscount then&#13;&#10;    Result := AsCurrency(GetNetPriceForProForma)                     &#13;&#10;  else&#13;&#10;    Result := '';                    &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma                                                                              &#13;&#10;function GetNetPriceIncDeliveryForProForma: Double;  &#13;&#10;begin&#13;&#10;  Result := GetNetPriceForProForma + &#60;ds.&#34;QuotedDelivery&#34;&#62;;                            &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma replaces [GetNetAsCurrency]                                                                                                                &#13;&#10;function GetNetPriceIncDeliveryForProFormaAsCurrency: String;  &#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetNetPriceIncDeliveryForProForma);                            &#13;&#10;end;    &#13;&#10;&#13;&#10;function GetDeliveryAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;InvoiceDelivery&#34;&#62;);  &#13;&#10;end;&#13;&#10;    &#13;&#10;// (SS,3/2/12) added following for ProForma, replaces GetDeliveryAsCurrency                                                                                                                                &#13;&#10;function GetDeliveryForProFormaAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(&#60;ds.&#34;QuotedDelivery&#34;&#62;);       &#13;&#10;end;             &#13;&#10;&#13;&#10;function GetNetAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62;)      &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62;);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetVATAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;RechargeInvoiceNet&#34;&#62; / 100)                       &#13;&#10;  else            &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;VATRate&#34;&#62; * &#60;ds.&#34;InvoiceNet&#34;&#62; / 100);&#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma                                                                                                     &#13;&#10;function GetVATForProForma: Double;&#13;&#10;begin&#13;&#10;  Result := GetNetPriceIncDeliveryForProForma * &#60;ds.&#34;VATRate&#34;&#62; / 100;                                                           &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma, replaces [GetVATAsCurrency]                                                                                                     &#13;&#10;function GetVATForProFormaAsCurrency: String;&#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetVATForProForma);                                                           &#13;&#10;end;&#13;&#10;    &#13;&#10;function GetTotalAsCurrency: String;                                                           &#13;&#10;begin&#13;&#10;  if IsRecharge then    &#13;&#10;    Result := AsCurrency(&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1))&#13;&#10;  else&#13;&#10;    Result := AsCurrency(&#60;ds.&#34;InvoiceNet&#34;&#62; * ((&#60;ds.&#34;VATRate&#34;&#62; / 100) + 1));                         &#13;&#10;end;&#13;&#10;&#13;&#10;// (SS,3/2/12) for proforma, replaces [GetTotalAsCurrency]&#13;&#10;function GetTotalForProFormaAsCurrency: String;                                                                                      &#13;&#10;begin&#13;&#10;  Result := AsCurrency(GetNetPriceIncDeliveryForProForma + GetVATForProForma);                                    &#13;&#10;end;          &#13;&#10;&#13;&#10;function GetExchangeRateMessage: String;&#13;&#10;begin&#13;&#10;  if IsGBPCurrency then&#13;&#10;    Result := ''&#13;&#10;  else&#13;&#10;  begin              &#13;&#10;    Result := 'This invoice was generated using the exchange rate ' + FormatFloat('#0.0000', GetCurrencyRate) + ' which was set at the time of ';&#13;&#10;    if IsRecharge then&#13;&#10;      Result := Result + 'invoicing.'&#13;&#10;    else&#13;&#10;      Result := Result + 'quotation.';                                                                       &#13;&#10;  end;                  &#13;&#10;end;&#13;&#10;&#13;&#10;function GetLabel: String;&#13;&#10;var&#13;&#10;  LLabel: String; // LLabel used because Result := Result + .. causes error                                                                                                                                                                                    &#13;&#10;begin&#13;&#10;  if IsCustomerAccountsCopy or IsRechargeAccountsCopy then&#13;&#10;    LLabel := 'Accounts Copy'                        &#13;&#10;  else&#13;&#10;    LLabel := '';&#13;&#10;    &#13;&#10;  if &#60;ds.&#34;IPL_CopyNo&#34;&#62; &#62; 1 then&#13;&#10;    LLabel := LLabel + IIf(LLabel = '', 'Copy', '') + ' ' + IntToStr(&#60;ds.&#34;IPL_CopyNo&#34;&#62;);&#13;&#10;&#13;&#10;  Result := LLabel;                                                    &#13;&#10;end;&#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  LVisible: Boolean;                                                           &#13;&#10;begin&#13;&#10;  // hide certain values if recharge invoice                                                                                                   &#13;&#10;  LVisible := not IsRecharge;                                              &#13;&#10;  mInvoicePrice.Visible := LVisible;                                         &#13;&#10;  mDiscountRate.Visible := LVisible;                                                         &#13;&#10;  mDiscount.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscountTitle.Visible := LVisible;  &#13;&#10;  mNetPriceIfDiscount.Visible := LVisible;  &#13;&#10;  mDeliveryTitle.Visible := LVisible;  &#13;&#10;  mDelivery.Visible := LVisible;          &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="119.43307086" Left="0" Top="18.89765" Width="699.21305">
      <TfrxPictureView Name="Picture1" Left="366.61441" Top="45.35436" Width="332.5984252" Height="71.81102362" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="914.64626" Left="0" Top="200.31509" Width="699.21305" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" StartNewPage="True">
      <TfrxMemoView Name="Memo3" Left="34.01577" Top="0" Width="321.26005" Height="147.40167" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetAddress]"/>
      <TfrxMemoView Name="Memo5" Left="0" Top="147.40159433" Width="699.21305" Height="27.5905585" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-24" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[GetInvoiceTitle]"/>
      <TfrxShapeView Name="Shape1" Left="0" Top="188.97658787" Width="699.21305" Height="86.92919" ShowHint="False"/>
      <TfrxMemoView Name="Memo6" Left="79.37013" Top="196.53564787" Width="120.94496" Height="18.89765" ShowHint="False" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;]"/>
      <TfrxMemoView Name="Memo7" Left="7.55906" Top="196.53564787" Width="64.25201" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Tax Point:"/>
      <TfrxMemoView Name="Memo8" Left="7.55906" Top="215.43329787" Width="64.25201" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Order No:"/>
      <TfrxMemoView Name="Memo9" Left="79.37013" Top="215.43329787" Width="306.14193" Height="18.89765" ShowHint="False" DataField="CustomerOrderNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="7.55906" Top="234.33094787" Width="64.25201" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Contact:"/>
      <TfrxMemoView Name="Memo11" Left="79.37013" Top="234.33094787" Width="306.14193" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
      <TfrxMemoView Name="Memo12" Left="419.52783" Top="196.53564787" Width="79.37013" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Job No:"/>
      <TfrxMemoView Name="Memo13" Left="514.01608" Top="196.53564787" Width="173.85838" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo14" Left="419.52783" Top="215.43329787" Width="79.37013" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT Reg No:"/>
      <TfrxMemoView Name="Memo15" Left="514.01608" Top="215.43329787" Width="173.85838" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetVATRegNo]"/>
      <TfrxMemoView Name="Memo16" Left="419.52783" Top="234.33094787" Width="86.92919" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Account Code:"/>
      <TfrxMemoView Name="Memo17" Left="419.52783" Top="253.22859787" Width="86.92919" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[IIF(&#60;ds.&#34;VATIDNumber&#34;&#62; = '', '', 'VAT ID No:')]"/>
      <TfrxMemoView Name="Memo18" Left="514.01608" Top="253.22859787" Width="173.85838" Height="18.89765" ShowHint="False" DataField="VATIDNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;VATIDNumber&#34;]"/>
      <TfrxMemoView Name="Memo19" Left="514.01608" Top="234.33094787" Width="173.85838" Height="18.89765" ShowHint="False" DataField="AccountNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AccountNo&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="298.58295787" Width="699.21305" Height="347.71676" ShowHint="False"/>
      <TfrxLineView Name="Line1" Left="0" Top="325.03966787" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxLineView Name="Line2" Left="582.04762" Top="298.58295787" Width="0" Height="347.71676" ShowHint="False" Frame.Typ="1"/>
      <TfrxMemoView Name="Memo20" Left="7.55906" Top="302.36248787" Width="113.3859" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Description"/>
      <TfrxMemoView Name="Memo21" Left="597.16574" Top="302.36248787" Width="94.48825" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Price"/>
      <TfrxMemoView Name="Memo22" Left="7.55906" Top="336.37825787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Description:"/>
      <TfrxMemoView Name="Memo23" Left="7.55906" Top="393.07120787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Quantity:"/>
      <TfrxMemoView Name="Memo24" Left="117.16543" Top="336.37825787" Width="461.10266" Height="18.89765" ShowHint="False" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Description&#34;]"/>
      <TfrxMemoView Name="Memo25" Left="117.16543" Top="393.07120787" Width="117.16543" Height="18.89765" ShowHint="False" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;NumberOff&#34;]"/>
      <TfrxMemoView Name="Memo26" Left="7.55906" Top="355.27590787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Manufacturer:"/>
      <TfrxMemoView Name="Memo27" Left="117.16543" Top="355.27590787" Width="461.10266" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ManufacturerName&#34;]"/>
      <TfrxMemoView Name="Memo28" Left="7.55906" Top="374.17355787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Model Number:"/>
      <TfrxMemoView Name="Memo29" Left="117.16543" Top="374.17355787" Width="461.10266" Height="18.89765" ShowHint="False" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;ModelNumber&#34;]"/>
      <TfrxMemoView Name="Memo30" Left="7.55906" Top="430.86650787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Advice Note No:"/>
      <TfrxMemoView Name="Memo31" Left="117.16543" Top="430.86650787" Width="449.76407" Height="18.89765" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;AdviceNoteNo&#34;]"/>
      <TfrxMemoView Name="Memo32" Left="7.55906" Top="449.76415787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Serial Number(s):"/>
      <TfrxMemoView Name="Memo33" Left="117.16543" Top="449.76415787" Width="449.76407" Height="56.69291827" ShowHint="False" StretchMode="smMaxHeight" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SerialNo&#34;]"/>
      <TfrxMemoView Name="Memo34" Left="7.55906" Top="506.45710787" Width="487.55903315" Height="68.03141551" ShowHint="False" DataField="InvoiceText" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceText&#34;]"/>
      <TfrxMemoView Name="Memo37" Left="7.55906" Top="411.96885787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Price Each:"/>
      <TfrxMemoView Name="Memo38" Left="117.16543" Top="411.96885787" Width="117.16543" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetSellPriceAsCurrency]"/>
      <TfrxMemoView Name="mDiscountRate" Left="7.55906" Top="582.04770787" Width="563.14963315" Height="18.89752551" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, 'Less Discount at ' + FloatToStr(-&#60;ds.&#34;DiscountRate&#34;&#62;) + '%', '')]"/>
      <TfrxMemoView Name="mDiscount" Left="585.82715" Top="582.04770787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetDiscountForProFormaAsCurrency]"/>
      <TfrxMemoView Name="mNetPriceIfDiscountTitle" Left="7.55906" Top="600.94535787" Width="563.14988213" Height="18.8976378" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 0, 'Net Price', '')]"/>
      <TfrxMemoView Name="mNetPriceIfDiscount" Left="585.82715" Top="600.94535787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetNetPriceIfDiscountForProFormaAsCurrency]"/>
      <TfrxMemoView Name="mDeliveryTitle" Left="7.55906" Top="619.84300787" Width="241.88983213" Height="18.8976378" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Delivery"/>
      <TfrxMemoView Name="mDelivery" Left="585.82715" Top="619.84300787" Width="105.82684" Height="18.8976378" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetDeliveryForProFormaAsCurrency]"/>
      <TfrxShapeView Name="Shape3" Left="0" Top="661.41783787" Width="699.21305" Height="86.92914118" ShowHint="False"/>
      <TfrxMemoView Name="Memo39" Left="7.55906" Top="668.97689787" Width="328.81911" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Payment terms strictly 30 days from date of invoice."/>
      <TfrxMemoView Name="Memo42" Left="7.55906" Top="687.87454787" Width="162.51979" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT Rate:"/>
      <TfrxMemoView Name="Memo46" Left="7.55906" Top="706.77219787" Width="328.81911" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="['All values shown are in ' + GetCurrencyName + '.']"/>
      <TfrxMemoView Name="Memo47" Left="173.85838" Top="687.87454787" Width="162.51979" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[FloatToStr(&#60;ds.&#34;VATRate&#34;&#62;) + '%']"/>
      <TfrxMemoView Name="Memo48" Left="7.55906" Top="725.66984787" Width="684.09493" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetExchangeRateMessage]"/>
      <TfrxMemoView Name="Memo49" Left="7.55906" Top="759.68561787" Width="684.09493" Height="30.23624" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="E &#38; OE Claims with regard to the above must be notified to us within 7 days of the date of invoice.&#13;&#10;Please note all contracts are made in accordance with our standard conditions of trading a copy of which is available on request."/>
      <TfrxMemoView Name="Memo52" Left="476.22078" Top="668.97689787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Invoice Net ="/>
      <TfrxMemoView Name="Memo53" Left="476.22078" Top="687.87454787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT ="/>
      <TfrxMemoView Name="Memo54" Left="476.22078" Top="706.77219787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Total ="/>
      <TfrxMemoView Name="Memo55" Left="585.82715" Top="668.97689787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetNetPriceIncDeliveryForProFormaAsCurrency]"/>
      <TfrxMemoView Name="Memo56" Left="585.82715" Top="687.87454787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetVATForProFormaAsCurrency]"/>
      <TfrxMemoView Name="Memo57" Left="585.82715" Top="706.77219787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetTotalForProFormaAsCurrency]"/>
      <TfrxMemoView Name="Memo51" Left="291.02381" Top="873.07151787" Width="404.40971" Height="15.11812" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[GetLabel]"/>
      <TfrxMemoView Name="Memo1" Left="491.3389" Top="0" Width="204.09462" Height="139.84261" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetBranchAddress]"/>
      <TfrxMemoView Name="mInvoicePrice" Left="585.82715" Top="336.37817" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetSellPriceTotalAsCurrency]"/>
    </TfrxMasterData>
  </TfrxReportPage>
</TfrxReport>
Pro Forma InvoiceJust testing��l��M݄4��,�&Distribution List
# parts from actual orders to jobs or to stock
SELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, 
material_order_lines.PartDescription, material_order_lines.SupplierPartNo, 
material_orders.OrderNo, suppliers.SupplierName,
IF(jobs.JobID IS NULL, parts.Location, NULL) AS Location,
IF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,
IF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench
FROM parts_distribution_lines
INNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID
LEFT JOIN job_material ON job_material.JobMaterialID = parts_distribution_lines.JobMaterialID
INNER JOIN material_order_lines ON material_order_lines.OrderLineID = parts_distribution_lines.OrderLineID
INNER JOIN material_orders ON material_orders.OrderID = material_order_lines.OrderID
INNER JOIN suppliers ON suppliers.SupplierID = material_orders.SupplierID
LEFT JOIN parts ON parts.PartID = parts_distribution_lines.PartID
LEFT JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID
LEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID 
LEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID 
WHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID] AND parts_distribution_lines.OrderLineID IS NOT NULL

UNION ALL

# parts from stock to jobs
SELECT parts_distribution_lines.*, parts_distribution_lists.DateTimeCreated, 
parts.PartDescription, parts.SupplierPartNo, 
NULL AS OrderNo, suppliers.SupplierName,
parts.Location,
IF(jobs.RepairedByID IS NULL, user_quoted_by.UserName, user_repaired_by.UserName) AS UserName,
IF(jobs.RepairedByID IS NULL, user_quoted_by.Bench, user_repaired_by.Bench) AS Bench
FROM parts_distribution_lines
INNER JOIN parts_distribution_lists ON parts_distribution_lists.DistributionListID = parts_distribution_lines.DistributionListID
LEFT JOIN job_material ON job_material.JobMaterialID = parts_distribution_lines.JobMaterialID
INNER JOIN parts ON parts.PartID = parts_distribution_lines.PartID
INNER JOIN suppliers ON suppliers.SupplierID = parts.SupplierID
INNER JOIN jobs ON jobs.JobID = parts_distribution_lines.JobID
LEFT JOIN users user_quoted_by ON user_quoted_by.UserID = jobs.QuotedByID 
LEFT JOIN users user_repaired_by ON user_repaired_by.UserID = jobs.RepairedByID 
WHERE parts_distribution_lines.DistributionListID = [DISTRIBUTIONLISTID] AND parts_distribution_lines.OrderLineID IS NULL�)<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40634.7948891204" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2A000000204E616D653D22746B6E444953545249425554494F4E4C4953544944222056616C75653D22273438272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="102.04731" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="143.17316" Height="24" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Distribution List"/>
      <TfrxMemoView Name="dsDistributionListID" Left="124.72449" Top="37.7953" Width="79.37013" Height="18.89765" ShowHint="False" DataField="DistributionListID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;DistributionListID&#34;]"/>
      <TfrxMemoView Name="strBranchName" Left="525.35467" Top="37.7953" Width="79.37013" Height="18.89765" ShowHint="False" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[strBranchName]"/>
      <TfrxMemoView Name="Memo6" Left="302.3624" Top="75.5906" Width="30.23624" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Qty"/>
      <TfrxMemoView Name="Memo4" Left="340.1577" Top="75.5906" Width="86.92919" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Supplier Part No"/>
      <TfrxMemoView Name="Memo5" Left="434.64595" Top="75.5906" Width="177.63791" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Part Description"/>
      <TfrxMemoView Name="Memo11" Left="0" Top="37.7953" Width="120.94496" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Distribution List ID:"/>
      <TfrxMemoView Name="Memo19" Left="472.44125" Top="37.7953" Width="49.13389" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Branch:"/>
      <TfrxMemoView Name="Memo20" Left="211.65368" Top="37.7953" Width="86.92919" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Date Created:"/>
      <TfrxMemoView Name="dsDateTimeCreated" Left="298.58287" Top="37.7953" Width="143.62214" Height="18.89765" ShowHint="False" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeCreated&#34;]"/>
      <TfrxMemoView Name="Memo12" Left="136.06308" Top="75.5906" Width="109.60637" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Engineer / Bench"/>
      <TfrxMemoView Name="Memo14" Left="253.22851" Top="75.5906" Width="41.57483" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo2" Left="619.84292" Top="75.5906" Width="79.37013" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Supplier"/>
      <TfrxMemoView Name="Memo10" Left="56.69295" Top="75.5906" Width="71.81107" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Location"/>
      <TfrxMemoView Name="Memo17" Left="0" Top="75.5906" Width="49.13389" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Order No"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="181.41744" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo1" Left="302.3624" Top="0" Width="30.23624" Height="18.89765" ShowHint="False" DataField="Qty" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;Qty&#34;]"/>
      <TfrxMemoView Name="dsSupplierPartNo" Left="340.1577" Top="0" Width="86.92919" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataField="SupplierPartNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierPartNo&#34;]"/>
      <TfrxMemoView Name="dsPartDescription" Left="434.64595" Top="0" Width="177.63791" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataField="PartDescription" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;PartDescription&#34;]"/>
      <TfrxMemoView Name="Memo13" Left="136.06308" Top="0" Width="109.60637" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[&#60;ds.&#34;UserName&#34;&#62; + IIF(&#60;ds.&#34;Bench&#34;&#62; = '', '', ' / ' + &#60;ds.&#34;Bench&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo15" Left="253.22851" Top="0" Width="41.57483" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo16" Left="619.84292" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" WordWrap="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="dsPartID" Left="56.69295" Top="0" Width="71.81107" Height="18.89765" ShowHint="False" DataField="Location" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds.&#34;Location&#34;]"/>
      <TfrxMemoView Name="Memo18" Left="0" Top="0" Width="49.13389" Height="18.89765" ShowHint="False" DataField="OrderNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;OrderNo&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="264.5671" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
"��N��M��~B���f"Intrastat Report including Repairs�SELECT
	InvoiceDate,
	countries.GeoIPCountryCode AS country_code,
	JobID,
	customers.CustomerName AS customer_name,	
	InvoiceNet
FROM
	jobs
JOIN branches ON jobs.BranchID=branches.BranchID
JOIN customers ON jobs.CustomerID=customers.CustomerID
JOIN countries ON customers.DeliveryCountryID=countries.CountryID
WHERE
	countries.GeoIPCountryCode IN ("AT","BE","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB")
AND
	InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND 
	branches.BranchName="[BRANCHNAME]"
ORDER BY
	InvoiceDate ASC,
	country_code ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39800.6555553704" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D31322D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D31322D3138272200010C2D000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227496E7465726E6174696F6E616C27220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Intrastat Report for [tknBRANCHNAME] between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="18.89765" Left="0" Top="204.09462" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="45.35436" Top="0" Width="79.37013" Height="18.89765" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="132.28355" Top="0" Width="343.93723" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsInvoiceNet" Left="487.55937" Top="0" Width="79.37013" Height="18.89765" DataField="InvoiceNet" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceNet&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="400.63018" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="22.67718" Left="0" Top="113.3859" Width="699.21305" Condition="ds.&#34;InvoiceDate&#34;">
      <TfrxMemoView Name="dsInvoiceDate" Left="0" Top="0" Width="200.31509" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Invoice Date: [ds.&#34;InvoiceDate&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="22.67718" Left="0" Top="158.74026" Width="699.21305" Condition="ds.&#34;country_code&#34;">
      <TfrxMemoView Name="Memo4" Left="18.89765" Top="0" Width="196.53556" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Country [ds.&#34;country_code&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="41.57483" Left="0" Top="298.58287" Width="699.21305">
      <TfrxMemoView Name="dscountry_code" Left="287.24428" Top="0" Width="196.53556" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;] Total:"/>
      <TfrxMemoView Name="Memo3" Left="487.55937" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;InvoiceNet&#34;&#62;,MasterData1)]"/>
      <TfrxLineView Name="Line1" Left="0" Top="26.45671" Width="695.43352" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
    <TfrxGroupFooter Name="GroupFooter2" Height="30.23624" Left="0" Top="245.66945" Width="699.21305">
      <TfrxMemoView Name="Memo2" Left="487.55937" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;InvoiceNet&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="83.14966" Top="0" Width="400.63018" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Country [ds.&#34;country_code&#34;] total for [ds.&#34;InvoiceDate&#34;]:"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
��gOٴ EB���gMaterials Report by Job'SELECT
	order_items.*,
	suppliers.SupplierName,
	(QuantityOrdered*UnitPrice) AS subtotal
FROM
	order_items
JOIN
	orders ON order_items.OrderID=orders.OrderID
JOIN
	suppliers ON suppliers.SupplierID=orders.SupplierID
WHERE 
	JobID="[JOBID]"

ORDER BY order_items.ItemDeliveryDate ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40379.5402358333" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D222732393633393027220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="56.69295" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="540.02381" Height="35.33859" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-27" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Materials Report for [tknJOBID]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="177.63791" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsSupplierName" Left="691.65399" Top="0" Width="264.5671" Height="15.11812" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="dsOrderID" Left="0" Top="0" Width="79.37013" Height="15.11812" DataField="OrderID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;OrderID&#34;]"/>
      <TfrxMemoView Name="dsSupplierPartNo" Left="79.37013" Top="0" Width="158.74026" Height="15.11812" DataField="SupplierPartNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierPartNo&#34;]"/>
      <TfrxMemoView Name="dsUnitPrice" Left="438.42548" Top="0" Width="79.37013" Height="15.11812" DataField="UnitPrice" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;UnitPrice&#34;]"/>
      <TfrxMemoView Name="dsQuantityOrdered" Left="396.85065" Top="0" Width="41.57483" Height="15.11812" DataField="QuantityOrdered" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;QuantityOrdered&#34;]"/>
      <TfrxMemoView Name="dsItemDeliveryDate" Left="597.16574" Top="0" Width="94.48825" Height="15.11812" DataField="ItemDeliveryDate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;ItemDeliveryDate&#34;]"/>
      <TfrxMemoView Name="dsItemDesc" Left="238.11039" Top="0" Width="158.74026" Height="15.11812" DataField="ItemDesc" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;ItemDesc&#34;]"/>
      <TfrxMemoView Name="dssubtotal" Left="517.79561" Top="0" Width="79.37013" Height="15.11812" DataField="subtotal" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;subtotal&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="253.22851" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="880.63049" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="18.89765" Left="0" Top="136.06308" Width="1028.03216" ReprintOnNewPage="True">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="PO Number"/>
      <TfrxMemoView Name="Memo2" Left="79.37013" Top="0" Width="158.74026" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Part Number"/>
      <TfrxMemoView Name="Memo3" Left="438.42548" Top="0" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Unit Price"/>
      <TfrxMemoView Name="Memo4" Left="396.85065" Top="0" Width="41.57483" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Qty"/>
      <TfrxMemoView Name="Memo5" Left="597.16574" Top="0" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Date Delivered"/>
      <TfrxMemoView Name="Memo6" Left="691.65399" Top="0" Width="264.5671" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Supplier Name"/>
      <TfrxLineView Name="Line1" Left="0" Top="15.11812" Width="1028.03216" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo10" Left="238.11039" Top="0" Width="158.74026" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Description"/>
      <TfrxMemoView Name="Memo11" Left="517.79561" Top="0" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Subtotal"/>
    </TfrxHeader>
  </TfrxReportPage>
</TfrxReport>
�Oٴ#�B���h"Sage Sales Invoice Matching Report�SELECT
	InvoiceDate,
	customers.AccountNo,
	InvoiceNo,
	InvoiceNet,
	RechargeInvoiceNo,
	RechargeInvoiceNet,
	CustomerOrderNo,
                jobs.BranchID AS commercial_branch,
                jobs.RepairBranchID AS repair_branch,
                (SELECT BranchID FROM branches WHERE BranchName="[BRANCHNAME]") AS report_branch
FROM
	jobs
JOIN customers ON jobs.CustomerID=customers.CustomerID
WHERE
                (InvoiceNo IS NOT NULL OR RechargeInvoiceNo IS NOT NULL)
AND
	InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND
	(jobs.BranchID=(SELECT BranchID FROM branches WHERE BranchName="[BRANCHNAME]") OR jobs.RepairBranchID=(SELECT BranchID FROM branches WHERE BranchName="[BRANCHNAME]"))
AND
	WIP=0
ORDER BY
	InvoiceDate ASC} <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39591.6320158102" ScriptLanguage="PascalScript" ScriptText.Text="&#13;&#10;function GetInvoiceNet: Double;&#13;&#10;begin&#13;&#10;if (&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; &#60;&#62; nil) and (&#60;ds.&#34;repair_branch&#34;&#62; = &#60;ds.&#34;report_branch&#34;&#62;) then Result:=&#60;ds.&#34;rechargeInvoiceNet&#34;&#62; else Result:=&#60;ds.&#34;InvoiceNet&#34;&#62;;&#13;&#10;end;          &#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30342D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30342D333027220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="543.80334" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sage Invoicing Match Report"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="162.51979" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsInvoiceDate" Left="0" Top="0" Width="79.37013" Height="15.11812" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;]"/>
      <TfrxMemoView Name="dsAccountNo" Left="83.14966" Top="0" Width="64.25201" Height="15.11812" DataField="AccountNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;AccountNo&#34;]"/>
      <TfrxMemoView Name="dsInvoiceNo" Left="283.46475" Top="0" Width="79.37013" Height="15.11812" DataField="InvoiceNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceNo&#34;]"/>
      <TfrxMemoView Name="dsInvoiceNet" Left="453.5436" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="1" Highlight.Condition="&#60;ds.&#34;RechargeInvoiceNet&#34;&#62; &#60;&#62; nil" ParentFont="False" Text="[GetInvoiceNet]"/>
      <TfrxMemoView Name="dsRechargeInvoiceNo" Left="370.39394" Top="0" Width="79.37013" Height="15.11812" DataField="RechargeInvoiceNo" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;RechargeInvoiceNo&#34;]"/>
      <TfrxMemoView Name="dsCustomerOrderNo" Left="151.1812" Top="0" Width="128.50402" Height="15.11812" DataField="CustomerOrderNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerOrderNo&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="283.46475" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="26.45671" Left="0" Top="113.3859" Width="699.21305" ReprintOnNewPage="True">
      <TfrxMemoView Name="Memo1" Left="0" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Inv Date"/>
      <TfrxMemoView Name="Memo2" Left="83.14966" Top="7.55906" Width="60.47248" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Acc"/>
      <TfrxMemoView Name="Memo3" Left="151.1812" Top="7.55906" Width="60.47248" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Details"/>
      <TfrxMemoView Name="Memo4" Left="283.46475" Top="7.55906" Width="60.47248" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Inv No"/>
      <TfrxMemoView Name="Memo5" Left="453.5436" Top="7.55906" Width="60.47248" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Value"/>
      <TfrxMemoView Name="Memo6" Left="370.39394" Top="7.55906" Width="60.47248" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Rec Inv"/>
      <TfrxLineView Name="Line1" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="22.67718" Left="0" Top="200.31509" Width="699.21305">
      <TfrxMemoView Name="Memo11" Left="453.5436" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(GetInvoiceNet,MasterData1)]"/>
      <TfrxLineView Name="Line2" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�OٴR�B���iCustomer Activity Report�SELECT 
	sales_areas.SalesAreaName AS sales_area,
	SUBSTR(customers.CustomerName,1,20) AS customer_name,
	DATE_FORMAT(jobs.InvoiceDate,'%m') AS mnth,
	DATE_FORMAT(jobs.InvoiceDate,'%b') AS mnth_string,
	SUM(jobs.InvoiceNet) AS invoice_value,
	COUNT(jobs.JobID) AS job_count
FROM
	jobs
JOIN
	customers ON jobs.CustomerID=customers.CustomerID
JOIN
	branches ON customers.BranchID=branches.BranchID
JOIN
	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
WHERE
	jobs.InvoiceDate BETWEEN "[YEAR]-01-01" AND "[YEAR]-12-31"
AND
	branches.BranchName="[BRANCHNAME]"
AND
	WIP=0
GROUP BY
	sales_areas.SalesAreaName,
	customers.CustomerName,
	DATE_FORMAT(jobs.InvoiceDate,'%Y-%m')
ORDER BY
	sales_area ASC,
	customer_name ASC,
	mnth ASCCO<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39410.7419142824" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1E000000204E616D653D22746B6E59454152222056616C75653D222732303036272200010C1F000000204E616D653D22746B6E4252414E43484944222056616C75653D222731272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="5" RightMargin="0" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="37.7953" Left="0" Top="18.89765" Width="1103.62276">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="668.52783" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Customer Activity Report for [tknBRANCHNAME] in [tknYEAR]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="117.16543" Width="1103.62276" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" KeepFooter="True" KeepHeader="True" KeepTogether="True" RowCount="0"/>
    <TfrxDetailData Name="DetailData1" Height="209.11812" Left="0" Top="139.84261" Width="1103.62276" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxDBCrossView Name="DBCross1" Left="0" Top="0" Width="329" Height="189" AddHeight="0" AddWidth="0" Border="False" CellLevels="2" DownThenAcross="False" NextCrossGap="0" RowLevels="2" ShowCorner="False" ShowTitle="False" CellFields.Text="invoice_value&#13;&#10;job_count" ColumnFields.Text="mnth" DataSet="ds" DataSetName="ds" RowFields.Text="sales_area&#13;&#10;customer_name" PropData="054D656D6F730A672100003C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C63726F73733E3C63656C6C6D656D6F733E3C546672784D656D6F56696577204C6566743D223232382220546F703D223137382E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E306D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223139372E3834323631222057696474683D22343422204865696768743D22373322205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223338222057696474683D22343422204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223630222057696474683D22343422204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223237302E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223238392E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223137382E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223139372E3834323631222057696474683D22333722204865696768743D22373322205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223331362220546F703D223338222057696474683D22333722204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D2268615269676874222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223331362220546F703D223630222057696474683D22333722204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D2268615269676874222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223237302E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223238392E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C2F63656C6C6D656D6F733E3C63656C6C6865616465726D656D6F733E3C546672784D656D6F56696577204C6566743D223139342220546F703D223137382E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22342220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E76222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223139372E3834323631222057696474683D22333422204865696768743D22373322205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22382220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C546672784D656D6F56696577204C6566743D223138332220546F703D223338222057696474683D22383922204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22342220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22696E766F6963655F76616C7565222F3E3C546672784D656D6F56696577204C6566743D223138332220546F703D223630222057696474683D22383922204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22382220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D226A6F625F636F756E74222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223237302E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22372220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E76222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223238392E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C2F63656C6C6865616465726D656D6F733E3C636F6C756D6E6D656D6F733E3C546672784D656D6F56696577204C6566743D223232382220546F703D223135392E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F636F6C756D6E6D656D6F733E3C636F6C756D6E746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D223237322220546F703D223135392E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F636F6C756D6E746F74616C6D656D6F733E3C636F726E65726D656D6F733E3C546672784D656D6F56696577204C6566743D22302220546F703D2230222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223135392E3834323631222057696474683D22383122204865696768743D223022205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D226D6E7468222F3E3C546672784D656D6F56696577204C6566743D223131302220546F703D223232222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D2244617461222F3E3C546672784D656D6F56696577204C6566743D22302220546F703D223232222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D2273616C65735F61726561222F3E3C546672784D656D6F56696577204C6566743D22302220546F703D2230222057696474683D2232303022204865696768743D223022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22637573746F6D65725F6E616D65222F3E3C2F636F726E65726D656D6F733E3C726F776D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223137382E3834323631222057696474683D22373122204865696768743D22393222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231332220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C73652220526F746174696F6E3D2239302220546578743D22222F3E3C546672784D656D6F56696577204C6566743D2239312220546F703D223137382E3834323631222057696474683D2231303322204865696768743D22393222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C73652220546578743D22222F3E3C2F726F776D656D6F733E3C726F77746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223237302E3834323631222057696474683D2231373422204865696768743D22333822205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231332220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C73652220546578743D224772616E6420546F74616C222F3E3C546672784D656D6F56696577204C6566743D2237332220546F703D223338222057696474683D2231313022204865696768743D22343422205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F726F77746F74616C6D656D6F733E3C63656C6C66756E6374696F6E733E3C6974656D20312F3E3C6974656D20312F3E3C2F63656C6C66756E6374696F6E733E3C636F6C756D6E736F72743E3C6974656D20302F3E3C2F636F6C756D6E736F72743E3C726F77736F72743E3C6974656D20302F3E3C6974656D20302F3E3C2F726F77736F72743E3C2F63726F73733E"/>
    </TfrxDetailData>
  </TfrxReportPage>
</TfrxReport>
�OٴSB���j,Customer Activity Report by Operations Group"SELECT 
	sales_areas.SalesAreaName AS sales_area,
	SUBSTR(customers.CustomerName,1,20) AS customer_name,
	DATE_FORMAT(jobs.InvoiceDate,'%m') AS mnth,
	DATE_FORMAT(jobs.InvoiceDate,'%b') AS mnth_string,
	SUM(jobs.InvoiceNet) AS invoice_value,
	COUNT(jobs.JobID) AS job_count
FROM
	jobs
JOIN
	customers ON jobs.CustomerID=customers.CustomerID
JOIN
	groups ON customers.GroupID=groups.GroupID
JOIN
	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
WHERE
	jobs.InvoiceDate BETWEEN "[YEAR]-01-01" AND "[YEAR]-12-31"
AND
	groups.GroupName="[GROUPNAME]"
AND
	WIP=0
AND
                JobTypeID NOT IN (5,6,14)
GROUP BY
	sales_areas.SalesAreaName,
	customers.CustomerName,
	DATE_FORMAT(jobs.InvoiceDate,'%Y-%m')
ORDER BY
	sales_area ASC,
	customer_name ASC,
	mnth ASC�O<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40167.7003262384" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227455350272200010C25000000204E616D653D227374724272616E63684E616D65222056616C75653D2227537061696E272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1E000000204E616D653D22746B6E59454152222056616C75653D222732303039272200010C1F000000204E616D653D22746B6E4252414E43484944222056616C75653D222731272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C2D000000204E616D653D22746B6E47524F55504E414D45222056616C75653D22275061756C612043616D6F6573617327220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="5" RightMargin="0" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="37.7953" Left="0" Top="18.89765" Width="1103.62276">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="668.52783" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Customer Activity Report for [tknGROUPNAME] in [tknYEAR]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="117.16543" Width="1103.62276" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" KeepFooter="True" KeepHeader="True" KeepTogether="True" RowCount="0"/>
    <TfrxDetailData Name="DetailData1" Height="209.11812" Left="0" Top="139.84261" Width="1103.62276" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxDBCrossView Name="DBCross1" Left="0" Top="0" Width="329" Height="189" AddHeight="0" AddWidth="0" Border="False" CellLevels="2" DownThenAcross="False" NextCrossGap="0" RowLevels="2" ShowCorner="False" ShowTitle="False" CellFields.Text="invoice_value&#13;&#10;job_count" ColumnFields.Text="mnth" DataSet="ds" DataSetName="ds" RowFields.Text="sales_area&#13;&#10;customer_name" PropData="054D656D6F730A672100003C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C63726F73733E3C63656C6C6D656D6F733E3C546672784D656D6F56696577204C6566743D223232382220546F703D223137382E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E306D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223139372E3834323631222057696474683D22343422204865696768743D22373322205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223338222057696474683D22343422204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223630222057696474683D22343422204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223237302E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223238392E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223137382E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223139372E3834323631222057696474683D22333722204865696768743D22373322205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223331362220546F703D223338222057696474683D22333722204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D2268615269676874222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223331362220546F703D223630222057696474683D22333722204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D2268615269676874222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223237302E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22372220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A330222F3E3C546672784D656D6F56696577204C6566743D223237322220546F703D223238392E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C2F63656C6C6D656D6F733E3C63656C6C6865616465726D656D6F733E3C546672784D656D6F56696577204C6566743D223139342220546F703D223137382E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22342220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E76222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223139372E3834323631222057696474683D22333422204865696768743D22373322205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22382220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C546672784D656D6F56696577204C6566743D223138332220546F703D223338222057696474683D22383922204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22342220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22696E766F6963655F76616C7565222F3E3C546672784D656D6F56696577204C6566743D223138332220546F703D223630222057696474683D22383922204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D22382220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D226A6F625F636F756E74222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223237302E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D22372220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E76222F3E3C546672784D656D6F56696577204C6566743D223139342220546F703D223238392E3834323631222057696474683D22333422204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231312220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C2F63656C6C6865616465726D656D6F733E3C636F6C756D6E6D656D6F733E3C546672784D656D6F56696577204C6566743D223232382220546F703D223135392E3834323631222057696474683D22343422204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F636F6C756D6E6D656D6F733E3C636F6C756D6E746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D223237322220546F703D223135392E3834323631222057696474683D22333722204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F636F6C756D6E746F74616C6D656D6F733E3C636F726E65726D656D6F733E3C546672784D656D6F56696577204C6566743D22302220546F703D2230222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D223232382220546F703D223135392E3834323631222057696474683D22383122204865696768743D223022205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D226D6E7468222F3E3C546672784D656D6F56696577204C6566743D223131302220546F703D223232222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D2244617461222F3E3C546672784D656D6F56696577204C6566743D22302220546F703D223232222057696474683D2232303022204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D2273616C65735F61726561222F3E3C546672784D656D6F56696577204C6566743D22302220546F703D2230222057696474683D2232303022204865696768743D223022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22637573746F6D65725F6E616D65222F3E3C2F636F726E65726D656D6F733E3C726F776D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223137382E3834323631222057696474683D22373122204865696768743D22393222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231332220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C73652220526F746174696F6E3D2239302220546578743D22222F3E3C546672784D656D6F56696577204C6566743D2239312220546F703D223137382E3834323631222057696474683D2231303322204865696768743D22393222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C73652220546578743D22222F3E3C2F726F776D656D6F733E3C726F77746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223237302E3834323631222057696474683D2231373422204865696768743D22333822205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231332220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C73652220546578743D224772616E6420546F74616C222F3E3C546672784D656D6F56696577204C6566743D2237332220546F703D223338222057696474683D2231313022204865696768743D22343422205265737472696374696F6E733D2238222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F726F77746F74616C6D656D6F733E3C63656C6C66756E6374696F6E733E3C6974656D20312F3E3C6974656D20312F3E3C2F63656C6C66756E6374696F6E733E3C636F6C756D6E736F72743E3C6974656D20302F3E3C2F636F6C756D6E736F72743E3C726F77736F72743E3C6974656D20302F3E3C6974656D20302F3E3C2F726F77736F72743E3C2F63726F73733E"/>
    </TfrxDetailData>
  </TfrxReportPage>
</TfrxReport>
�Oٴ�B���kAwait Go-ahead Reserves`SELECT SUM(jobs.QuotedPrice*jobs.NumberOff) AS VALUE,
       SUM(jobs.NumberOff) AS NUMBER,
       job_types.JobType
       
FROM jobs

LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN branches ON jobs.BranchID=branches.BranchID

WHERE jobs.EngStatusID=3
AND branches.BranchName="[BRANCHNAME]"

GROUP BY job_types.jobtype<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39525.6961540741" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="31.55906" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Await Go-ahead Reserves for [tknBranchName]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="18.89765" Left="0" Top="207.87415" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsJobType" Left="0" Top="0" Width="226.7718" Height="18.89765" DataField="JobType" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobType&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="491.3389" Top="0" Width="117.16543" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;VALUE&#34;]"/>
      <TfrxMemoView Name="dsNUMBER" Left="302.3624" Top="0" Width="105.82684" Height="18.89765" DataField="NUMBER" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;NUMBER&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="351.49629" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="71.81107" Left="0" Top="113.3859" Width="718.1107">
      <TfrxMemoView Name="Memo2" Left="0" Top="45.35436" Width="718.1107" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo3" Left="302.3624" Top="45.35436" Width="105.82684" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Number Off"/>
      <TfrxMemoView Name="Memo4" Left="491.3389" Top="45.35436" Width="117.16543" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Value"/>
      <TfrxSysMemoView Name="SysMemo3" Left="0" Top="0" Width="188.9765" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[DATE] [TIME]"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="41.57483" Left="0" Top="249.44898" Width="718.1107">
      <TfrxMemoView Name="Memo5" Left="0" Top="7.55905999999999" Width="718.1107" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" Frame.Typ="4" ParentFont="False" VAlign="vaCenter" Text="Totals"/>
      <TfrxSysMemoView Name="SysMemo1" Left="302.3624" Top="7.55905999999999" Width="105.82684" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" VAlign="vaCenter" Text="[SUM(&#60;ds.&#34;NUMBER&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo2" Left="491.3389" Top="7.55905999999999" Width="117.16543" Height="26.45671" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" VAlign="vaCenter" Text="[SUM(&#60;ds.&#34;VALUE&#34;&#62;,MasterData1)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
��UOٴ�B���l>Incoming Jobs by Branch, Date Range, Job Type and Sales Person%SELECT
	sales_areas.Salesperson,
	job_types.JobType,
	DATE_FORMAT(SUBSTRING(jobs.DateTimeOfEntry,1,10),"%b %Y") AS period,
	COUNT(JobID) AS job_count,
                SUM(jobs.NumberOff) AS item_count
FROM
	sales_areas
JOIN
	customers ON sales_areas.SalesAreaID=customers.SalesAreaID
JOIN
	jobs ON customers.CustomerID=jobs.CustomerID
JOIN
	job_types ON jobs.JobTypeID=job_types.JobTypeID
JOIN
	branches ON customers.BranchID=branches.BranchID	
WHERE
	jobs.DateTimeOfEntry BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND
	branches.BranchName="[BRANCHNAME]"
AND 
	job_types.JobType="[JOBTYPE]"
AND
               jobs.Warranty=0
GROUP BY
	sales_areas.Salesperson,
	job_types.JobType,
	SUBSTRING(jobs.DateTimeOfEntry,1,7)
ORDER BY
	sales_areas.Salesperson ASC,
	job_types.JobType ASC6<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40487.6325023958" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C2E000000204E616D653D22746B6E4A4F4254595045222056616C75653D2227456C656374726F6E696320526570616972272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D31312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D31312D303527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Incoming jobs by Branch, Date Range, Job Type and Sales Person"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="192.75603" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsperiod" Left="11.33859" Top="0" Width="147.40167" Height="15.11812" DataField="period" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;period&#34;]"/>
      <TfrxMemoView Name="dsjob_count" Left="351.49629" Top="0" Width="120.94496" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_count&#34;] jobs"/>
      <TfrxMemoView Name="dsitem_count" Left="249.44898" Top="0" Width="94.48825" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;item_count&#34;] items"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="332.59864" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="56.69295" Left="0" Top="113.3859" Width="699.21305" Condition="ds.&#34;Salesperson&#34;" KeepChild="True">
      <TfrxMemoView Name="dsSalesperson" Left="0" Top="7.55906" Width="608.50433" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[ds.&#34;JobType&#34;] jobs from [ds.&#34;Salesperson&#34;] customers"/>
      <TfrxMemoView Name="Memo2" Left="11.33859" Top="37.7953" Width="147.40167" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Month / Year"/>
      <TfrxMemoView Name="Memo3" Left="351.49629" Top="37.7953" Width="120.94496" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Job Count"/>
      <TfrxLineView Name="Line1" Left="11.33859" Top="52.91342" Width="461.10266" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo4" Left="249.44898" Top="37.7953" Width="94.48825" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Item Count"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="41.57483" Left="0" Top="230.55133" Width="699.21305">
      <TfrxMemoView Name="Memo1" Left="351.49629" Top="7.55906" Width="120.94496" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;job_count&#34;&#62;,MasterData1)] jobs"/>
      <TfrxLineView Name="Line2" Left="11.33859" Top="3.77953" Width="461.10266" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo5" Left="249.44898" Top="7.55906" Width="94.48825" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;item_count&#34;&#62;,MasterData1)] items"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
����COٴ+�B���mIncoming Jobs by CustomerSELECT
	incoming_jobs.JobID,
	incoming_jobs.DateTimeOfEntry,
	funcGetJobType(JobID) AS job_type,
	incoming_jobs.NumberOff,
	funcGetEquipString(JobID) AS equip_string,
	funcGetCustomerName(JobID) AS customer_name,
	sales_areas.Salesperson,
                incoming_jobs.QuotedPrice
FROM
	incoming_jobs
LEFT JOIN
	equipment ON incoming_jobs.EquipmentID=equipment.EquipmentID
LEFT JOIN
	manufacturers ON equipment.ManufacturerID=manufacturers.ManufacturerID
LEFT JOIN
	customers ON incoming_jobs.CustomerID=customers.CustomerID
LEFT JOIN
	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
WHERE
	incoming_jobs.DateTimeOfEntry BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59"
ORDER BY
	sales_areas.Salesperson,incoming_jobs.CustomerID\(<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40220.4713795833" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30312D3331272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="691.20501" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Incoming Jobs by Customer between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="249.44898" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="37.7953" Top="3.77952999999999" Width="79.37013" Height="18.89765" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dsDateTimeOfEntry" Left="120.94496" Top="3.77952999999999" Width="83.14966" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeOfEntry&#34; #ddd/mm/yy]"/>
      <TfrxMemoView Name="dsManufacturerName" Left="340.1577" Top="3.77952999999999" Width="245.66945" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;NumberOff&#34;] x [ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsjob_type" Left="207.87415" Top="3.77953000000005" Width="124.72449" Height="18.89765" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
      <TfrxMemoView Name="dsQuotedPrice" Left="589.60668" Top="3.77952999999999" Width="109.60637" Height="18.89765" DataField="QuotedPrice" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;QuotedPrice&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="35.11812" Left="0" Top="449.76407" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="11.33859" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="491.3389" Top="11.33859" Width="205.25201" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strUserName" Left="279.68522" Top="11.33859" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="[strUserName]"/>
      <TfrxLineView Name="Line3" Left="0" Top="3.77953000000002" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="26.45671" Left="0" Top="113.3859" Width="699.21305" Condition="ds.&#34;Salesperson&#34;" StartNewPage="True">
      <TfrxMemoView Name="dsSalesperson" Left="0" Top="3.77952999999999" Width="298.58287" Height="18.89765" DataField="Salesperson" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;Salesperson&#34;]"/>
      <TfrxLineView Name="Line4" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="64.25201" Left="0" Top="162.51979" Width="699.21305" Condition="ds.&#34;customer_name&#34;">
      <TfrxMemoView Name="dsCustomerName" Left="22.67718" Top="11.33859" Width="480.00031" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="37.7953" Top="37.7953" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo3" Left="120.94496" Top="37.7953" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Date In"/>
      <TfrxMemoView Name="Memo4" Left="340.1577" Top="37.7953" Width="222.99227" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxLineView Name="Line1" Left="37.7953" Top="60.47248" Width="661.41775" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo10" Left="207.87415" Top="37.7953" Width="124.72449" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo11" Left="589.60668" Top="37.7953" Width="109.60637" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Value"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="41.57483" Left="0" Top="347.71676" Width="699.21305">
      <TfrxMemoView Name="Memo6" Left="37.7953" Top="15.11812" Width="151.1812" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(0,0)] Jobs"/>
      <TfrxLineView Name="Line5" Left="0" Top="3.77953000000002" Width="702.99258" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo5" Left="340.1577" Top="15.11812" Width="200.31509" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;NumberOff&#34;&#62;,MasterData1)] Items"/>
      <TfrxMemoView Name="Memo13" Left="589.60668" Top="11.33859" Width="109.60637" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;QuotedPrice&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxGroupFooter Name="GroupFooter2" Height="30.23624" Left="0" Top="294.80334" Width="699.21305">
      <TfrxMemoView Name="COUNT" Left="37.7953" Top="7.55905999999999" Width="120.94496" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(0,0)] Jobs"/>
      <TfrxMemoView Name="dsNumberOff" Left="340.1577" Top="7.55905999999999" Width="200.31509" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;NumberOff&#34;&#62;,MasterData1)] Items"/>
      <TfrxLineView Name="Line2" Left="37.7953" Top="3.77953000000002" Width="661.41775" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo12" Left="589.60668" Top="7.55905999999999" Width="109.60637" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;QuotedPrice&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٴ!B���nIncoming Jobs by Job Type�SELECT COUNT(incoming_jobs.JobID) AS jobs, SUM(incoming_jobs.NumberOff) AS items,SUM(incoming_jobs.Warranty) AS warr,SUM(incoming_jobs.CreditNote) AS credit,job_types.JobType AS jt FROM incoming_jobs LEFT JOIN job_types ON incoming_jobs.JobTypeID=job_types.JobTypeID WHERE incoming_jobs.DateTimeOfEntry BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59" GROUP BY incoming_jobs.JobTypeIDD<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39189.3787949074" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30342D3136272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D313727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="672.30736" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Incoming Jobs by Job Type between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="170.07885" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="3.77953" Width="177.63791" Height="18.89765" DataField="jt" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;jt&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="181.41744" Top="3.77953" Width="60.47248" Height="18.89765" DataField="jobs" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;jobs&#34;]"/>
      <TfrxMemoView Name="Memo3" Left="249.44898" Top="3.77953" Width="79.37013" Height="18.89765" DataField="items" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;items&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="453.5436" Top="3.77953" Width="79.37013" Height="18.89765" DataField="warr" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;warr&#34;]"/>
      <TfrxMemoView Name="dscredit" Left="566.9295" Top="3.77953" Width="79.37013" Height="18.89765" DataField="credit" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;credit&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="41.57483" Left="0" Top="306.14193" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="15.11812" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="480.00031" Top="15.11812" Width="220.37013" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strUserName" Left="294.80334" Top="15.11812" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="[strUserName]"/>
      <TfrxLineView Name="Line3" Left="0" Top="3.77953" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="34.01577" Left="0" Top="113.3859" Width="699.21305">
      <TfrxLineView Name="Line1" Left="0" Top="30.23624" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo5" Left="0" Top="3.77953" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo6" Left="181.41744" Top="3.77953" Width="45.35436" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs"/>
      <TfrxMemoView Name="Memo10" Left="249.44898" Top="3.77953" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Items"/>
      <TfrxMemoView Name="Memo11" Left="453.5436" Top="3.77953" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Warranties"/>
      <TfrxMemoView Name="Memo12" Left="566.9295" Top="3.77953" Width="120.94496" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Credit Notes"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="30.23624" Left="0" Top="215.43321" Width="699.21305">
      <TfrxLineView Name="Line2" Left="0" Top="3.77953" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo13" Left="0" Top="11.33859" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
      <TfrxMemoView Name="Memo14" Left="181.41744" Top="11.33859" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;jobs&#34;&#62;,0,0)]"/>
      <TfrxMemoView Name="Memo15" Left="249.44898" Top="11.33859" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,0,0)]"/>
      <TfrxMemoView Name="Memo16" Left="453.5436" Top="11.33859" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;warr&#34;&#62;,0,0)]"/>
      <TfrxMemoView Name="Memo17" Left="566.9295" Top="11.33859" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;credit&#34;&#62;,0,0)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٴ9�B���oIncoming Jobs by Sales PersonwSELECT 
	branches.BranchName AS branch_name,
	sales_areas.Salesperson AS sp,
	(SUM(incoming_jobs.NumberOff)-SUM(incoming_jobs.Warranty)-SUM(incoming_jobs.CreditNote)-SUM(funcIsJobQuotation(JobID))) AS items,
                SUM(funcIsJobQuotation(JobID)) AS quotation_items,
	SUM(incoming_jobs.Warranty) AS warr,
	SUM(incoming_jobs.CreditNote) AS credit,
	SUM(incoming_jobs.QuotedPrice) AS value
FROM
	incoming_jobs
JOIN
	customers ON incoming_jobs.CustomerID=customers.CustomerID
JOIN
	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
JOIN 
	branches ON customers.BranchID=branches.BranchID
WHERE
	incoming_jobs.DateTimeOfEntry BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59"
AND
               sales_areas.Salesperson<>"U Codes"
GROUP BY
	sales_areas.Salesperson
ORDER BY
	branches.BranchName ASC,
                sales_areas.Salesperson ASC;6<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40343.4892787847" ScriptLanguage="PascalScript" ScriptText.Text="procedure Page1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;       Day,Month,Year: String;&#13;&#10;       Title: String;                                                                            &#13;&#10;begin&#13;&#10;Title:='Incoming Jobs by Sales Person between ';                                                                                                            &#13;&#10;Day:=Copy(&#60;tknSTARTDATE&#62;,9,2);&#13;&#10;Month:=Copy(&#60;tknSTARTDATE&#62;,6,2);&#13;&#10;Year:=Copy(&#60;tknSTARTDATE&#62;,0,4);&#13;&#10;Title:=Title+Day+'/'+Month+'/'+Year+' and ';&#13;&#10;Day:=Copy(&#60;tknENDDATE&#62;,9,2);&#13;&#10;Month:=Copy(&#60;tknENDDATE&#62;,6,2);&#13;&#10;Year:=Copy(&#60;tknENDDATE&#62;,0,4);    &#13;&#10;Title:=Title+Day+'/'+Month+'/'+Year;      &#13;&#10;TitleMemo.Text:=Title;                                                &#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30362D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30362D3134272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
    <TfrxPageHeader Name="PageHeader1" Height="41.57483" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="TitleMemo" Left="0" Top="3.77953" Width="699.21305" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="TitleMemo"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="18.89765" Left="0" Top="192.75603" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="166.29932" Height="18.89765" DataField="sp" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;sp&#34;]"/>
      <TfrxMemoView Name="Memo3" Left="188.9765" Top="0" Width="60.47248" Height="18.89765" DataField="items" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;items&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="374.17347" Top="0" Width="90.70872" Height="18.89765" DataField="warr" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;warr&#34;]"/>
      <TfrxMemoView Name="dscredit" Left="480.00031" Top="0" Width="98.26778" Height="18.89765" DataField="credit" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;credit&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="264.5671" Top="0" Width="98.26778" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;quotation_items&#34;]"/>
      <TfrxMemoView Name="Memo27" Left="589.60668" Top="0" Width="98.26778" Height="18.89765" DataField="value" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;value&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="438.42548" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="49.13389" Left="0" Top="120.94496" Width="699.21305" Condition="ds.&#34;branch_name&#34;">
      <TfrxMemoView Name="Memo5" Left="0" Top="30.23624" Width="166.29932" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Sales Person"/>
      <TfrxMemoView Name="Memo6" Left="264.5671" Top="30.23624" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Quotations"/>
      <TfrxMemoView Name="Memo10" Left="188.9765" Top="30.23624" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Items"/>
      <TfrxMemoView Name="Memo11" Left="374.17347" Top="30.23624" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Warranties"/>
      <TfrxMemoView Name="Memo12" Left="480.00031" Top="30.23624" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Credit Notes"/>
      <TfrxLineView Name="Line1" Left="0" Top="49.13389" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="7.55906" Width="238.11039" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;branch_name&#34;] Branch"/>
      <TfrxMemoView Name="Memo28" Left="589.60668" Top="30.23624" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Value"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="41.57483" Left="0" Top="234.33086" Width="699.21305">
      <TfrxMemoView Name="Memo14" Left="188.9765" Top="0" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,0,0)]"/>
      <TfrxMemoView Name="Memo15" Left="374.17347" Top="0" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;warr&#34;&#62;,0,0)]"/>
      <TfrxMemoView Name="Memo16" Left="480.00031" Top="0" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;credit&#34;&#62;,0,0)]"/>
      <TfrxLineView Name="Line2" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo17" Left="0" Top="0" Width="166.29932" Height="18.89765" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
      <TfrxMemoView Name="Memo13" Left="264.5671" Top="0" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;quotation_items&#34;&#62;,0,0)]"/>
      <TfrxMemoView Name="Memo29" Left="589.60668" Top="0" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;value&#34;&#62;,0,0)]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="79.37013" Left="0" Top="336.37817" Width="699.21305">
      <TfrxLineView Name="Line3" Left="0" Top="37.7953" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo19" Left="0" Top="41.57483" Width="162.51979" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="All Branches:"/>
      <TfrxMemoView Name="Memo20" Left="188.9765" Top="41.57483" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,0,0)]"/>
      <TfrxMemoView Name="Memo21" Left="374.17347" Top="41.57483" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;warr&#34;&#62;,0,0)]"/>
      <TfrxMemoView Name="Memo22" Left="480.00031" Top="41.57483" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;credit&#34;&#62;,0,0)]"/>
      <TfrxLineView Name="Line4" Left="0" Top="64.25201" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo24" Left="188.9765" Top="18.89765" Width="60.47248" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Items"/>
      <TfrxMemoView Name="Memo25" Left="374.17347" Top="18.89765" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Warranties"/>
      <TfrxMemoView Name="Memo26" Left="480.00031" Top="18.89765" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Credit Notes"/>
      <TfrxMemoView Name="Memo7" Left="0" Top="18.89765" Width="162.51979" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Summary"/>
      <TfrxMemoView Name="Memo18" Left="264.5671" Top="41.57483" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;quotation_items&#34;&#62;,0,0)]"/>
      <TfrxMemoView Name="Memo23" Left="264.5671" Top="18.89765" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Quotations"/>
      <TfrxMemoView Name="Memo30" Left="589.60668" Top="18.89765" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Value"/>
      <TfrxMemoView Name="Memo31" Left="589.60668" Top="41.57483" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;value&#34;&#62;,0,0)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
��2��OٴC�B���p*WIP Value by Branch, Sales Person & Status�SELECT
	jobs.BranchID,
	branches.BranchName AS branch_name,
	sales_areas.Salesperson AS sales_person,
	EngStatusID,
	status_eng.StatusName AS status_name,
	COUNT(JobID) AS jobs,
	SUM((NumberOff*QuotedPrice)+QuotedDelivery) AS quoted_value
FROM
	jobs
JOIN
	status_eng ON jobs.EngStatusID=status_eng.StatusID
JOIN 
	branches ON jobs.BranchID=branches.BranchID
JOIN 
	customers ON jobs.CustomerID=customers.CustomerID
JOIN
	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
WHERE 
	EngStatusID>=3
AND
	WIP=1
AND
                branches.BranchName="[BRANCHNAME]"
AND
                jobs.JobTypeID IN ("1","2","3","4","6","8","12")

AND jobs.jobid NOT IN (SELECT jobid
FROM jobs 
WHERE (CustomerOrderNo LIKE "%RNR%" OR CustomerOrderNo LIKE "%RCR%" OR CustomerOrderNo LIKE "%RUR%" OR CustomerOrderNo LIKE "%SCRAP%")
AND BranchID = 1
AND wip = 1
AND engstatusid >= 3)

GROUP BY
	sales_areas.SalesPerson,
	EngStatusID
ORDER BY 
                EngStatusID ASC�><?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39617.3832083449" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="50.17316" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="31.55906" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="WIP Value in [tknBRANCHNAME] by Sales Person &#38; Status on [&#60;DATE&#62;]"/>
    </TfrxPageHeader>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="128.50402" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="884.41002" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxDBCrossView Name="DBCross1" Left="0" Top="75.5906" Width="354" Height="156" AddHeight="0" AddWidth="0" CellLevels="2" DownThenAcross="False" NextCrossGap="0" CellFields.Text="&#60;ds.&#34;jobs&#34;&#62;&#13;&#10;&#60;ds.&#34;quoted_value&#34;&#62;" ColumnFields.Text="&#60;ds.&#34;status_name&#34;&#62;" DataSet="ds" DataSetName="ds" RowFields.Text="sales_person" PropData="054D656D6F730AE01800003C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C63726F73733E3C63656C6C6D656D6F733E3C546672784D656D6F56696577204C6566743D223134362220546F703D223133352E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223134362220546F703D223135342E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223134362220546F703D223137332E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223134362220546F703D223139322E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223239312220546F703D223133352E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223239312220546F703D223135342E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223239312220546F703D223137332E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223239312220546F703D223139322E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C2F63656C6C6D656D6F733E3C63656C6C6865616465726D656D6F733E3C546672784D656D6F56696577204C6566743D223130362220546F703D223133352E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C546672784D656D6F56696577204C6566743D223130362220546F703D223135342E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2256616C7565222F3E3C546672784D656D6F56696577204C6566743D223130362220546F703D223137332E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231303032373030372220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F6273222F3E3C546672784D656D6F56696577204C6566743D223130362220546F703D223139322E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363737343334382220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2256616C7565222F3E3C2F63656C6C6865616465726D656D6F733E3C636F6C756D6E6D656D6F733E3C546672784D656D6F56696577204C6566743D223134362220546F703D223131362E35393036222057696474683D2231343522204865696768743D22313922205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F636F6C756D6E6D656D6F733E3C636F6C756D6E746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D223239312220546F703D223131362E35393036222057696474683D22343322204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C73222F3E3C2F636F6C756D6E746F74616C6D656D6F733E3C636F726E65726D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D2239352E35393036222057696474683D2231323622204865696768743D22323122205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C736522204672616D652E5479703D22322220476170583D22332220476170593D2233222048416C69676E3D22686143656E746572222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D223134362220546F703D2239352E35393036222057696474683D2231383822204865696768743D22323122205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22456E67696E656572696E672053746174757320506F696E7473222F3E3C546672784D656D6F56696577204C6566743D223130362220546F703D223131362E35393036222057696474683D22343022204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2244617461222F3E3C546672784D656D6F56696577204C6566743D2232302220546F703D223131362E35393036222057696474683D22383622204865696768743D22313922205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2253616C657320506572736F6E222F3E3C2F636F726E65726D656D6F733E3C726F776D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223133352E35393036222057696474683D22383622204865696768743D22333822205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223022204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F726F776D656D6F733E3C726F77746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D2232302220546F703D223137332E35393036222057696474683D22383622204865696768743D22333822205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31312220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D223122204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C73222F3E3C2F726F77746F74616C6D656D6F733E3C63656C6C66756E6374696F6E733E3C6974656D20312F3E3C6974656D20312F3E3C2F63656C6C66756E6374696F6E733E3C636F6C756D6E736F72743E3C6974656D20322F3E3C2F636F6C756D6E736F72743E3C726F77736F72743E3C6974656D20302F3E3C2F726F77736F72743E3C2F63726F73733E"/>
  </TfrxReportPage>
</TfrxReport>
�This report does not show:

Jobs with Eng Status < 3
Jobs that are scrap / RNR etc

This report DOES show:

Job Types 1,2,3,4,5,6,8,12 only

�Oٴ$�B���rSales Breakdown by Postcode�SELECT 
	SUBSTRING(customers.DeliveryPostCode,1,2) AS postcode,
                customers.Area,
	sales_areas.Salesperson AS sales_person,
	job_types.JobTypeID AS job_type_id,
	job_types.JobType AS job_type,
	InvoiceNet AS invoice_net,
    InvoiceDelivery AS invoice_delivery,
    (InvoiceNet-InvoiceDelivery) AS invoice_price,
	funcGetMaterialCostNew(jobs.JobID) AS material_cost,
	(InvoiceNet-funcGetMaterialCostNew(jobs.JobID)) AS margin,
	funcGetAdjustedSalesValue(InvoiceNet,
    (InvoiceNet-funcGetMaterialCostNew(jobs.JobID)),
    job_types.JobTypeID) AS adjusted_sales_value,
    jobs.InvoiceCurrencyCode AS currency_code,
    jobs.InvoiceCurrencyRate AS currency_rate
FROM
	jobs
INNER JOIN
	customers ON jobs.CustomerID=customers.CustomerID
INNER JOIN 
	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
INNER JOIN 
	job_types ON jobs.JobTypeID=job_types.JobTypeID
INNER JOIN
    branches ON customers.BranchID=branches.BranchID
WHERE
	(jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]")
AND
	job_types.JobType<>"Administration"
AND
   	branches.BranchID IN ([BRANCHIDS])
AND
    jobs.Warranty=0
ORDER BY
	postcode ASC <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40084.4525168171" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030392D30392D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030392D30392D3238272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C22000000204E616D653D22746B6E4252414E4348494453222056616C75653D2227312C3427220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="71.81107" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="936.87446" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sales Breakdown by Postcode ([tknSTARTDATE] to [tknENDDATE])"/>
      <TfrxMemoView Name="Memo2" Left="15.11812" Top="49.13389" Width="60.47248" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Postcode"/>
      <TfrxLineView Name="Line2" Left="15.11812" Top="68.03154" Width="1012.91404" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo11" Left="650.07916" Top="49.13389" Width="90.70872" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Cost"/>
      <TfrxMemoView Name="Memo12" Left="759.68553" Top="49.13389" Width="90.70872" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Margin"/>
      <TfrxMemoView Name="Memo13" Left="873.07143" Top="49.13389" Width="143.62214" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Adjusted Sales Value"/>
      <TfrxMemoView Name="Memo20" Left="532.91373" Top="49.13389" Width="117.16543" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Price"/>
      <TfrxMemoView Name="Memo6" Left="264.5671" Top="49.13389" Width="128.50402" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Sales Person"/>
      <TfrxMemoView Name="Memo14" Left="94.48825" Top="49.13389" Width="60.47248" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Area"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="173.85838" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="298.58287" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="884.41002" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="0" Left="0" Top="151.1812" Width="1028.03216" Condition="ds.&#34;postcode&#34;" KeepTogether="True"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="41.57483" Left="0" Top="196.53556" Width="1028.03216">
      <TfrxMemoView Name="Memo1" Left="532.91373" Top="0" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_net&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo3" Left="650.07916" Top="0" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo4" Left="759.68553" Top="0" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="873.07143" Top="0" Width="120.94496" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;adjusted_sales_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="dspostcode" Left="18.89765" Top="0" Width="56.69295" Height="15.11812" DataField="postcode" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;postcode&#34;]"/>
      <TfrxMemoView Name="dssales_person" Left="264.5671" Top="0" Width="128.50402" Height="15.11812" DataField="sales_person" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;sales_person&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="94.48825" Top="0" Width="158.74026" Height="15.11812" DataField="Area" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;Area&#34;]"/>
      <TfrxLineView Name="Line1" Left="15.11812" Top="37.7953" Width="1012.91404" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
����Oٵ3�B���sSales Breakdown by Sales Person�SELECT 
	sales_areas.Salesperson AS sales_person,
	job_types.JobTypeID AS job_type_id,
	job_types.JobType AS job_type,
	InvoiceNet AS invoice_net,
                InvoiceDelivery AS invoice_delivery,
                (InvoiceNet-InvoiceDelivery) AS invoice_price,
	funcGetMaterialCostNew(jobs.JobID) AS material_cost,
	(InvoiceNet-funcGetMaterialCostNew(jobs.JobID)) AS margin,
	funcGetAdjustedSalesValue(InvoiceNet,
                (InvoiceNet-funcGetMaterialCostNew(jobs.JobID)),
                job_types.JobTypeID) AS adjusted_sales_value,
                jobs.InvoiceCurrencyCode AS currency_code,
                jobs.InvoiceCurrencyRate AS currency_rate
FROM
	jobs
INNER JOIN
	customers ON jobs.CustomerID=customers.CustomerID
INNER JOIN 
	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
INNER JOIN 
	job_types ON jobs.JobTypeID=job_types.JobTypeID
INNER JOIN
                branches ON customers.BranchID=branches.BranchID
WHERE
	(jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]")
AND
	job_types.JobType<>"Administration"
AND
                branches.BranchName="[BRANCHNAME]"
AND
                jobs.Warranty=0
ORDER BY
	sales_areas.Salesperson ASC,
	jobs.JobTypeID ASC{.<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39604.5390957639" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C24000000204E616D653D227374724272616E6368507265666978222056616C75653D2227504C272200010C26000000204E616D653D227374724272616E63684E616D65222056616C75653D2227506F6C616E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30352D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30362D3330272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D22274272696467656E6427220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="71.81107" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sales Breakdown by Sales Person ([tknSTARTDATE] to [tknENDDATE])"/>
      <TfrxMemoView Name="Memo18" Left="0" Top="34.01577" Width="317.48052" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[tknBRANCHNAME] Branch only"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="245.66945" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="400.63018" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="49.13389" Left="0" Top="151.1812" Width="1028.03216" Condition="ds.&#34;sales_person&#34;" KeepTogether="True">
      <TfrxMemoView Name="dssales_person" Left="0" Top="0" Width="158.74026" Height="18.89765" DataField="sales_person" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;sales_person&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="15.11812" Top="34.01577" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type"/>
      <TfrxLineView Name="Line2" Left="15.11812" Top="49.13389" Width="1012.91404" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo10" Left="434.64595" Top="34.01577" Width="90.70872" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Net"/>
      <TfrxMemoView Name="Memo11" Left="551.81138" Top="34.01577" Width="90.70872" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Cost"/>
      <TfrxMemoView Name="Memo12" Left="661.41775" Top="34.01577" Width="90.70872" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Margin"/>
      <TfrxMemoView Name="Memo13" Left="774.80365" Top="34.01577" Width="143.62214" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Adjusted Sales Value"/>
      <TfrxMemoView Name="Memo19" Left="298.58287" Top="34.01577" Width="109.60637" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Delivery"/>
      <TfrxMemoView Name="Memo20" Left="162.51979" Top="34.01577" Width="117.16543" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Price"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="34.01577" Left="0" Top="306.14193" Width="1028.03216">
      <TfrxMemoView Name="Memo1" Left="434.64595" Top="0" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_net&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo3" Left="551.81138" Top="0" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo4" Left="661.41775" Top="0" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="774.80365" Top="0" Width="120.94496" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;adjusted_sales_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo6" Left="15.11812" Top="0" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
      <TfrxLineView Name="Line1" Left="15.11812" Top="0" Width="1012.91404" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo21" Left="162.51979" Top="0" Width="117.16543" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo22" Left="298.58287" Top="0" Width="109.60637" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_delivery&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxGroupHeader Name="GroupHeader2" Height="0" Left="0" Top="222.99227" Width="1028.03216" Condition="ds.&#34;job_type_id&#34;"/>
    <TfrxGroupFooter Name="GroupFooter2" Height="15.11812" Left="0" Top="268.34663" Width="1028.03216">
      <TfrxMemoView Name="dsjob_type" Left="15.11812" Top="0" Width="128.50402" Height="15.11812" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
      <TfrxMemoView Name="Memo14" Left="434.64595" Top="0" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_net&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo15" Left="551.81138" Top="0" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo16" Left="661.41775" Top="0" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo17" Left="774.80365" Top="0" Width="120.94496" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;adjusted_sales_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="dsinvoice_delivery" Left="298.58287" Top="0" Width="109.60637" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_delivery&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="dsinvoice_price" Left="162.51979" Top="0" Width="117.16543" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
���]Oٵ?�B���tWIP Report (ALL)���SELECT jobs.jobid AS jobid,
       funcGetCustomerName(jobs.JobID) AS customer_name,
       MaterialCost AS material_cost,
       SUM(order_items.QuantityOrdered*order_items.UnitPrice) AS material_order,
       funcGetLabourHoursByRate(jobs.jobid,"A") AS labour_a,
       funcGetLabourHoursByRate(jobs.jobid,"B") AS labour_b,
       funcGetLabourHoursByRate(jobs.jobid,"C") AS labour_c,
       job_types.JobType AS jobtype

FROM jobs

JOIN job_types ON jobs.jobtypeid=job_types.jobtypeid
JOIN branches ON jobs.branchid=branches.branchid
JOIN order_items ON jobs.JobID=order_items.JobID

WHERE jobs.wip="1"
      AND jobs.DateTimeGoAheadGiven<"[STARTDATE] 23:59:59"
      AND branches.branchname="[BRANCHNAME]"
      AND ((jobs.DateTimeRepairComplete IS NULL) OR (jobs.DateTimeRepairComplete>"[ENDDATE] 23:59:59"))
GROUP BY
	jobs.JobID
ORDER BY
	jobs.JobTypeID ASC,jobs.DateTimeGoAheadGiven ASC<<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40128.699587419" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227425249272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D22274272696467656E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030392D31302D3331272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D22274272696467656E6427220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="944.43352" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="WIP Report for Month Ending [tknENDDATE] at [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="188.9765" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="79.37013" Height="15.11812" DataField="jobid" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;jobid&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="86.92919" Top="0" Width="177.63791" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dslabour_a" Left="272.12616" Top="0" Width="79.37013" Height="15.11812" DataField="labour_a" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;labour_a&#34;]"/>
      <TfrxMemoView Name="dslabour_b" Left="359.05535" Top="0" Width="79.37013" Height="15.11812" DataField="labour_b" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;labour_b&#34;]"/>
      <TfrxMemoView Name="dslabour_c" Left="442.20501" Top="0" Width="79.37013" Height="15.11812" DataField="labour_c" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;labour_c&#34;]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="623.62245" Top="0" Width="94.48825" Height="15.11812" DataField="material_cost" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;material_cost&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="525.35467" Top="0" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[&#60;ds.&#34;labour_a&#34;&#62;+&#60;ds.&#34;labour_b&#34;&#62;+&#60;ds.&#34;labour_c&#34;&#62;]"/>
      <TfrxMemoView Name="dsmaterial_order" Left="721.89023" Top="0" Width="98.26778" Height="15.11812" DataField="material_order" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;material_order&#34;]"/>
      <TfrxMemoView Name="Memo18" Left="823.93754" Top="0" Width="98.26778" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[&#60;ds.&#34;material_order&#34;&#62;*1.40]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="400.63018" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="899.52814" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="52.91342" Left="0" Top="113.3859" Width="1046.92981" Condition="ds.&#34;jobtype&#34;">
      <TfrxMemoView Name="dsjobtype" Left="-3.77953" Top="3.77952999999999" Width="238.11039" Height="18.89765" DataField="jobtype" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;jobtype&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="0" Top="34.01577" Width="52.91342" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo3" Left="86.92919" Top="34.01577" Width="105.82684" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo4" Left="272.12616" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Rate A"/>
      <TfrxMemoView Name="Memo5" Left="359.05535" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Rate B"/>
      <TfrxMemoView Name="Memo6" Left="442.20501" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Rate C"/>
      <TfrxMemoView Name="Memo11" Left="525.35467" Top="34.01577" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Total Hours"/>
      <TfrxMemoView Name="Memo12" Left="623.62245" Top="34.01577" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Material Est"/>
      <TfrxMemoView Name="Memo16" Left="721.89023" Top="34.01577" Width="98.26778" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Material Cost"/>
      <TfrxMemoView Name="Memo17" Left="823.93754" Top="34.01577" Width="98.26778" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Material Sell"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="30.23624" Left="0" Top="226.7718" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="0" Top="0" Width="181.41744" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxSysMemoView Name="SysMemo2" Left="272.12616" Top="0" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo3" Left="359.05535" Top="0" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo4" Left="442.20501" Top="0" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo13" Left="525.35467" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo5" Left="623.62245" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo11" Left="721.89023" Top="0" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_order&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo13" Left="823.93754" Top="0" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_order&#34;&#62;*1.40,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="60.47248" Left="0" Top="317.48052" Width="1046.92981">
      <TfrxMemoView Name="Memo14" Left="3.77953" Top="3.77953000000002" Width="105.82684" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Month Summary"/>
      <TfrxSysMemoView Name="SysMemo6" Left="3.77953" Top="30.23624" Width="132.28355" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs in Progress"/>
      <TfrxSysMemoView Name="SysMemo7" Left="272.12616" Top="30.23624" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo8" Left="359.05535" Top="30.23624" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo9" Left="442.20501" Top="30.23624" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo10" Left="627.40198" Top="30.23624" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo15" Left="525.35467" Top="30.23624" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo12" Left="721.89023" Top="30.23624" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_order&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo14" Left="823.93754" Top="30.23624" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_order&#34;&#62;*1.40,MasterData1)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
�Oٵ4,B���u#WIP Report (In progress with value)��SELECT jobid AS jobid,
               funcGetCustomerName(jobid) AS customer_name,
               funcMonthEndMaterialCost(jobid,"[ENDDATE]") AS material_cost,
               funcGetLabourHoursByRateEOM(jobid,"A","[ENDDATE]") AS labour_a,
               funcGetLabourHoursByRateEOM(jobid,"B","[ENDDATE]") AS labour_b,
               funcGetLabourHoursByRateEOM(jobid,"C","[ENDDATE]") AS labour_c,
               job_types.jobtype AS jobtype

FROM jobs

JOIN job_types ON jobs.jobtypeid=job_types.jobtypeid
JOIN branches ON jobs.branchid=branches.branchid

WHERE jobs.engstatusid>3
      AND jobs.DateTimeGoAheadGiven<"[ENDDATE] 23:59:59"
      AND jobs.jobtypeid IN ("1","2","3","4","6","8","12")
      AND branches.branchname="[BRANCHNAME]"
      AND ((jobs.DateTimeRepairComplete IS NULL) OR (jobs.DateTimeRepairComplete>"[ENDDATE] 23:59:59"))
     AND WIP=1

ORDER BY jobs.jobtypeid ASC,jobs.DateTimeGoAheadGiven ASC/0<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39337.3593942824" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30392D3132272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="WIP Report for Month Ending [tknENDDATE] at [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="188.9765" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="79.37013" Height="15.11812" DataField="jobid" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;jobid&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="86.92919" Top="0" Width="177.63791" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dslabour_a" Left="272.12616" Top="0" Width="79.37013" Height="15.11812" DataField="labour_a" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;labour_a&#34;]"/>
      <TfrxMemoView Name="dslabour_b" Left="359.05535" Top="0" Width="79.37013" Height="15.11812" DataField="labour_b" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;labour_b&#34;]"/>
      <TfrxMemoView Name="dslabour_c" Left="442.20501" Top="0" Width="79.37013" Height="15.11812" DataField="labour_c" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;labour_c&#34;]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="627.40198" Top="0" Width="90.70872" Height="15.11812" DataField="material_cost" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;material_cost&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="525.35467" Top="0" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[&#60;ds.&#34;labour_a&#34;&#62;+&#60;ds.&#34;labour_b&#34;&#62;+&#60;ds.&#34;labour_c&#34;&#62;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="400.63018" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="52.91342" Left="0" Top="113.3859" Width="718.1107" Condition="ds.&#34;jobtype&#34;">
      <TfrxMemoView Name="dsjobtype" Left="-3.77953" Top="0" Width="238.11039" Height="18.89765" DataField="jobtype" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;jobtype&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="0" Top="34.01577" Width="52.91342" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo3" Left="86.92919" Top="34.01577" Width="105.82684" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo4" Left="272.12616" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Rate A"/>
      <TfrxMemoView Name="Memo5" Left="359.05535" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Rate B"/>
      <TfrxMemoView Name="Memo6" Left="442.20501" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Rate C"/>
      <TfrxMemoView Name="Memo11" Left="525.35467" Top="34.01577" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Total Hours"/>
      <TfrxMemoView Name="Memo12" Left="623.62245" Top="34.01577" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Material Costs"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="30.23624" Left="0" Top="226.7718" Width="718.1107">
      <TfrxSysMemoView Name="SysMemo1" Left="11.33859" Top="0" Width="94.48825" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxSysMemoView Name="SysMemo2" Left="272.12616" Top="0" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo3" Left="359.05535" Top="0" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo4" Left="442.20501" Top="0" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo13" Left="525.35467" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo5" Left="623.62245" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="60.47248" Left="0" Top="317.48052" Width="718.1107">
      <TfrxMemoView Name="Memo14" Left="3.77953" Top="3.77953000000002" Width="105.82684" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Month Summary"/>
      <TfrxSysMemoView Name="SysMemo6" Left="3.77953" Top="30.23624" Width="132.28355" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs in Progress"/>
      <TfrxSysMemoView Name="SysMemo7" Left="272.12616" Top="30.23624" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo8" Left="359.05535" Top="30.23624" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo9" Left="442.20501" Top="30.23624" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo10" Left="627.40198" Top="30.23624" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo15" Left="525.35467" Top="30.23624" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_a&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_b&#34;&#62;,MasterData1)+SUM(&#60;ds.&#34;labour_c&#34;&#62;,MasterData1)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
�Oٵ�B���vAssigned Jobs in Progress�select jobid, 
          job_types.jobtype AS job_type,
          funcGetCustomerName(jobid), 
          funcGetEquipString(jobid), 
          funcGetRepairEngineer(jobid)

from jobs

join job_types on jobs.jobtypeid=job_types.jobtypeid
JOIN branches ON jobs.RepairBranchID=branches.BranchID

where jobs.WIP="1"
and engstatusid="5"
and branches.BranchName="[BRANCHNAME]"
and jobs.jobtypeid IN ("1","2","3","4","8")
and jobs.repairedbyid IS NOT NULL

order by funcGetRepairEngineer(jobid) ASCM<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39568.6770279282" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D22274272696467656E6427220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="672.30736" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Assigned Jobs in Progress at [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="158.74026" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="79.37013" Height="15.11812" DataField="jobid" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;jobid&#34;]"/>
      <TfrxMemoView Name="dsjob_type" Left="79.37013" Top="0" Width="128.50402" Height="15.11812" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
      <TfrxMemoView Name="dsfuncGetCustomerNamejobid" Left="211.65368" Top="0" Width="559.37044" Height="15.11812" DataField="funcGetCustomerName(jobid)" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;funcGetCustomerName(jobid)&#34;]"/>
      <TfrxMemoView Name="dsfuncGetEquipStringjobid" Left="498.89796" Top="0" Width="340.1577" Height="15.11812" DataField="funcGetEquipString(jobid)" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;funcGetEquipString(jobid)&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="279.68522" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="22.67718" Left="0" Top="113.3859" Width="699.21305" Condition="ds.&#34;funcGetRepairEngineer(jobid)&#34;">
      <TfrxMemoView Name="dsfuncGetRepairEngineerjobid" Left="0" Top="0" Width="476.22078" Height="18.89765" DataField="funcGetRepairEngineer(jobid)" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;funcGetRepairEngineer(jobid)&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="22.67718" Left="0" Top="196.53556" Width="699.21305"/>
  </TfrxReportPage>
</TfrxReport>
�Oٵ�B���wCustomers on Stop by Branch�SELECT
	*
FROM
	customers
JOIN
	branches ON customers.BranchID=branches.BranchID
WHERE
	Stopped=1
AND
	branches.BranchName="[BRANCHNAME]"�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39681.5641838426" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;        &#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="649.63018" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Customers on Stop for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="49.13389" Left="0" Top="113.3859" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsCustomerID" Left="0" Top="0" Width="79.37013" Height="15.11812" DataField="CustomerID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerID&#34;]"/>
      <TfrxMemoView Name="dsCustomerName" Left="86.92919" Top="0" Width="510.23655" Height="15.11812" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="dsAccountNo" Left="604.7248" Top="0" Width="158.74026" Height="15.11812" DataField="AccountNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;AccountNo&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="15.11812" Width="699.21305" Height="30.23624" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[&#60;ds.&#34;DeliveryAddr1&#34;&#62;+', '+&#60;ds.&#34;DeliveryAddr2&#34;&#62;+', '+&#60;ds.&#34;DeliveryAddr3&#34;&#62;+', '+&#60;ds.&#34;DeliveryAddr4&#34;&#62;+', '+&#60;ds.&#34;DeliveryAddr5&#34;&#62;+', '+&#60;ds.&#34;DeliveryPostcode&#34;&#62;]"/>
      <TfrxLineView Name="Line1" Left="0" Top="45.35436" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="222.99227" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٵ��B���x"Engineer's Appraisal Data (Part 1):SELECT SUM(funcGetWorkshopInvoiceValue(jobid,"[BRANCHNAME]")) AS invoice_value,
               SUM(funcGetContractValue(jobid)) AS contract_value,
               SUM(funcGetLabourMaterialTotal(jobid)) AS costs,
               SUM(jobs.NumberOff) AS no_items,
               SUM(IF(jobs.warranty="1",1,0)) AS warranties,
               job_types.JobType AS job_type,
               users.username AS engineer,
               DATE_FORMAT(jobs.InvoiceDate,'%m/%Y') AS date_invoiced

FROM jobs

LEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID
LEFT JOIN users ON jobs.RepairedByID=users.userID
LEFT JOIN job_types ON jobs.jobtypeid=job_types.JobTypeID
LEFT JOIN branches ON jobs.repairbranchid=branches.branchid

WHERE jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND final_outcomes.RNRFlag="0"
AND branches.branchname="[BRANCHNAME]"
AND jobs.jobtypeid<16
AND (users.usertypeid="5" OR users.username IN ("Paul Braathen","Mark Ballantyne","Clyde Rennalls","Colin Homer","Mark Lawton","Dave Timmins","Paul Richards","Clive Williams","Simon Shepherd","Gary Bird","Simon Stokes","Ian Brownsword","Tony Skidmore","Matthew King"))
AND users.username<>"."
AND users.username<>"Put Down"


GROUP BY jobs.RepairedByID ASC, DATE_FORMAT(jobs.InvoiceDate,'%m/%Y') ASC, job_types.JobType ASC9�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39435.4232142361" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D31322D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D31322D313927220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="5" RightMargin="5" TopMargin="5" BottomMargin="5" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" Height="52.91342" Left="0" ParentFont="False" Top="18.89765" Width="1084.72511">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="581.59864" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Engineer's Appraisal Data (Part 1)"/>
      <TfrxMemoView Name="Memo1" Left="3.77953" Top="30.23624" Width="529.1342" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" Frame.Color="16777215" ParentFont="False" VAlign="vaCenter" Text="[tknBRANCHNAME] for [tknSTARTDATE] to [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="421.55906" Left="0" Top="177.63791" Width="1084.72511" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxDBCrossView Name="DBCross1" Left="3.77953" Top="0" Width="439" Height="414" AddHeight="0" AddWidth="0" CellLevels="5" DownThenAcross="False" NextCrossGap="0" RowLevels="2" CellFields.Text="invoice_value&#13;&#10;contract_value&#13;&#10;no_items&#13;&#10;warranties&#13;&#10;costs" ColumnFields.Text="date_invoiced" DataSet="ds" DataSetName="ds" RowFields.Text="engineer&#13;&#10;job_type" PropData="054D656D6F730A815100003C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C63726F73733E3C63656C6C6D656D6F733E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223234312E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223236332E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223238352E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223330372E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223332392E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223335312E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223337332E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223339352E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223431372E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223433392E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223436312E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223438332E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223530352E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223532372E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223534392E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363730303334362220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223234312E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223236332E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223238352E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223330372E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223332392E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223335312E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223337332E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223339352E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223431372E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223433392E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223436312E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223438332E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223530352E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223532372E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2230222F3E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223534392E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22C2A3302E3030222F3E3C2F63656C6C6D656D6F733E3C63656C6C6865616465726D656D6F733E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223234312E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E766F6963652056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223236332E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F6E74726163742056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223238352E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224E6F2E204974656D73222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223330372E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2257617272616E74696573222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223332392E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F737473222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223335312E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E766F6963652056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223337332E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F6E74726163742056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223339352E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224E6F2E204974656D73222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223431372E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2257617272616E74696573222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223433392E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F737473222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223436312E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22496E766F6963652056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223438332E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F6E74726163742056616C7565222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223530352E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224E6F2E204974656D73222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223532372E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2257617272616E74696573222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223534392E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22436F737473222F3E3C2F63656C6C6865616465726D656D6F733E3C636F6C756D6E6D656D6F733E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223231392E3633373931222057696474683D22393522204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F636F6C756D6E6D656D6F733E3C636F6C756D6E746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D223334312E37373935332220546F703D223231392E3633373931222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224772616E6420546F74616C222F3E3C2F636F6C756D6E746F74616C6D656D6F733E3C636F726E65726D656D6F733E3C546672784D656D6F56696577204C6566743D2232332E37373935332220546F703D223139372E3633373931222057696474683D2232323322204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D223234362E37373935332220546F703D223139372E3633373931222057696474683D2231373622204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224461746520496E766F69636564222F3E3C546672784D656D6F56696577204C6566743D223135322E37373935332220546F703D223231392E3633373931222057696474683D22393422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D2244617461222F3E3C546672784D656D6F56696577204C6566743D2232332E37373935332220546F703D223231392E3633373931222057696474683D22363522204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22456E67696E656572222F3E3C546672784D656D6F56696577204C6566743D2238382E37373935332220546F703D223231392E3633373931222057696474683D22363422204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222E2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224A6F622054797065222F3E3C2F636F726E65726D656D6F733E3C726F776D656D6F733E3C546672784D656D6F56696577204C6566743D2232332E37373935332220546F703D223234312E3633373931222057696474683D22363522204865696768743D2232323022205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577204C6566743D2238382E37373935332220546F703D223234312E3633373931222057696474683D22363422204865696768743D2231313022205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F726F776D656D6F733E3C726F77746F74616C6D656D6F733E3C546672784D656D6F56696577204C6566743D2232332E37373935332220546F703D223436312E3633373931222057696474683D2231323922204865696768743D2231313022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231363632393134332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D224772616E6420546F74616C222F3E3C546672784D656D6F56696577204C6566743D2238382E37373935332220546F703D223335312E3633373931222057696474683D22363422204865696768743D2231313022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D2231333432313737322220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C7365222056416C69676E3D22766143656E7465722220546578743D22546F74616C222F3E3C2F726F77746F74616C6D656D6F733E3C63656C6C66756E6374696F6E733E3C6974656D20312F3E3C6974656D20312F3E3C6974656D20312F3E3C6974656D20312F3E3C6974656D20312F3E3C2F63656C6C66756E6374696F6E733E3C636F6C756D6E736F72743E3C6974656D20302F3E3C2F636F6C756D6E736F72743E3C726F77736F72743E3C6974656D20302F3E3C6974656D20302F3E3C2F726F77736F72743E3C2F63726F73733E"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="684.09493" Width="1084.72511">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="22.67718" Left="0" Top="132.28355" Width="1084.72511" Condition="ds.&#34;engineer&#34;" StartNewPage="True"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="0" Left="0" Top="623.62245" Width="1084.72511"/>
  </TfrxReportPage>
</TfrxReport>
��2��Oٵ$B���yIncomplete Delivery Manifests�SELECT 
	delivery_manifests.*,
	COUNT(jobs.JobID) AS cnt,
                users.Username AS created_by
FROM 
	delivery_manifests
LEFT JOIN jobs ON delivery_manifests.ManifestID=jobs.ManifestID
JOIN branches ON delivery_manifests.BranchID=branches.BranchID
JOIN users ON delivery_manifests.CreatedByID=users.UserID
WHERE 
	delivery_manifests.Completed=0
AND
	branches.BranchName='[BRANCH]'
GROUP BY delivery_manifests.ManifestID
ORDER BY delivery_manifests.DateTimeCreated ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39359.6949614468" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C24000000204E616D653D22746B6E4252414E4348222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="52.91342" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="687.42548" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Incomplete Delivery Manifests at [tknBRANCH]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="177.63791" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsManifestID" Left="0" Top="0" Width="75.5906" Height="15.11812" DataField="ManifestID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;ManifestID&#34;]"/>
      <TfrxMemoView Name="dsDateTimeCreated" Left="90.70872" Top="0" Width="132.28355" Height="15.11812" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeCreated&#34;]"/>
      <TfrxMemoView Name="dscreated_by" Left="230.55133" Top="0" Width="117.16543" Height="15.11812" DataField="created_by" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;created_by&#34;]"/>
      <TfrxMemoView Name="dsDescription" Left="351.49629" Top="0" Width="279.68522" Height="15.11812" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;Description&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="646.29963" Top="0" Width="52.91342" Height="15.11812" DataField="cnt" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;cnt&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="298.58287" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxFooter Name="Footer1" Height="22.67718" Left="0" Top="215.43321" Width="699.21305">
      <TfrxLineView Name="Line2" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="0" Width="154.96073" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] manifests"/>
      <TfrxMemoView Name="Memo11" Left="646.29963" Top="0" Width="52.91342" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;cnt&#34;&#62;,MasterData1)] jobs"/>
    </TfrxFooter>
    <TfrxColumnHeader Name="ColumnHeader1" Height="22.67718" Left="0" Top="94.48825" Width="699.21305">
      <TfrxLineView Name="Line1" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo2" Left="0" Top="7.55906" Width="75.5906" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="ManifestID"/>
      <TfrxMemoView Name="Memo3" Left="90.70872" Top="7.55906" Width="132.28355" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Created At"/>
      <TfrxMemoView Name="Memo4" Left="230.55133" Top="7.55906" Width="117.16543" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Created By"/>
      <TfrxMemoView Name="Memo5" Left="351.49629" Top="7.55906" Width="279.68522" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Description"/>
      <TfrxMemoView Name="Memo6" Left="646.29963" Top="7.55906" Width="52.91342" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs"/>
    </TfrxColumnHeader>
  </TfrxReportPage>
</TfrxReport>
����&Oٵ �B���z"Invoice Jobs by Equipment Category�SELECT
	JobID,
	funcGetCustomerName(JobID) AS customer,
	funcGetEquipString(JobID) AS equip_string,
	funcGetInvoiceValue(JobID) AS invoice_value,
	funcGetLabourMaterialTotal(JobID) AS total_cost
FROM
	jobs
JOIN
	equipment ON jobs.EquipmentID=equipment.EquipmentID
JOIN
	categories ON equipment.CategoryID=categories.CategoryID
WHERE 
	jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND
	categories.CategoryName="[CATEGORYNAME]"
ORDER BY
	jobs.DateTimeOfEntry ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39517.3923089236" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E43415445474F52594E414D45222056616C75653D22274472697665272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30322D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30322D323927220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknCATEGORYNAME] jobs invoiced between [tknSTARTDATE] &#38; [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="113.3859" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="302.3624" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxDetailData Name="DetailData1" Height="15.11812" Left="0" Top="181.41744" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="60.47248" Height="15.11812" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dscustomer" Left="64.25201" Top="0" Width="188.9765" Height="15.11812" DataField="customer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="257.00804" Top="0" Width="279.68522" Height="15.11812" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="544.25232" Top="0" Width="79.37013" Height="15.11812" DataField="invoice_value" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;invoice_value&#34;]"/>
      <TfrxMemoView Name="dstotal_cost" Left="631.18151" Top="0" Width="68.03154" Height="15.11812" DataField="total_cost" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;total_cost&#34;]"/>
    </TfrxDetailData>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="136.06308" Width="699.21305">
      <TfrxLineView Name="Line1" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo2" Left="0" Top="7.55906" Width="60.47248" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo3" Left="64.25201" Top="7.55906" Width="188.9765" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer"/>
      <TfrxMemoView Name="Memo4" Left="257.00804" Top="7.55906" Width="279.68522" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo5" Left="544.25232" Top="7.55906" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoiced"/>
      <TfrxMemoView Name="Memo6" Left="631.18151" Top="7.55906" Width="68.03154" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Cost"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="22.67718" Left="0" Top="219.21274" Width="699.21305">
      <TfrxMemoView Name="Memo10" Left="544.25232" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]"/>
      <TfrxLineView Name="Line2" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo11" Left="631.18151" Top="0" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo12" Left="0" Top="0" Width="60.47248" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)] jobs"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٵ�B���{
Job Locations�SELECT
jobs.Location,
jobs.JobID,
customers.CustomerName,
equipment.ModelNumber,
manufacturers.ManufacturerName
FROM jobs
JOIN branches ON (jobs.BranchID=branches.BranchID OR jobs.RepairBranchID=branches.BranchID)
JOIN customers ON jobs.CustomerID=customers.CustomerID
JOIN equipment ON jobs.EquipmentID=equipment.EquipmentID
JOIN manufacturers ON equipment.ManufacturerID=manufacturers.ManufacturerID
WHERE Location<>""
AND branches.BranchName="[BRANCHNAME]"
AND WIP=1 ORDER BY Location ASCk<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39751.3542887037" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="660.96877" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Job Locations in [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="113.3859" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="325.03958" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="22.67718" Left="0" Top="158.74026" Width="699.21305" Condition="ds.&#34;Location&#34;">
      <TfrxMemoView Name="dsLocation" Left="0" Top="0" Width="177.63791" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Location: [ds.&#34;Location&#34;]"/>
    </TfrxGroupHeader>
    <TfrxDetailData Name="DetailData1" Height="15.11812" Left="0" Top="204.09462" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="7.55906" Top="0" Width="79.37013" Height="15.11812" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dsCustomerName" Left="94.48825" Top="0" Width="215.43321" Height="15.11812" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="dsModelNumber" Left="317.48052" Top="0" Width="370.39394" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;ManufacturerName&#34;] [ds.&#34;ModelNumber&#34;]"/>
    </TfrxDetailData>
    <TfrxGroupFooter Name="GroupFooter1" Height="22.67718" Left="0" Top="241.88992" Width="699.21305"/>
  </TfrxReportPage>
</TfrxReport>
�Oٵ'<B���|Overdue OrdersiSELECT
	suppliers.SupplierName AS supplier_name,
	orders.OrderDate AS order_date,
	order_items.ItemDeliveryDate AS delivery_date,
	orders.OrderNo AS order_no,
	order_items.JobID AS job_id,
	order_items.QuantityOrdered AS quantity_ordered,
	order_items.QuantityReceived AS quantity_receieved,
	order_items.SupplierPartNo AS part_no,
	order_items.ItemDesc AS item_desc,
	order_items.UnitPrice AS unit_price

FROM orders


JOIN order_items ON orders.OrderID=order_items.OrderID
JOIN jobs ON order_items.JobID=jobs.JobID
JOIN suppliers ON orders.SupplierID=suppliers.SupplierID
JOIN branches ON orders.BranchID=branches.BranchID


WHERE orders.DeliveryDate<CURRENT_DATE
AND order_items.QuantityOrdered>order_items.QuantityReceived
AND	UnitPrice>0
AND	jobs.EngStatusID<6
AND	suppliers.SupplierName<>"Stock Usagegross"
AND	suppliers.SupplierName<>"International Parts Supply Usage"
AND         suppliers.SupplierName<>"365 Express Couriers"
AND        suppliers.SupplierName<>"STOCK USAGE - BRIDGEND"
AND        branches.branchname="[BRANCHNAME]"


ORDER BY suppliers.SupplierName ASC,orders.OrderNo ASC�"<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39301.5080237037" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="596.71676" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Overdue Orders"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="185.19697" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsorder_date" Left="7.55906" Top="0" Width="79.37013" Height="15.11812" DataField="order_date" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;order_date&#34;]"/>
      <TfrxMemoView Name="dsdelivery_date" Left="90.70872" Top="0" Width="79.37013" Height="15.11812" DataField="delivery_date" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;delivery_date&#34;]"/>
      <TfrxMemoView Name="dsorder_no" Left="173.85838" Top="0" Width="79.37013" Height="15.11812" DataField="order_no" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;order_no&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="257.00804" Top="0" Width="79.37013" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsquantity_ordered" Left="340.1577" Top="0" Width="79.37013" Height="15.11812" DataField="quantity_ordered" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;quantity_ordered&#34;]"/>
      <TfrxMemoView Name="dsquantity_receieved" Left="423.30736" Top="0" Width="79.37013" Height="15.11812" DataField="quantity_receieved" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;quantity_receieved&#34;]"/>
      <TfrxMemoView Name="dspart_no" Left="506.45702" Top="0" Width="158.74026" Height="15.11812" DataField="part_no" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;part_no&#34;]"/>
      <TfrxMemoView Name="dsitem_desc" Left="668.97681" Top="0" Width="260.78757" Height="15.11812" DataField="item_desc" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;item_desc&#34;]"/>
      <TfrxMemoView Name="dsunit_price" Left="941.10297" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;unit_price&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="294.80334" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="884.41002" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="49.13389" Left="0" Top="113.3859" Width="1028.03216" Condition="ds.&#34;supplier_name&#34;">
      <TfrxMemoView Name="dssupplier_name" Left="0" Top="7.55906" Width="400.63018" Height="18.89765" DataField="supplier_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;supplier_name&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="7.55906" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Order Date"/>
      <TfrxMemoView Name="Memo2" Left="90.70872" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Del Date"/>
      <TfrxMemoView Name="Memo3" Left="173.85838" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Order No"/>
      <TfrxMemoView Name="Memo4" Left="257.00804" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo5" Left="340.1577" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Ordered"/>
      <TfrxMemoView Name="Memo6" Left="423.30736" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Delivered"/>
      <TfrxMemoView Name="Memo10" Left="506.45702" Top="34.01577" Width="158.74026" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Supplier Part No"/>
      <TfrxMemoView Name="Memo11" Left="668.97681" Top="34.01577" Width="260.78757" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Item Description"/>
      <TfrxMemoView Name="Memo12" Left="941.10297" Top="34.01577" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Unit Price"/>
      <TfrxLineView Name="Line1" Left="7.55906" Top="49.13389" Width="1012.91404" Height="0" Frame.Typ="4"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="11.33859" Left="0" Top="222.99227" Width="1028.03216"/>
  </TfrxReportPage>
</TfrxReport>
�OٵB���}RNR Jobs ready to go2dSELECT jobs.jobid AS job_id,
               jobs.oldjobid AS old_job_id,
               jobs.repairbranchid AS repair_branch,
               jobs.jobtypeid AS job_type_id,
               job_types.jobtype AS job_type_text,
               funcGetCustomerName(jobid) AS customer_name,
               funcGetEquipString(jobid) AS equip_string,
               jobs.engstatusid AS eng_status,
               jobs.location AS location,
               jobs.finaloutcomeid AS final_outcome_id,
               final_outcomes.finaloutcome AS final_outcome_text,
               final_outcomes.rnrflag AS rnr_flag
FROM jobs
JOIN final_outcomes ON jobs.finaloutcomeid=final_outcomes.finaloutcomeid
JOIN job_types ON jobs.jobtypeid=job_types.jobtypeid
JOIN branches ON jobs.repairbranchid=branches.branchid
WHERE final_outcomes.rnrflag="1" AND jobs.engstatusid="5" AND jobs.repairbranchid = "1"
AND jobs.jobtypeid IN ("1","8","12")
AND branches.branchname="[BRANCHNAME]"
ORDER BY jobs.jobtypeid ASC, jobs.location ASC
               �<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39308.5321052778" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="45.35436" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="264.11812" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="RNR jobs ready to go"/>
      <TfrxMemoView Name="Memo8" Left="3.77953" Top="26.45671" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="215.43321" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="79.37013" Height="18.89765" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="211.65368" Top="0" Width="219.21274" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="430.86642" Top="0" Width="377.953" Height="18.89765" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsfinal_outcome_text" Left="808.81942" Top="0" Width="238.11039" Height="18.89765" DataField="final_outcome_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;final_outcome_text&#34;]"/>
      <TfrxMemoView Name="dsold_job_id" Left="94.48825" Top="0" Width="94.48825" Height="18.89765" DataField="old_job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;old_job_id&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="343.93723" Width="1046.92981">
      <TfrxMemoView Name="Memo9" Left="899.52814" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strUserName" Left="0" Top="0" Width="109.60637" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[strUserName]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="22.67718" Left="0" Top="170.07885" Width="1046.92981" Condition="ds.&#34;location&#34;">
      <TfrxMemoView Name="dslocation" Left="0" Top="0" Width="1046.92981" Height="18.89765" DataField="location" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="[ds.&#34;location&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="0" Left="0" Top="260.78757" Width="1046.92981"/>
    <TfrxGroupHeader Name="GroupHeader2" Height="22.67718" Left="0" Top="124.72449" Width="1046.92981" Condition="ds.&#34;job_type_text&#34;" StartNewPage="True">
      <TfrxMemoView Name="dsjob_type_text" Left="0" Top="0" Width="238.11039" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter2" Height="0" Left="0" Top="283.46475" Width="1046.92981"/>
  </TfrxReportPage>
</TfrxReport>
�Oٵ#FB���Overdue Jobs (Unassigned)	QSELECT
       jobs.JobID AS job_id,
       job_types.JobType AS job_type_text,
       job_classes.JobClass AS class_text,
       funcGetCustomerName(jobs.JobID) AS customer_name,
       funcGetEquipString(jobs.JobID) AS equip_string,
       funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") AS overdue_days
           
FROM jobs

LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID

WHERE 
	funcGetDaysOverdue(jobs.JobID,"[NOWDATE]")<>0
AND
	WIP=1
AND
	(jobs.RepairedByID="" OR jobs.RepairedByID IS NULL)
AND
	jobs.JobTypeID IN ("1","8")
AND
	jobs.EngStatusID IN ("4","5")
AND
	branches.BranchName="[BRANCHNAME]"

ORDER BY
    jobs.JobTypeID ASC,
    funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40141.4312859028" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323427220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Unassigned Overdue Jobs in Current WIP for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="45.35436" Left="0" Top="192.75603" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxShapeView Name="Shape1" Left="0" Top="0" Width="1046.92981" Height="37.7953"/>
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="79.37013" Height="18.89765" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsjob_type_text" Left="83.14966" Top="0" Width="94.48825" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="dsclass_text" Left="181.41744" Top="0" Width="102.04731" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;class_text&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="287.24428" Top="0" Width="287.24428" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="585.82715" Top="0" Width="287.24428" Height="18.89765" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsoverdue_days" Left="933.54391" Top="0" Width="90.70872" Height="18.89765" DataField="overdue_days" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;overdue_days&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="18.89765" Width="1046.92981" Height="18.89765"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="423.30736" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="56.69295" Left="0" Top="113.3859" Width="1046.92981" Condition="ds.&#34;job_type_text&#34;" KeepTogether="True" StartNewPage="True">
      <TfrxMemoView Name="dsjob_type_text1" Left="0" Top="3.77952999999999" Width="188.9765" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="37.7953" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo2" Left="83.14966" Top="37.7953" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="37.7953" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Priority"/>
      <TfrxMemoView Name="Memo4" Left="287.24428" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo5" Left="585.82715" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="933.54391" Top="37.7953" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Days Overdue"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="26.45671" Left="0" Top="260.78757" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="0" Top="0" Width="483.77984" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="52.91342" Left="0" Top="347.71676" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo2" Left="0" Top="26.45671" Width="570.70903" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue Total"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
�Oٵ'lB��߀"Overdue Jobs by Equipment Category	�SELECT
       jobs.JobID AS job_id,
       job_types.JobType AS job_type_text,
       job_classes.JobClass AS class_text,
       funcGetCustomerName(jobs.JobID) AS customer_name,
       funcGetEquipString(jobs.JobID) AS equip_string,
       funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") AS overdue_days,
       categories.CategoryName
           
FROM jobs

LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
LEFT JOIN equipment ON jobs.EquipmentID=equipment.EquipmentID
LEFT JOIN categories ON equipment.CategoryID=categories.CategoryID

WHERE 
	funcGetDaysOverdue(jobs.JobID,"[NOWDATE]")<>0
AND
	WIP=1
AND
	jobs.JobTypeID IN ("1","8")
AND
	jobs.EngStatusID IN ("4","5")
AND
	branches.BranchName="[BRANCHNAME]"

ORDER BY
	categories.CategoryName ASC,
    jobs.JobTypeID ASC,
    funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") ASCF#<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39830.6607437732" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D30312D313727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="41.57483" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="808.37044" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Overdue Jobs for [tknBRANCHNAME] by Equipment Category"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="45.35436" Left="0" Top="260.78757" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxShapeView Name="Shape1" Left="22.67718" Top="0" Width="1024.25263" Height="37.7953"/>
      <TfrxMemoView Name="dsjob_id" Left="26.45671" Top="0" Width="75.5906" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsjob_type_text" Left="105.82684" Top="0" Width="98.26778" Height="15.11812" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="dsclass_text" Left="207.87415" Top="0" Width="109.60637" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;class_text&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="321.26005" Top="0" Width="287.24428" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="627.40198" Top="0" Width="287.24428" Height="15.11812" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsoverdue_days" Left="933.54391" Top="0" Width="90.70872" Height="18.89765" DataField="overdue_days" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;overdue_days&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="22.67718" Top="18.89765" Width="1024.25263" Height="18.89765"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="555.59091" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="56.69295" Left="0" Top="181.41744" Width="1046.92981" Condition="ds.&#34;job_type_text&#34;">
      <TfrxMemoView Name="dsjob_type_text1" Left="11.33859" Top="3.77953" Width="188.9765" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type_text&#34;] jobs"/>
      <TfrxMemoView Name="Memo1" Left="26.45671" Top="37.7953" Width="75.5906" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo2" Left="105.82684" Top="37.7953" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo3" Left="207.87415" Top="37.7953" Width="109.60637" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Priority"/>
      <TfrxMemoView Name="Memo4" Left="321.26005" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo5" Left="627.40198" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="933.54391" Top="37.7953" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Days Overdue"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="26.45671" Left="0" Top="328.81911" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="26.45671" Top="0" Width="483.77984" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue in [ds.&#34;job_type_text&#34;]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="52.91342" Left="0" Top="480.00031" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo2" Left="37.7953" Top="11.33859" Width="570.70903" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue Total"/>
    </TfrxReportSummary>
    <TfrxGroupHeader Name="GroupHeader2" Height="37.7953" Left="0" Top="120.94496" Width="1046.92981" Condition="ds.&#34;CategoryName&#34;">
      <TfrxMemoView Name="dsCategoryName" Left="0" Top="3.77953" Width="502.67749" Height="18.89765" DataField="CategoryName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;CategoryName&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter2" Height="41.57483" Left="0" Top="377.953" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo3" Left="22.67718" Top="0" Width="657.63822" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue for [ds.&#34;CategoryName&#34;]"/>
      <TfrxLineView Name="Line1" Left="0" Top="26.45671" Width="1046.92981" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�OٵB��߁Overdue Jobs by Job Type	\SELECT
	branches.BranchName AS branch_name,
	job_types.JobType AS job_type,
	status_eng.StatusID AS status_id,
	status_eng.StatusName AS status_name,
	jobs.JobID AS job_id,
	funcGetCustomerName(jobs.JobID) AS customer_name,
	jobs.EquipmentID AS equipment_id,
	funcGetEquipString(jobs.JobID) AS equipment,
                funcGetRepairEngineer(jobs.JobID) AS repair_engineer,
	funcGetDueDate(jobs.JobID) AS due_date	
FROM 
	jobs 
LEFT JOIN branches ON jobs.BranchID=branches.BranchID
LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN status_eng ON jobs.EngStatusID=status_eng.StatusID
WHERE
	funcIsJobOverdue(JobID,"[DATENOW]")="TRUE"
	AND
	jobs.WIP=1
                AND
               funcGetEquipString(jobs.JobID) NOT LIKE "%U Code%"
ORDER BY
	branches.BranchName ASC,
	job_types.JobType ASC,
	jobs.EngStatusID ASC<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39198.7873318056" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E444154454E4F57222056616C75653D2227323030372D30342D333027220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="45.35436" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Overdue Jobs by Job Type on [tknDATENOW]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="124.72449" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="45.35436" Left="0" Top="442.20501" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="11.33859" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="502.67749" Top="11.33859" Width="197.69295" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strUserName" Left="302.3624" Top="11.33859" Width="120.94496" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[strUserName]"/>
      <TfrxLineView Name="Line1" Left="0" Top="3.77953" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="22.67718" Left="0" Top="147.40167" Width="699.21305" Condition="ds.&#34;branch_name&#34;">
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="0" Width="238.11039" Height="18.89765" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="18.89765" Left="0" Top="192.75603" Width="699.21305" Condition="ds.&#34;job_type&#34;">
      <TfrxMemoView Name="dsjob_type" Left="15.11812" Top="0" Width="128.50402" Height="15.11812" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
    </TfrxGroupHeader>
    <TfrxDetailData Name="DetailData1" Height="15.11812" Left="0" Top="272.12616" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsjob_id" Left="45.35436" Top="0" Width="56.69295" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="249.44898" Top="0" Width="147.40167" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" WordWrap="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequipment" Left="400.63018" Top="0" Width="177.63791" Height="15.11812" DataField="equipment" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equipment&#34;]"/>
      <TfrxMemoView Name="dsdue_date" Left="582.04762" Top="0" Width="117.16543" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Due on [ds.&#34;due_date&#34;]"/>
      <TfrxMemoView Name="dsrepair_engineer" Left="105.82684" Top="0" Width="139.84261" Height="15.11812" DataField="repair_engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;repair_engineer&#34;]"/>
    </TfrxDetailData>
    <TfrxGroupFooter Name="GroupFooter1" Height="7.55906" Left="0" Top="374.17347" Width="699.21305"/>
    <TfrxGroupFooter Name="GroupFooter2" Height="7.55906" Left="0" Top="343.93723" Width="699.21305"/>
    <TfrxGroupHeader Name="GroupHeader3" Height="15.11812" Left="0" Top="234.33086" Width="699.21305" Condition="ds.&#34;status_name&#34;">
      <TfrxMemoView Name="dsstatus_name" Left="30.23624" Top="0" Width="411.96877" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Eng Status [ds.&#34;status_id&#34;]: [ds.&#34;status_name&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter3" Height="11.33859" Left="0" Top="309.92146" Width="699.21305"/>
  </TfrxReportPage>
</TfrxReport>
�Oٵ'?B��߂ Overdue Jobs by Operations Group	�SELECT
       jobs.JobID AS job_id,
       job_types.JobType AS job_type_text,
       job_classes.JobClass AS class_text,
       funcGetCustomerName(jobs.JobID) AS customer_name,
       funcGetEquipString(jobs.JobID) AS equip_string,
       funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") AS overdue_days,
       groups.GroupName
           
FROM jobs

LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
LEFT JOIN customers ON jobs.CustomerID=customers.CustomerID
LEFT JOIN groups ON customers.GroupID=groups.GroupID

WHERE 
	funcGetDaysOverdue(jobs.JobID,"[NOWDATE]")<>0
AND
	WIP=1
AND
	jobs.JobTypeID IN ("1","8")
AND
	jobs.EngStatusID IN ("4","5")
AND
	branches.BranchName="[BRANCHNAME]"

ORDER BY
    groups.GroupName ASC,
    jobs.JobTypeID ASC,
    funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") ASC6#<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39830.6565846065" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D30312D313727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="41.57483" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="808.37044" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Overdue Jobs for [tknBRANCHNAME] by Operations Group"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="45.35436" Left="0" Top="260.78757" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxShapeView Name="Shape1" Left="22.67718" Top="0" Width="1024.25263" Height="37.7953"/>
      <TfrxMemoView Name="dsjob_id" Left="26.45671" Top="0" Width="75.5906" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsjob_type_text" Left="105.82684" Top="0" Width="98.26778" Height="15.11812" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="dsclass_text" Left="207.87415" Top="0" Width="109.60637" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;class_text&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="321.26005" Top="0" Width="287.24428" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="627.40198" Top="0" Width="287.24428" Height="15.11812" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsoverdue_days" Left="933.54391" Top="0" Width="90.70872" Height="18.89765" DataField="overdue_days" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;overdue_days&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="22.67718" Top="18.89765" Width="1024.25263" Height="18.89765"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="555.59091" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="56.69295" Left="0" Top="181.41744" Width="1046.92981" Condition="ds.&#34;job_type_text&#34;">
      <TfrxMemoView Name="dsjob_type_text1" Left="11.33859" Top="3.77953" Width="188.9765" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type_text&#34;] jobs"/>
      <TfrxMemoView Name="Memo1" Left="26.45671" Top="37.7953" Width="75.5906" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo2" Left="105.82684" Top="37.7953" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo3" Left="207.87415" Top="37.7953" Width="109.60637" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Priority"/>
      <TfrxMemoView Name="Memo4" Left="321.26005" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo5" Left="627.40198" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="933.54391" Top="37.7953" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Days Overdue"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="26.45671" Left="0" Top="328.81911" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="26.45671" Top="0" Width="483.77984" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue in [ds.&#34;job_type_text&#34;]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="52.91342" Left="0" Top="480.00031" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo2" Left="15.11812" Top="26.45671" Width="570.70903" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue Total"/>
    </TfrxReportSummary>
    <TfrxGroupHeader Name="GroupHeader2" Height="37.7953" Left="0" Top="120.94496" Width="1046.92981" Condition="ds.&#34;GroupName&#34;">
      <TfrxMemoView Name="dsGroupName" Left="0" Top="7.55906" Width="400.63018" Height="18.89765" DataField="GroupName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;GroupName&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter2" Height="41.57483" Left="0" Top="377.953" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo3" Left="22.67718" Top="0" Width="657.63822" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue for [ds.&#34;GroupName&#34;]"/>
      <TfrxLineView Name="Line1" Left="0" Top="26.45671" Width="1046.92981" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٵ%pB��߃Overdue Jobs by Repair Engineer	�SELECT
       jobs.JobID AS job_id,
       job_types.JobType AS job_type_text,
       users.Username AS engineer,
       job_classes.JobClass AS class_text,
       funcGetCustomerName(jobs.JobID) AS customer_name,
       funcGetEquipString(jobs.JobID) AS equip_string,
       funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") AS overdue_days
           
FROM jobs

LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
LEFT JOIN users ON jobs.RepairedByID=users.UserID

WHERE 
	funcGetDaysOverdue(jobs.JobID,"[NOWDATE]")<>0
AND
	WIP=1
AND
	jobs.JobTypeID IN ("1","8")
AND
	jobs.EngStatusID IN ("4","5")
AND
	branches.BranchName="[BRANCHNAME]"
AND
                users.Username<>""

ORDER BY
    jobs.JobTypeID ASC,
    users.Username ASC,
    funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") ASCw!<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40141.4364197801" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323427220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Overdue Jobs by Repair Engineer for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="45.35436" Left="0" Top="241.88992" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxShapeView Name="Shape1" Left="0" Top="0" Width="1046.92981" Height="37.7953"/>
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="79.37013" Height="18.89765" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsjob_type_text" Left="83.14966" Top="0" Width="94.48825" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="dsclass_text" Left="181.41744" Top="0" Width="102.04731" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;class_text&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="287.24428" Top="0" Width="287.24428" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="585.82715" Top="0" Width="287.24428" Height="18.89765" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsoverdue_days" Left="933.54391" Top="0" Width="90.70872" Height="18.89765" DataField="overdue_days" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;overdue_days&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="18.89765" Width="1046.92981" Height="18.89765"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="483.77984" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="34.01577" Left="0" Top="113.3859" Width="1046.92981" Condition="ds.&#34;job_type_text&#34;">
      <TfrxMemoView Name="dsjob_type_text1" Left="0" Top="3.77952999999999" Width="188.9765" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="37.7953" Left="0" Top="309.92146" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="0" Top="0" Width="483.77984" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="52.91342" Left="0" Top="408.18924" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo2" Left="0" Top="26.45671" Width="570.70903" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue Total"/>
    </TfrxReportSummary>
    <TfrxGroupHeader Name="GroupHeader2" Height="49.13389" Left="0" Top="170.07885" Width="1046.92981" Condition="ds.&#34;engineer&#34;" KeepTogether="True" StartNewPage="True">
      <TfrxMemoView Name="dsengineer" Left="-3.77953" Top="0" Width="321.26005" Height="18.89765" DataField="engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[ds.&#34;engineer&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="26.45671" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo2" Left="83.14966" Top="26.45671" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="26.45671" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Priority"/>
      <TfrxMemoView Name="Memo4" Left="287.24428" Top="26.45671" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo5" Left="585.82715" Top="26.45671" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="933.54391" Top="26.45671" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Days Overdue"/>
    </TfrxGroupHeader>
  </TfrxReportPage>
</TfrxReport>
�Oٵ"�B��τOverdue Jobs in Current WIP	K�SELECT
       jobs.JobID AS job_id,
       job_types.JobType AS job_type_text,
       job_classes.JobClass AS class_text,
       funcGetCustomerName(jobs.JobID) AS customer_name,
       funcGetEquipString(jobs.JobID) AS equip_string,
       funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") AS overdue_days
           
FROM jobs

LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID

WHERE 
	funcGetDaysOverdue(jobs.JobID,"[NOWDATE]")<>0
AND
	WIP=1
AND
	jobs.JobTypeID IN ("1","8")
AND
	jobs.EngStatusID IN ("4","5")
AND
	branches.BranchName="[BRANCHNAME]"

ORDER BY
    jobs.JobTypeID ASC,
    funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39364.4740410069" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030372D31302D303927220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Overdue Jobs in Current WIP for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="45.35436" Left="0" Top="192.75603" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxShapeView Name="Shape1" Left="0" Top="0" Width="1046.92981" Height="37.7953"/>
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="79.37013" Height="18.89765" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsjob_type_text" Left="83.14966" Top="0" Width="94.48825" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="dsclass_text" Left="181.41744" Top="0" Width="102.04731" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;class_text&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="287.24428" Top="0" Width="287.24428" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="585.82715" Top="0" Width="287.24428" Height="18.89765" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsoverdue_days" Left="933.54391" Top="0" Width="90.70872" Height="18.89765" DataField="overdue_days" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;overdue_days&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="18.89765" Width="1046.92981" Height="18.89765"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="411.96877" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="56.69295" Left="0" Top="113.3859" Width="1046.92981" Condition="ds.&#34;job_type_text&#34;">
      <TfrxMemoView Name="dsjob_type_text1" Left="0" Top="3.77952999999999" Width="188.9765" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="37.7953" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo2" Left="83.14966" Top="37.7953" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="37.7953" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Priority"/>
      <TfrxMemoView Name="Memo4" Left="287.24428" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo5" Left="585.82715" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="933.54391" Top="37.7953" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Days Overdue"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="15.11812" Left="0" Top="260.78757" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="15.11812" Top="0" Width="483.77984" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="52.91342" Left="0" Top="336.37817" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo2" Left="15.11812" Top="26.45671" Width="570.70903" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs Overdue Total"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
��~��Oٵ#UB��߅Overdue Quotes (Unassigned)
XSELECT
       jobs.JobID AS job_id,
       job_types.JobType AS job_type_text,
       job_classes.JobClass AS class_text,
       funcGetCustomerName(jobs.JobID) AS customer_name,
       funcGetEquipString(jobs.JobID) AS equip_string,
       funcGetDaysOverdueQuote(jobs.JobID,"[NOWDATE]") AS overdue_days
           
FROM jobs

LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID

WHERE 
	funcGetDaysOverdueQuote(jobs.JobID,"[NOWDATE]")<>0
AND
	WIP=1
AND
	(jobs.QuotedByID="" OR jobs.QuotedByID IS NULL)
AND
	jobs.JobTypeID IN ("1","8")
AND
	jobs.EngStatusID IN ("1")
AND
	branches.BranchName="[BRANCHNAME]"

ORDER BY
    jobs.JobTypeID ASC,
    funcGetDaysOverdueQuote(jobs.JobID,"[NOWDATE]") ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40144.4670477431" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Unassigned Overdue Quotes in Current WIP for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="45.35436" Left="0" Top="192.75603" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxShapeView Name="Shape1" Left="0" Top="0" Width="1046.92981" Height="37.7953"/>
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="79.37013" Height="18.89765" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsjob_type_text" Left="83.14966" Top="0" Width="94.48825" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="dsclass_text" Left="181.41744" Top="0" Width="102.04731" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;class_text&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="287.24428" Top="0" Width="287.24428" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="585.82715" Top="0" Width="287.24428" Height="18.89765" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsoverdue_days" Left="933.54391" Top="0" Width="90.70872" Height="18.89765" DataField="overdue_days" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;overdue_days&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="18.89765" Width="1046.92981" Height="18.89765"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="423.30736" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="56.69295" Left="0" Top="113.3859" Width="1046.92981" Condition="ds.&#34;job_type_text&#34;" KeepTogether="True" StartNewPage="True">
      <TfrxMemoView Name="dsjob_type_text1" Left="0" Top="3.77952999999999" Width="188.9765" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="37.7953" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo2" Left="83.14966" Top="37.7953" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="37.7953" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Priority"/>
      <TfrxMemoView Name="Memo4" Left="287.24428" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo5" Left="585.82715" Top="37.7953" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="933.54391" Top="37.7953" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Days Overdue"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="26.45671" Left="0" Top="260.78757" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="0" Top="0" Width="483.77984" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Quotes Overdue"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="52.91342" Left="0" Top="347.71676" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo2" Left="0" Top="26.45671" Width="570.70903" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Quotes Overdue Total"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
�Oٵ%�B��߆!Overdue Quotes by Quoted Engineer
�SELECT
       jobs.JobID AS job_id,
       job_types.JobType AS job_type_text,
       users.Username AS engineer,
       job_classes.JobClass AS class_text,
       funcGetCustomerName(jobs.JobID) AS customer_name,
       funcGetEquipString(jobs.JobID) AS equip_string,
       funcGetDaysOverdueQuote(jobs.JobID,"[NOWDATE]") AS overdue_days
           
FROM jobs

LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
LEFT JOIN users ON jobs.QuotedByID=users.UserID

WHERE 
	funcGetDaysOverdueQuote(jobs.JobID,"[NOWDATE]")<>0
AND
	WIP=1
AND
	jobs.JobTypeID IN ("1","8")
AND
	jobs.EngStatusID IN ("1")
AND
	branches.BranchName="[BRANCHNAME]"
AND
                users.Username<>""

ORDER BY
    jobs.JobTypeID ASC,
    users.Username ASC,
    funcGetDaysOverdueQuote(jobs.JobID,"[NOWDATE]") ASC|!<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40144.4625484259" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Overdue Quotes by Quote Engineer for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="45.35436" Left="0" Top="241.88992" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxShapeView Name="Shape1" Left="0" Top="0" Width="1046.92981" Height="37.7953"/>
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="79.37013" Height="18.89765" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsjob_type_text" Left="83.14966" Top="0" Width="94.48825" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="dsclass_text" Left="181.41744" Top="0" Width="102.04731" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;class_text&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="287.24428" Top="0" Width="287.24428" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="585.82715" Top="0" Width="287.24428" Height="18.89765" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsoverdue_days" Left="933.54391" Top="0" Width="90.70872" Height="18.89765" DataField="overdue_days" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;overdue_days&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="18.89765" Width="1046.92981" Height="18.89765"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="483.77984" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="34.01577" Left="0" Top="113.3859" Width="1046.92981" Condition="ds.&#34;job_type_text&#34;">
      <TfrxMemoView Name="dsjob_type_text1" Left="0" Top="3.77952999999999" Width="188.9765" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="37.7953" Left="0" Top="309.92146" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="0" Top="0" Width="483.77984" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Quotes Overdue"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="52.91342" Left="0" Top="408.18924" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo2" Left="0" Top="26.45671" Width="570.70903" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Quotes Overdue Total"/>
    </TfrxReportSummary>
    <TfrxGroupHeader Name="GroupHeader2" Height="49.13389" Left="0" Top="170.07885" Width="1046.92981" Condition="ds.&#34;engineer&#34;" KeepTogether="True" StartNewPage="True">
      <TfrxMemoView Name="dsengineer" Left="-3.77953" Top="0" Width="321.26005" Height="18.89765" DataField="engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[ds.&#34;engineer&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="26.45671" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo2" Left="83.14966" Top="26.45671" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="26.45671" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Priority"/>
      <TfrxMemoView Name="Memo4" Left="287.24428" Top="26.45671" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo5" Left="585.82715" Top="26.45671" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="933.54391" Top="26.45671" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Days Overdue"/>
    </TfrxGroupHeader>
  </TfrxReportPage>
</TfrxReport>
�Oٵ8B��χMonth End Parts Value�SELECT
	COUNT(*) AS record_count,
	SUM(QtyInStock*UnitPrice) AS stock_value
FROM
	parts
JOIN
	branches ON parts.BranchID=branches.BranchID
WHERE
	branches.BranchName="[BRANCHNAME]"8<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39681.5692804745" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="694.98454" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Stock Value for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="113.3859" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsrecord_count" Left="325.03958" Top="0" Width="120.94496" Height="18.89765" DataField="record_count" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;record_count&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="49.13389" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Date:"/>
      <TfrxMemoView Name="Date" Left="49.13389" Top="0" Width="102.04731" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[Date]"/>
      <TfrxMemoView Name="Memo2" Left="253.22851" Top="0" Width="71.81107" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Records:"/>
      <TfrxMemoView Name="Memo3" Left="521.57514" Top="0" Width="56.69295" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Value:"/>
      <TfrxMemoView Name="dsstock_value" Left="578.26809" Top="0" Width="120.94496" Height="18.89765" DataField="stock_value" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;stock_value&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="196.53556" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
��r��Oٵ�B��ψParts by SupplierSELECT
	suppliers.SupplierName,
	COUNT(parts.PartID) AS cnt 
FROM
	parts
JOIN
	suppliers ON parts.SupplierID=suppliers.SupplierID
JOIN
	branches ON parts.BranchID=branches.BranchID
WHERE
	branches.BranchName="[BRANCHNAME]"
GROUP BY
	parts.SupplierID
ORDER BY cnt DESC(<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39715.3634056944" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="524.90569" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Parts by Supplier for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" Height="15.11812" Left="0" ParentFont="False" Top="158.74026" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsSupplierName" Left="11.33859" Top="0" Width="400.63018" Height="15.11812" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="434.64595" Top="0" Width="120.94496" Height="15.11812" DataField="cnt" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;cnt&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="234.33086" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="113.3859" Width="699.21305">
      <TfrxMemoView Name="Memo2" Left="11.33859" Top="7.55906" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Supplier"/>
      <TfrxMemoView Name="Memo3" Left="434.64595" Top="7.55906" Width="196.53556" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Number of Parts from Supplier"/>
    </TfrxHeader>
  </TfrxReportPage>
</TfrxReport>
����{Oٵ"B��ωParts Stock End of Year Report(SELECT
	PartDescription,
	suppliers.SupplierName,
 	SupplierPartNo,
 	QtyInStock,
 	UnitPrice
FROM
 	parts
JOIN
	suppliers ON parts.SupplierID=suppliers.SupplierID
JOIN
 	branches ON parts.BranchID=branches.BranchID
WHERE
 	BranchName="[BRANCHNAME]"
ORDER BY 
 	PartDescription ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39896.8652787963" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Parts Stock End of Year Report for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="151.1812" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsPartDescription" Left="0" Top="0" Width="234.33086" Height="15.11812" DataField="PartDescription" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;PartDescription&#34;]"/>
      <TfrxMemoView Name="dsSupplierName" Left="238.11039" Top="0" Width="185.19697" Height="15.11812" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="dsSupplierPartNo" Left="427.08689" Top="0" Width="120.94496" Height="15.11812" DataField="SupplierPartNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierPartNo&#34;]"/>
      <TfrxMemoView Name="dsQtyInStock" Left="551.81138" Top="0" Width="52.91342" Height="15.11812" DataField="QtyInStock" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;QtyInStock&#34;]"/>
      <TfrxMemoView Name="dsUnitPrice" Left="612.28386" Top="0" Width="79.37013" Height="15.11812" DataField="UnitPrice" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;UnitPrice&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="272.12616" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="15.11812" Left="0" Top="113.3859" Width="699.21305">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="234.33086" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Description"/>
      <TfrxMemoView Name="Memo2" Left="238.11039" Top="0" Width="185.19697" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Supplier"/>
      <TfrxMemoView Name="Memo3" Left="427.08689" Top="0" Width="120.94496" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Part Number"/>
      <TfrxMemoView Name="Memo4" Left="551.81138" Top="0" Width="52.91342" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Qty"/>
      <TfrxMemoView Name="Memo5" Left="612.28386" Top="0" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Price Each"/>
      <TfrxLineView Name="Line1" Left="0" Top="15.11812" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxHeader>
    <TfrxReportSummary Name="ReportSummary1" Height="22.67718" Left="0" Top="226.7718" Width="699.21305">
      <TfrxMemoView Name="Memo6" Left="449.76407" Top="3.77953" Width="249.44898" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Total Parts Stock Value: [SUM(&#60;ds.&#34;QtyInStock&#34;&#62;*&#60;ds.&#34;UnitPrice&#34;&#62;,MasterData1)]"/>
      <TfrxLineView Name="Line2" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
��r�Oٵ"�B��ϊParts Stock Shopping List�SELECT
	PartDescription,
	suppliers.SupplierName,
	SupplierPartNo,
	UnitPrice,
	(CEILING((MinStockLevel-QtyInStock)/SupplyMultiple))*SupplyMultiple AS QtyToOrder,
                ((CEILING((MinStockLevel-QtyInStock)/SupplyMultiple))*SupplyMultiple*UnitPrice) AS subtotal
FROM 
	parts 
JOIN
	suppliers ON parts.SupplierID=suppliers.SupplierID
JOIN
                branches ON parts.BranchID=branches.BranchID
WHERE
	QtyInStock<MinStockLevel
AND
                Discontinued=0
AND
	suppliers.SupplierName LIKE "[SUPPLIERNAME]%"
AND
                 branches.BranchName="[BRANCHNAME]"
ORDER BY
                suppliers.SupplierName ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40087.5946500579" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C22000000204E616D653D22746B6E535550504C4945524E414D45222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="75.5906" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Parts Stock Shopping List"/>
      <TfrxMemoView Name="dsSupplierName1" Left="0" Top="26.45671" Width="502.67749" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Supplier: [ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="45.35436" Width="502.67749" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Branch: [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="200.31509" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsPartDescription" Left="0" Top="0" Width="260.78757" Height="15.11812" DataField="PartDescription" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;PartDescription&#34;]"/>
      <TfrxMemoView Name="dsSupplierName" Left="260.78757" Top="0" Width="143.62214" Height="15.11812" DataField="SupplierName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierName&#34;]"/>
      <TfrxMemoView Name="dsSupplierPartNo" Left="404.40971" Top="0" Width="124.72449" Height="15.11812" DataField="SupplierPartNo" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;SupplierPartNo&#34;]"/>
      <TfrxMemoView Name="dsQtyToOrder" Left="600.94527" Top="0" Width="30.23624" Height="15.11812" DataField="QtyToOrder" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;QtyToOrder&#34;]"/>
      <TfrxMemoView Name="dsUnitPrice1" Left="536.69326" Top="0" Width="64.25201" Height="15.11812" DataField="UnitPrice" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;UnitPrice&#34;]"/>
      <TfrxMemoView Name="dssubtotal" Left="631.18151" Top="0" Width="68.03154" Height="15.11812" DataField="subtotal" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;subtotal&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="31.33859" Left="0" Top="321.26005" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="15.11812" Width="225" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="15.11812" Width="144.77953" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="154.96073" Width="699.21305">
      <TfrxMemoView Name="Memo2" Left="0" Top="0" Width="260.78757" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Part Description"/>
      <TfrxMemoView Name="Memo3" Left="260.78757" Top="0" Width="143.62214" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Supplier"/>
      <TfrxMemoView Name="Memo4" Left="404.40971" Top="0" Width="124.72449" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Part Number"/>
      <TfrxMemoView Name="Memo5" Left="536.69326" Top="0" Width="64.25201" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Each"/>
      <TfrxMemoView Name="Memo6" Left="600.94527" Top="0" Width="30.23624" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Qty"/>
      <TfrxMemoView Name="Memo10" Left="631.18151" Top="0" Width="68.03154" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Subtotal"/>
      <TfrxLineView Name="Line1" Left="0" Top="18.89765" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxHeader>
    <TfrxReportSummary Name="ReportSummary1" Height="22.67718" Left="0" Top="275.90569" Width="699.21305">
      <TfrxMemoView Name="Memo11" Left="631.18151" Top="7.55906" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;subtotal&#34;&#62;,MasterData1)]"/>
      <TfrxLineView Name="Line2" Left="0" Top="3.77953" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
����0Oٵ/����ϋAll Completed Jobs by Date�SELECT
          JobID AS job_id,
          DateTimeRepairComplete,
          funcGetCustomerName(JobID) AS customer_name,
          funcGetEquipString(JobID) AS equip_string,
          funcGetRepairEngineer(JobID) AS repair_engineer,
          funcGetMaterialCostNew(JobID) AS material_cost,
          funcGetWorkshopInvoiceValue(JobID,"[BRANCHNAME]") AS invoice_value,
          funcGetJobType(JobID) AS job_type
          
FROM jobs

LEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID
LEFT JOIN branches ON jobs.repairbranchid=branches.branchid

WHERE (DateTimeRepairComplete BETWEEN "[START] 00:00:00" AND "[END] 23:59:59")
AND jobs.EngStatusID >= "6"
AND jobs.JobTypeID IN ("1","2","3","4","6","8","12","17","18","19","20")
AND (final_outcomes.RNRFlag="0" OR jobs.creditnote="1")
AND branches.branchname="[BRANCHNAME]"


ORDER BY jobs.JobTypeID ASC,repair_engineer ASC,jobs.DateTimeRepairComplete ASC�+<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39519.6976586343" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C25000000204E616D653D22746B6E544F444159222056616C75653D2227323030382D30332D3132272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C25000000204E616D653D22746B6E5354415254222056616C75653D2227323030382D30332D3132272200010C23000000204E616D653D22746B6E454E44222056616C75653D2227323030382D30332D313227220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="54.23624" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknBRANCHNAME] Traffic Completed between [tknStart] to [tknEnd]"/>
      <TfrxMemoView Name="Memo2" Left="3.77953" Top="30.23624" Width="506.45702" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Report ran on [DATE] at [TIME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="249.44898" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="60.47248" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="181.41744" Top="0" Width="173.85838" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" WordWrap="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="359.05535" Top="0" Width="204.09462" Height="15.11812" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsjob_type" Left="64.25201" Top="0" Width="113.3859" Height="15.11812" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="566.9295" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;material_cost&#34;]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="650.07916" Top="0" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;invoice_value&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="502.67749" Width="718.1107">
      <TfrxMemoView Name="Memo9" Left="498.89796" Top="0" Width="220.37013" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strUserName" Left="0" Top="0" Width="188.9765" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[strUserName]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="49.13389" Left="0" Top="177.63791" Width="718.1107" Condition="ds.&#34;repair_engineer&#34;" KeepTogether="True">
      <TfrxMemoView Name="Memo3" Left="0" Top="26.45671" Width="60.47248" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo6" Left="64.25201" Top="26.45671" Width="113.3859" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo8" Left="181.41744" Top="26.45671" Width="83.14966" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer"/>
      <TfrxMemoView Name="Memo10" Left="359.05535" Top="26.45671" Width="83.14966" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo11" Left="566.9295" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Mat Cost"/>
      <TfrxMemoView Name="Memo12" Left="650.07916" Top="26.45671" Width="68.03154" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice"/>
      <TfrxLineView Name="Line2" Left="0" Top="45.35436" Width="718.1107" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="dsrepair_engineer" Left="0" Top="0" Width="801.26036" Height="18.89765" DataField="repair_engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;repair_engineer&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="30.23624" Left="0" Top="287.24428" Width="718.1107" AllowSplit="True">
      <TfrxMemoView Name="Memo4" Left="0" Top="7.55905999999999" Width="272.12616" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] jobs"/>
      <TfrxMemoView Name="Memo1" Left="650.07916" Top="7.55905999999999" Width="68.03154" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;)]"/>
      <TfrxLineView Name="Line1" Left="0" Top="3.77953000000002" Width="718.1107" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo13" Left="566.9295" Top="7.55905999999999" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;)]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="56.69295" Left="0" Top="423.30736" Width="718.1107">
      <TfrxMemoView Name="Memo5" Left="0" Top="3.77953000000002" Width="718.1107" Height="49.13389" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-19" Font.Name="verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] jobs completed, with a total invoice value of £[SUM(&#60;ds.&#34;invoice_value&#34;&#62;)]"/>
    </TfrxReportSummary>
    <TfrxGroupHeader Name="GroupHeader2" Height="22.67718" Left="0" Top="132.28355" Width="718.1107" Condition="ds.&#34;job_type&#34;" StartNewPage="True">
      <TfrxMemoView Name="dsjob_type1" Left="0" Top="0" Width="400.63018" Height="18.89765" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter2" Height="22.67718" Left="0" Top="340.1577" Width="718.1107">
      <TfrxMemoView Name="Memo14" Left="0" Top="3.77953000000002" Width="272.12616" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] jobs"/>
      <TfrxMemoView Name="Memo15" Left="566.9295" Top="3.77953000000002" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo16" Left="646.29963" Top="3.77953000000002" Width="68.03154" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;)]"/>
      <TfrxLineView Name="Line3" Left="0" Top="0" Width="718.1107" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
���
Oٵ#B��ό6Completed Electronic and Site Visit Jobs by Date RangeSELECT          
          DATE_FORMAT(DateTimeRepairComplete,'%d/%m/%Y') AS completion_date,
          JobID AS job_id,
          funcGetMaterialCostNew(JobID) AS material_cost,
          funcGetWorkshopInvoiceValue(JobID,"[BRANCHNAME]") AS invoice_value,
          funcGetJobType(JobID) AS job_type
FROM jobs
LEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
           WHERE (DateTimeRepairComplete BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59")
           AND jobs.EngStatusID >= "6"
           AND jobs.JobTypeID IN ("1","4","6")
           AND branches.BranchName = "[BRANCHNAME]"
           AND (final_outcomes.RNRFlag="0" OR jobs.creditnote="1")
ORDER BY
	completion_date ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39504.4184408449" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30322D3236272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30322D3236272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="64.25201" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="679.86642" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]"/>
      <TfrxMemoView Name="Memo12" Left="7.55906" Top="34.01577" Width="483.77984" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Electronic Repairs, Site Visits, Manufacturing"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="211.65368" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="355.27582" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="0" Left="0" Top="188.9765" Width="718.1107" Condition="ds.&#34;completion_date&#34;"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="18.89765" Left="0" Top="234.33086" Width="718.1107">
      <TfrxMemoView Name="dscompletion_date" Left="0" Top="0" Width="98.26778" Height="18.89765" DataField="completion_date" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;completion_date&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="143.62214" Width="718.1107">
      <TfrxMemoView Name="Memo1" Left="0" Top="3.77952999999999" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Completed"/>
      <TfrxMemoView Name="Memo2" Left="120.94496" Top="3.77952999999999" Width="49.13389" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="3.77952999999999" Width="136.06308" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Value"/>
      <TfrxLineView Name="Line2" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo10" Left="347.71676" Top="3.77952999999999" Width="124.72449" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Costs"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="18.89765" Left="0" Top="275.90569" Width="718.1107">
      <TfrxMemoView Name="Memo4" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
      <TfrxLineView Name="Line1" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo11" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
����KOٵ"�B��ߍ"Completed Motor Jobs by Date RangeSELECT          
          DATE_FORMAT(DateTimeRepairComplete,'%d/%m/%Y') AS completion_date,
          JobID AS job_id,
          funcGetMaterialCostNew(JobID) AS material_cost,
          funcGetWorkshopInvoiceValue(JobID,"[BRANCHNAME]") AS invoice_value,
          funcGetJobType(JobID) AS job_type
FROM jobs
LEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
           WHERE (DateTimeRepairComplete BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59")
           AND jobs.EngStatusID >= "6"
           AND jobs.JobTypeID ="8"
           AND branches.BranchName = "[BRANCHNAME]"
           AND (final_outcomes.RNRFlag="0" OR jobs.creditnote="1")
ORDER BY
	completion_date ASCx<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39309.6009834838" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30382D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30382D3135272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="64.25201" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="679.86642" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]"/>
      <TfrxMemoView Name="Memo12" Left="7.55906" Top="34.01577" Width="483.77984" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Motor Repairs"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="211.65368" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="355.27582" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="0" Left="0" Top="188.9765" Width="718.1107" Condition="ds.&#34;completion_date&#34;"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="18.89765" Left="0" Top="234.33086" Width="718.1107">
      <TfrxMemoView Name="dscompletion_date" Left="0" Top="0" Width="98.26778" Height="18.89765" DataField="completion_date" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;completion_date&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="143.62214" Width="718.1107">
      <TfrxMemoView Name="Memo1" Left="0" Top="3.77952999999999" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Completed"/>
      <TfrxMemoView Name="Memo2" Left="120.94496" Top="3.77952999999999" Width="49.13389" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="3.77952999999999" Width="136.06308" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Value"/>
      <TfrxLineView Name="Line2" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo10" Left="347.71676" Top="3.77952999999999" Width="124.72449" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Costs"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="18.89765" Left="0" Top="275.90569" Width="718.1107">
      <TfrxMemoView Name="Memo4" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
      <TfrxLineView Name="Line1" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo11" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٵ"�B��ߎ&Completed Stock Work for International�SELECT    
          DATE_FORMAT(DateTimeRepairComplete,'%d/%m/%Y') AS completion_date,
          JobID AS job_id,
          funcGetMaterialCostNew(JobID) AS material_cost,
          funcGetWorkshopInvoiceValue(jobid,"Aldridge") AS invoice_value,
          funcGetJobType(JobID) AS job_type
FROM jobs
JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID
JOIN branches ON jobs.RepairBranchID=branches.BranchID
           WHERE (DateTimeRepairComplete BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59")
           AND jobs.EngStatusID >= "6"
           AND jobs.JobTypeID IN ("17","18","19","20")
           AND branches.BranchName = "[BRANCHNAME]"
           AND final_outcomes.RNRFlag="0"
ORDER BY
	completion_date ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39351.5957348264" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30392D3236272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30392D3236272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="64.25201" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="679.86642" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]"/>
      <TfrxMemoView Name="Memo12" Left="7.55906" Top="34.01577" Width="483.77984" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Stock Work for International (counted at the appropriate rate)"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="211.65368" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="355.27582" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="0" Left="0" Top="188.9765" Width="718.1107" Condition="ds.&#34;completion_date&#34;"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="18.89765" Left="0" Top="234.33086" Width="718.1107">
      <TfrxMemoView Name="dscompletion_date" Left="0" Top="0" Width="98.26778" Height="18.89765" DataField="completion_date" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;completion_date&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="143.62214" Width="718.1107">
      <TfrxMemoView Name="Memo1" Left="0" Top="3.77952999999999" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Completed"/>
      <TfrxMemoView Name="Memo2" Left="120.94496" Top="3.77952999999999" Width="49.13389" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="3.77952999999999" Width="136.06308" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Value"/>
      <TfrxLineView Name="Line2" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo10" Left="347.71676" Top="3.77952999999999" Width="124.72449" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Costs"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="18.89765" Left="0" Top="275.90569" Width="718.1107">
      <TfrxMemoView Name="Memo4" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
      <TfrxLineView Name="Line1" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo11" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٵ"�B��ߏ(Completed Subcontract Jobs by Date RangeSELECT          
          DATE_FORMAT(DateTimeRepairComplete,'%d/%m/%Y') AS completion_date,
          JobID AS job_id,
          funcGetMaterialCostNew(JobID) AS material_cost,
          funcGetWorkshopInvoiceValue(JobID,"[BRANCHNAME]") AS invoice_value,
          funcGetJobType(JobID) AS job_type
FROM jobs
LEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
           WHERE (DateTimeRepairComplete BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59")
           AND jobs.EngStatusID >= "6"
           AND jobs.JobTypeID="12"
           AND branches.BranchName = "[BRANCHNAME]"
           AND (final_outcomes.RNRFlag="0" OR jobs.creditnote="1")
ORDER BY
	completion_date ASC{<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39309.4017414815" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30382D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30382D3135272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="64.25201" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="679.86642" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]"/>
      <TfrxMemoView Name="Memo12" Left="7.55906" Top="34.01577" Width="483.77984" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Subcontract Work"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="211.65368" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="355.27582" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="0" Left="0" Top="188.9765" Width="718.1107" Condition="ds.&#34;completion_date&#34;"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="18.89765" Left="0" Top="234.33086" Width="718.1107">
      <TfrxMemoView Name="dscompletion_date" Left="0" Top="0" Width="98.26778" Height="18.89765" DataField="completion_date" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;completion_date&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="143.62214" Width="718.1107">
      <TfrxMemoView Name="Memo1" Left="0" Top="3.77952999999999" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Completed"/>
      <TfrxMemoView Name="Memo2" Left="120.94496" Top="3.77952999999999" Width="49.13389" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="3.77952999999999" Width="136.06308" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Value"/>
      <TfrxLineView Name="Line2" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo10" Left="347.71676" Top="3.77952999999999" Width="124.72449" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Costs"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="18.89765" Left="0" Top="275.90569" Width="718.1107">
      <TfrxMemoView Name="Memo4" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
      <TfrxLineView Name="Line1" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo11" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٵ"�B��ϐ6Completed Supply & Service Exchange Jobs by Date RangeSELECT          
          DATE_FORMAT(DateTimeRepairComplete,'%d/%m/%Y') AS completion_date,
          JobID AS job_id,
          funcGetMaterialCostNew(JobID) AS material_cost,
          funcGetWorkshopInvoiceValue(JobID,"[BRANCHNAME]") AS invoice_value,
          funcGetJobType(JobID) AS job_type
FROM jobs
LEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
           WHERE (DateTimeRepairComplete BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59")
           AND jobs.EngStatusID >= "6"
           AND jobs.JobTypeID IN ("2","3")
           AND branches.BranchName = "[BRANCHNAME]"
           AND (final_outcomes.RNRFlag="0" OR jobs.creditnote="1")
ORDER BY
	completion_date ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39518.6926288426" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227425249272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D22274272696467656E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30332D3037272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30332D3037272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D22274272696467656E6427220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="64.25201" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="679.86642" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknBRANCHNAME] Completed Jobs between [tknSTARTDATE] and [tknENDDATE]"/>
      <TfrxMemoView Name="Memo12" Left="7.55906" Top="30.23624" Width="483.77984" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Supply & Service Exchange"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="211.65368" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="355.27582" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="0" Left="0" Top="188.9765" Width="718.1107" Condition="ds.&#34;completion_date&#34;"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="18.89765" Left="0" Top="234.33086" Width="718.1107">
      <TfrxMemoView Name="dscompletion_date" Left="0" Top="0" Width="98.26778" Height="18.89765" DataField="completion_date" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;completion_date&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="143.62214" Width="718.1107">
      <TfrxMemoView Name="Memo1" Left="0" Top="3.77952999999999" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Completed"/>
      <TfrxMemoView Name="Memo2" Left="120.94496" Top="3.77952999999999" Width="49.13389" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="3.77952999999999" Width="136.06308" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Value"/>
      <TfrxLineView Name="Line2" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo10" Left="347.71676" Top="3.77952999999999" Width="124.72449" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Costs"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="18.89765" Left="0" Top="275.90569" Width="718.1107">
      <TfrxMemoView Name="Memo4" Left="120.94496" Top="0" Width="49.13389" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="181.41744" Top="0" Width="136.06308" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
      <TfrxLineView Name="Line1" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo11" Left="347.71676" Top="0" Width="124.72449" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
����dOٵ$�B��ߑCurrent In Progress Summaries�SELECT 
       SUM(NumberOff*QuotedPrice) AS total_quoted_price,
       SUM(funcGetLabourMaterialTotal(jobid)) AS total_costs,
       job_types.jobtype AS job_type_text,
       COUNT(JobID) AS number_of_jobs,
       SUM(NumberOff) AS number_of_items
FROM
	jobs

JOIN job_types ON jobs.jobtypeid=job_types.JobTypeID
JOIN branches ON jobs.repairbranchid=branches.branchid

WHERE
	jobs.jobtypeid IN ("1","2","3","4","8","12")
AND
	jobs.engstatusid IN ("1","4","5")
AND
	(jobs.FinalOutcomeID=""
	OR
	jobs.FinalOutcomeID IS NULL
	OR
	jobs.FinalOutcomeID=1
	OR
	jobs.FinalOutcomeID=2
	OR
	jobs.FinalOutcomeID=3
	OR
	jobs.FinalOutcomeID=4
	OR
	jobs.FinalOutcomeID=5
	OR
	jobs.FinalOutcomeID=6
	OR
	jobs.FinalOutcomeID=7
	OR
	jobs.FinalOutcomeID=13
	)
AND
	branches.branchname="[BRANCHNAME]"
GROUP BY
	jobs.jobtypeID
ORDER BY
	jobs.jobtypeid ASC,
	jobs.branchid ASC� <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40326.3797256019" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="56.69295" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="475.7718" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Current In Progress Summaries by Job Type"/>
      <TfrxMemoView Name="Memo4" Left="3.77953" Top="34.01577" Width="343.93723" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Showing all jobs for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="18.89765" Left="0" Top="215.43321" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dstotal_quoted_price" Left="415.7483" Top="0" Width="120.94496" Height="18.89765" DataField="total_quoted_price" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;total_quoted_price&#34;]"/>
      <TfrxMemoView Name="dstotal_costs" Left="555.59091" Top="0" Width="79.37013" Height="18.89765" DataField="total_costs" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;total_costs&#34;]"/>
      <TfrxMemoView Name="dsjob_type_text" Left="0" Top="0" Width="226.7718" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="dsnumber_of_items" Left="328.81911" Top="0" Width="79.37013" Height="18.89765" DataField="number_of_items" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;number_of_items&#34;]"/>
      <TfrxMemoView Name="dsnumber_of_jobs" Left="238.11039" Top="0" Width="75.5906" Height="18.89765" DataField="number_of_jobs" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;number_of_jobs&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="340.1577" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="56.69295" Left="0" Top="136.06308" Width="718.1107">
      <TfrxMemoView Name="Memo1" Left="328.81911" Top="37.7953" Width="56.69295" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Items"/>
      <TfrxMemoView Name="Memo2" Left="555.59091" Top="37.7953" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Total Costs"/>
      <TfrxMemoView Name="Memo3" Left="415.7483" Top="37.7953" Width="120.94496" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Quoted Value"/>
      <TfrxMemoView Name="Memo5" Left="238.11039" Top="37.7953" Width="75.5906" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="22.67718" Left="0" Top="257.00804" Width="718.1107">
      <TfrxMemoView Name="Memo6" Left="238.11039" Top="0" Width="75.5906" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;number_of_jobs&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo10" Left="328.81911" Top="0" Width="75.5906" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;number_of_items&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo11" Left="415.7483" Top="0" Width="120.94496" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;total_quoted_price&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo12" Left="555.59091" Top="0" Width="120.94496" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;total_costs&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo13" Left="0" Top="0" Width="226.7718" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٵ�B��ϒ0Daily Invoicing Summary by Branch and Date Range2SELECT 
	InvoiceDate,
	COUNT(JobID) AS jobs_invoiced,
	SUM(InvoiceNet) AS invoice_net
FROM
	jobs
JOIN
	branches ON jobs.BranchID=branches.BranchID
WHERE
	InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND
	branches.BranchName="[BRANCHNAME]"
GROUP BY
	InvoiceDate
ORDER BY
	InvoiceDate ASCN<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39687.3453473495" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30382D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30382D323727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Invoicing Summary for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="18.89765" Left="0" Top="158.74026" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsInvoiceDate" Left="7.55906" Top="0" Width="105.82684" Height="18.89765" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;]"/>
      <TfrxMemoView Name="dsjobs_invoiced" Left="128.50402" Top="0" Width="120.94496" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;jobs_invoiced&#34;] jobs"/>
      <TfrxMemoView Name="dsinvoice_net" Left="279.68522" Top="0" Width="162.51979" Height="18.89765" DataField="invoice_net" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;invoice_net&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="283.46475" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="113.3859" Width="699.21305">
      <TfrxMemoView Name="Memo1" Left="7.55906" Top="3.77953" Width="105.82684" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Date"/>
      <TfrxMemoView Name="Memo2" Left="128.50402" Top="3.77953" Width="120.94496" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs Invoiced"/>
      <TfrxMemoView Name="Memo3" Left="279.68522" Top="3.77953" Width="162.51979" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Value Invoiced"/>
      <TfrxLineView Name="Line1" Left="7.55906" Top="22.67718" Width="434.64595" Height="0" Frame.Typ="4"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="22.67718" Left="0" Top="200.31509" Width="699.21305">
      <TfrxMemoView Name="Memo4" Left="279.68522" Top="0" Width="162.51979" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_net&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="128.50402" Top="0" Width="120.94496" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;jobs_invoiced&#34;&#62;,MasterData1)] jobs"/>
      <TfrxLineView Name="Line2" Left="7.55906" Top="0" Width="434.64595" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo6" Left="7.55906" Top="0" Width="105.82684" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] days"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
���tOٵ1�B��ߓJob Type P & L by Branch|SELECT
users.Username AS user_name,
user_types.UserTypeName AS user_type,
jobs.JobID AS job_id,
job_types.JobType AS job_type,
(jobs.NumberOff*jobs.QuotedPrice)+jobs.QuotedDelivery AS invoice_value,
jobs.InvoiceDate AS invoice_date,
funcGetLossOnJob(jobs.JobID) AS loss_on_job,
funcGetProfitOnJob(jobs.JobID) AS profit_on_job,
(funcGetProfitOnJob(jobs.JobID)-funcGetLossOnJob(jobs.JobID)) AS nett_gain_loss,
funcGetWarrantyCosts(jobs.JobID) AS warranty_cost,
branches.BranchName AS branch_name
FROM jobs
LEFT JOIN users ON (jobs.RepairedByID=users.UserID OR jobs.QuotedByID=users.UserID)
LEFT JOIN user_types ON users.UserTypeID=user_types.UserTypeID
LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN branches ON users.BranchID=branches.BranchID
LEFT JOIN final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID
WHERE 
	user_types.UserTypeName="Engineer"
                AND users.Active=1
	AND jobs.WIP=0 
	AND jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
	AND users.Username<>"."
	AND users.Username<>"Put Down"
ORDER BY branches.BranchID ASC,job_types.JobType ASC,users.UserID ASC
-<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39197.6168548611" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D323527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Job Type P &#38; L by Branch between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="113.3859" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="430.86642" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="56.69295" Left="0" Top="158.74026" Width="699.21305" Condition="ds.&#34;branch_name&#34;">
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="3.77953" Width="238.11039" Height="18.89765" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
      <TfrxMemoView Name="Memo12" Left="18.89765" Top="34.01577" Width="109.60637" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo13" Left="132.28355" Top="34.01577" Width="109.60637" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Throughput"/>
      <TfrxMemoView Name="Memo14" Left="245.66945" Top="34.01577" Width="105.82684" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Loss on Jobs"/>
      <TfrxMemoView Name="Memo15" Left="355.27582" Top="34.01577" Width="102.04731" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Profit on Jobs"/>
      <TfrxMemoView Name="Memo16" Left="461.10266" Top="34.01577" Width="98.26778" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Warranty Costs"/>
      <TfrxMemoView Name="Memo17" Left="563.14997" Top="34.01577" Width="136.06308" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Nett Profit / Loss"/>
      <TfrxLineView Name="Line1" Left="18.89765" Top="52.91342" Width="680.3154" Height="0" Frame.Typ="4"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="0" Left="0" Top="238.11039" Width="699.21305" Condition="ds.&#34;job_type&#34;"/>
    <TfrxDetailData Name="DetailData1" Height="0" Left="0" Top="260.78757" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxGroupFooter Name="GroupFooter1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Height="49.13389" Left="0" ParentFont="False" Top="321.26005" Width="699.21305">
      <TfrxMemoView Name="Memo4" Left="132.28355" Top="7.55906" Width="109.60637" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo5" Left="245.66945" Top="7.55906" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;loss_on_job&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo6" Left="355.27582" Top="7.55906" Width="102.04731" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;profit_on_job&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo10" Left="461.10266" Top="7.55906" Width="98.26778" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="1" Highlight.Condition="SUM(&#60;ds.&#34;warranty_cost&#34;&#62;,DetailData1)&#62;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo11" Left="563.14997" Top="7.55906" Width="136.06308" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)&#60;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)+1))*100 #n%0.0f]%)"/>
      <TfrxLineView Name="Line2" Left="18.89765" Top="3.77953" Width="680.3154" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
    <TfrxGroupFooter Name="GroupFooter2" Height="15.11812" Left="0" Top="283.46475" Width="699.21305">
      <TfrxMemoView Name="dsjob_type" Left="18.89765" Top="0" Width="109.60637" Height="15.11812" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="132.28355" Top="0" Width="109.60637" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo1" Left="245.66945" Top="0" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;loss_on_job&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo2" Left="355.27582" Top="0" Width="102.04731" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;profit_on_job&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="dswarranty_cost" Left="461.10266" Top="0" Width="98.26778" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;warranty_cost&#34;&#62;,DetailData1)&#62;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo3" Left="563.14997" Top="0" Width="136.06308" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)&#60;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;nett_gain_loss&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)+1))*100 #n%0.0f]%)"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٵ"�B��ϔ!Jobs Invoiced for a Repair Branchd��SELECT jobs.jobid AS jobid,
       funcGetCustomerName(jobid) AS customer,
       funcGetEquipString(jobid) AS equipment,
       funcGetRepairEngineer(jobid) AS engineer,
       funcGetWorkshopInvoiceValue(jobid, "[BRANCHNAME]") AS invoice_value
       
FROM jobs

LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN final_outcomes ON jobs.finaloutcomeid = final_outcomes.finaloutcomeid

WHERE job_types.JobType="[JOBTYPE]"
AND branches.BranchName="[BRANCHNAME]"
AND jobs.wip = 0
AND jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND final_outcomes.rnrflag = 0


ORDER BY engineer ASC, jobs.invoicedate ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39570.415726088" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2E000000204E616D653D22746B6E4A4F4254595045222056616C75653D2227456C656374726F6E696320526570616972272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30342D3239272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30352D303227220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="52.91342" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" HAlign="haCenter" ParentFont="False" Text="&#34;[tknJOBTYPE]&#34; Jobs Invoiced for Repair Branch [tknBRANCHNAME]"/>
      <TfrxMemoView Name="Memo2" Left="3.77953" Top="30.23624" Width="317.48052" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="30.23624" Left="0" Top="219.21274" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="79.37013" Height="18.89765" DataField="jobid" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;jobid&#34;]"/>
      <TfrxMemoView Name="dscustomer" Left="83.14966" Top="0" Width="302.3624" Height="18.89765" DataField="customer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer&#34;]"/>
      <TfrxMemoView Name="dsequipment" Left="389.29159" Top="0" Width="234.33086" Height="26.45671" DataField="equipment" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equipment&#34;]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="631.18151" Top="0" Width="79.37013" Height="18.89765" DataField="invoice_value" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;invoice_value&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="400.63018" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="3" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="3" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="64.25201" Left="0" Top="132.28355" Width="718.1107" Condition="ds.&#34;engineer&#34;">
      <TfrxMemoView Name="Memo3" Left="0" Top="45.35436" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo4" Left="83.14966" Top="45.35436" Width="302.3624" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer"/>
      <TfrxMemoView Name="Memo5" Left="389.29159" Top="45.35436" Width="234.33086" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="631.18151" Top="45.35436" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice"/>
      <TfrxMemoView Name="dsengineer" Left="3.77953" Top="3.77952999999999" Width="173.85838" Height="22.67718" DataField="engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;engineer&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="22.67718" Left="0" Top="272.12616" Width="718.1107">
      <TfrxSysMemoView Name="SysMemo1" Left="631.18151" Top="0" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="dsengineer1" Left="415.7483" Top="0" Width="211.65368" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Total for [ds.&#34;engineer&#34;]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="22.67718" Left="0" Top="355.27582" Width="718.1107">
      <TfrxSysMemoView Name="SysMemo2" Left="631.18151" Top="0" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo10" Left="415.7483" Top="0" Width="211.65368" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Total for"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
����]OٵvB��ߕ$Scrapped Jobs by Branch & Date Range�SELECT
	customers.CustomerName,
	jobs.JobID,
	jobs.DateTimeOfEntry,
	jobs.DateTimeRepairComplete,
	manufacturers.ManufacturerName,
	equipment.ModelNumber,
	final_outcomes.FinalOutcome
FROM
	jobs
JOIN
	customers ON jobs.CustomerID=customers.CustomerID
JOIN
	branches ON jobs.BranchID=branches.BranchID
JOIN
	final_outcomes ON jobs.FinalOutcomeID=final_outcomes.FinalOutcomeID
JOIN
	equipment ON jobs.EquipmentID=equipment.EquipmentID
JOIN
	manufacturers ON equipment.ManufacturerID=manufacturers.ManufacturerID
WHERE
	jobs.FinalOutcomeID IN (9,11)
AND
	branches.BranchName="[BRANCHNAME]"
AND
	DateTimeRepairComplete BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59"p<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40252.5990468403" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30332D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30332D313527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="1004.906" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Scrapped Jobs at [tknBRANCHNAME] between [tknSTARTDATE] &#38; [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="18.89765" Left="0" Top="158.74026" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="79.37013" Height="18.89765" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dsCustomerName" Left="177.63791" Top="0" Width="177.63791" Height="18.89765" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="dsDateTimeOfEntry" Left="83.14966" Top="0" Width="90.70872" Height="18.89765" DataField="DateTimeOfEntry" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeOfEntry&#34;]"/>
      <TfrxMemoView Name="dsDateTimeRepairComplete" Left="672.75634" Top="0" Width="102.04731" Height="18.89765" DataField="DateTimeRepairComplete" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeRepairComplete&#34;]"/>
      <TfrxMemoView Name="dsFinalOutcome" Left="789.92177" Top="0" Width="238.11039" Height="18.89765" DataField="FinalOutcome" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;FinalOutcome&#34;]"/>
      <TfrxMemoView Name="dsManufacturerName" Left="366.61441" Top="0" Width="298.58287" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;ManufacturerName&#34;] [ds.&#34;ModelNumber&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="238.11039" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="113.3859" Width="1028.03216" ReprintOnNewPage="True">
      <TfrxMemoView Name="Memo2" Left="0" Top="0" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo3" Left="83.14966" Top="0" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Date In"/>
      <TfrxMemoView Name="Memo4" Left="672.75634" Top="0" Width="113.3859" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Repair Complete"/>
      <TfrxMemoView Name="Memo5" Left="789.92177" Top="0" Width="151.1812" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Final Outcome"/>
      <TfrxMemoView Name="Memo6" Left="366.61441" Top="0" Width="151.1812" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo10" Left="177.63791" Top="0" Width="151.1812" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Customer"/>
    </TfrxHeader>
  </TfrxReportPage>
</TfrxReport>
�Oٵ
B��ߖTimesheet Report by Job�SELECT jobs.jobid AS jobid,
       users.username AS userid,
       timesheets.WorkDate AS workdate,
       timesheets.WorkStartTime AS workstart,
       timesheets.WorkEndTime AS workend,
       timesheets.ChargeRate AS chargerate
       
FROM timesheets

LEFT JOIN jobs ON timesheets.JobID=jobs.JobID
LEFT JOIN users ON timesheets.userid=users.userid

WHERE jobs.jobid="[JOBID]"

ORDER BY workdate ASC�SELECT jobs.jobid AS JobID,
       order_items.OrderID AS purchase_order,
       order_items.SupplierPartNo AS part_number,
       order_items.UnitPrice AS unit_price,
       order_items.QuantityOrdered AS quantity,
       order_items.ItemDeliveryDate AS date_delivered

FROM jobs

LEFT JOIN order_items ON jobs.jobid=order_items.JobID

WHERE jobs.jobid="146059"

ORDER BY order_items.ItemDeliveryDate ASC   <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39470.4462450231" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D222731373930313827220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="471.99227" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Timesheet Summary Report for [tknJOBID]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="181.41744" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsuserid" Left="3.77953" Top="0" Width="170.07885" Height="18.89765" DataField="userid" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;userid&#34;]"/>
      <TfrxMemoView Name="dsworkdate" Left="177.63791" Top="0" Width="94.48825" Height="18.89765" DataField="workdate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;workdate&#34;]"/>
      <TfrxMemoView Name="dsworkstart" Left="279.68522" Top="0" Width="94.48825" Height="18.89765" DataField="workstart" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;workstart&#34;]"/>
      <TfrxMemoView Name="dsworkend" Left="381.73253" Top="0" Width="98.26778" Height="18.89765" DataField="workend" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;workend&#34;]"/>
      <TfrxMemoView Name="dschargerate" Left="495.11843" Top="0" Width="79.37013" Height="18.89765" DataField="chargerate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;chargerate&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="264.5671" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="45.35436" Left="0" Top="113.3859" Width="699.21305" Condition="ds.&#34;jobid&#34;">
      <TfrxMemoView Name="Memo2" Left="3.77953" Top="22.67718" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="User Name"/>
      <TfrxMemoView Name="Memo3" Left="177.63791" Top="22.67718" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Work Date"/>
      <TfrxMemoView Name="Memo4" Left="279.68522" Top="22.67718" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Time Start"/>
      <TfrxMemoView Name="Memo5" Left="381.73253" Top="22.67718" Width="98.26778" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Time End"/>
      <TfrxMemoView Name="Memo6" Left="495.11843" Top="22.67718" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Charge Rate"/>
    </TfrxGroupHeader>
  </TfrxReportPage>
</TfrxReport>
�Oٵ�B��Ϙ#Unpriced Jobs being repaired on WIP�SELECT 
	JobID AS job_id,
	funcGetCustomerName(JobID) AS customer_name,
	funcGetEquipString(JobID) AS equipment_string,
	funcGetFinalOutcome(JobID) AS final_outcome
FROM
	jobs
LEFT JOIN
	final_outcomes ON jobs.FInalOutcomeID=final_outcomes.FinalOutComeID
LEFT JOIN
                branches ON jobs.RepairBranchID=branches.BranchID
WHERE 
                funcGetCustomerName(JobID)<>"Non Prod Codes"
AND
	WIP=1
AND
                Warranty=0
AND
	(SellPrice IS NULL OR SellPrice="" OR SellPrice="0.00")
AND
	(EngStatusID=4 OR EngStatusID=5)
AND 
	branches.BranchName="[BRANCHNAME]"
ORDER BY
	jobs.DateTimeRepairComplete ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39915.5663927546" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="49.13389" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="664.7483" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknBRANCHNAME] Unpriced Jobs being repaired"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="128.50402" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="64.25201" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="68.03154" Top="0" Width="257.00804" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequipment_string" Left="328.81911" Top="0" Width="181.41744" Height="15.11812" DataField="equipment_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equipment_string&#34;]"/>
      <TfrxMemoView Name="dsfinal_outcome" Left="514.01608" Top="0" Width="185.19697" Height="15.11812" DataField="final_outcome" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;final_outcome&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="204.09462" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
��wOٵ�B��ߙUnpriced Jobs in Current WIPSELECT 
	JobID AS job_id,
	funcGetCustomerName(JobID) AS customer_name,
	funcGetEquipString(JobID) AS equipment_string,
	funcGetFinalOutcome(JobID) AS final_outcome
FROM
	jobs
JOIN
	final_outcomes ON jobs.FInalOutcomeID=final_outcomes.FinalOutComeID
JOIN
                branches ON jobs.RepairBranchID=branches.BranchID
WHERE 
	WIP=1
AND
	RNRFlag=0
AND
	QuotedPrice IS NULL
AND
	EngStatusID>=6
AND
                Warranty=0
AND 
	branches.BranchName="[BRANCHNAME]"
ORDER BY jobs.DateTimeRepairComplete ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39309.6077276852" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="49.13389" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="373.72449" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknBRANCHNAME] Unpriced Jobs"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="128.50402" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="64.25201" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="68.03154" Top="0" Width="257.00804" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequipment_string" Left="328.81911" Top="0" Width="181.41744" Height="15.11812" DataField="equipment_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equipment_string&#34;]"/>
      <TfrxMemoView Name="dsfinal_outcome" Left="514.01608" Top="0" Width="185.19697" Height="15.11812" DataField="final_outcome" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;final_outcome&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="204.09462" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٵ'CB��ߚCustomer Activity Summary
�SELECT
jobs.JobID,
jobs.DateTimeOfEntry,
customers.CustomerName,
equipment.ModelNumber,
jobs.InvoiceNet,
funcGetLabourMaterialTotal(jobs.JobID) AS costs,
(jobs.InvoiceNet-funcGetLabourMaterialTotal(jobs.JobID)) AS margin
FROM
jobs
JOIN customers ON jobs.CustomerID=customers.CustomerID
JOIN equipment ON jobs.EquipmentID=equipment.EquipmentID
WHERE jobs.CustomerID="[CUSTOMERID]" AND (jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]");%<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40623.4500403357" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C24000000204E616D653D22746B6E435553544F4D45524944222056616C75653D222731343535272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031312D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031312D30332D323127220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="672.30736" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" Frame.Typ="1" ParentFont="False" Text="Customer Activity Report for [ds.&#34;CustomerName&#34;]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="158.74026" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="56.69295" Height="15.11812" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dsCustomerName" Left="136.06308" Top="0" Width="151.1812" Height="15.11812" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="dsModelNumber" Left="287.24428" Top="0" Width="177.63791" Height="15.11812" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;ModelNumber&#34;]"/>
      <TfrxMemoView Name="dsInvoiceNet" Left="464.88219" Top="0" Width="79.37013" Height="15.11812" DataField="InvoiceNet" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceNet&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="544.25232" Top="0" Width="79.37013" Height="15.11812" DataField="costs" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;costs&#34;]"/>
      <TfrxMemoView Name="dsmargin" Left="623.62245" Top="0" Width="79.37013" Height="15.11812" DataField="margin" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;margin&#34;]"/>
      <TfrxMemoView Name="dsDateTimeOfEntry" Left="56.69295" Top="0" Width="79.37013" Height="15.11812" DataField="DateTimeOfEntry" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;DateTimeOfEntry&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="279.68522" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxFooter Name="Footer1" Height="22.67718" Left="0" Top="196.53556" Width="699.21305">
      <TfrxMemoView Name="Memo3" Left="464.88219" Top="3.77953" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;InvoiceNet&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo4" Left="544.25232" Top="3.77953" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;costs&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo5" Left="623.62245" Top="3.77953" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="3.77953" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] jobs"/>
      <TfrxLineView Name="Line2" Left="0" Top="3.77953" Width="695.43352" Height="0" Frame.Typ="4"/>
    </TfrxFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="113.3859" Width="699.21305" ReprintOnNewPage="True">
      <TfrxMemoView Name="Memo10" Left="0" Top="3.77953" Width="56.69295" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo11" Left="136.06308" Top="3.77953" Width="151.1812" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer"/>
      <TfrxMemoView Name="Memo12" Left="287.24428" Top="3.77953" Width="177.63791" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Model Number"/>
      <TfrxMemoView Name="Memo13" Left="464.88219" Top="3.77953" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoiced"/>
      <TfrxMemoView Name="Memo14" Left="544.25232" Top="3.77953" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Costs"/>
      <TfrxMemoView Name="Memo15" Left="623.62245" Top="3.77953" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Margin"/>
      <TfrxLineView Name="Line1" Left="0" Top="18.89765" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo16" Left="56.69295" Top="3.77953" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Date In"/>
    </TfrxHeader>
  </TfrxReportPage>
</TfrxReport>
�OٵbB��ϛ Customer Listing by Sales Person
�SELECT
	*
FROM
	customers
JOIN
	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
WHERE
	sales_areas.Salesperson="[SALESPERSON]"
ORDER BY
	customers.CustomerName ASCZ<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40393.4601990509" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227494E44272200010C25000000204E616D653D227374724272616E63684E616D65222056616C75653D2227496E646961272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C2E000000204E616D653D22746B6E53414C4553504552534F4E222056616C75653D2227436F6C696E204C6179636F636B27220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="4" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="45.35436" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="687.42548" Height="27.77953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="All Customers handled by [tknSALESPERSON]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="166.29932" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsCustomerID" Left="0" Top="0" Width="60.47248" Height="15.11812" DataField="CustomerID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerID&#34;]"/>
      <TfrxMemoView Name="dsCustomerName" Left="68.03154" Top="0" Width="222.99227" Height="15.11812" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="302.3624" Top="0" Width="222.99227" Height="15.11812" DataField="Area" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;Area&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="241.88992" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="18.89765" Left="0" Top="124.72449" Width="699.21305" ReprintOnNewPage="True">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="60.47248" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="CID"/>
      <TfrxMemoView Name="Memo2" Left="68.03154" Top="0" Width="222.99227" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo3" Left="302.3624" Top="0" Width="222.99227" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Geographic Area"/>
      <TfrxLineView Name="Line1" Left="0" Top="15.11812" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxHeader>
  </TfrxReportPage>
</TfrxReport>
����qOٵJB��ߜ)Customers who used us for ... but not ...
qSELECT
	CustomerID,CustomerName,DeliveryTel,
	funcJobsInCategoryForCustomer("[USEDFOR]",CustomerID) AS used_for,
	funcJobsInCategoryForCustomer("[NOTUSEDFOR]",CustomerID) AS not_used_for
FROM
	customers
WHERE
	funcJobsInCategoryForCustomer("[USEDFOR]",CustomerID)>0
AND
	funcJobsInCategoryForCustomer("[NOTUSEDFOR]",CustomerID)=0	
ORDER BY 
	CustomerName ASC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39450.486361713" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C25000000204E616D653D22746B6E55534544464F52222056616C75653D2227496E766572746572272200010C25000000204E616D653D22746B6E4E4F5455534544464F52222056616C75653D22274D6F746F7227220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="694.98454" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Customers who've used us for [tknUSEDFOR] but not [tknNOTUSEDFOR]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="113.3859" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="257.00804" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxDetailData Name="DetailData1" Height="15.11812" Left="0" Top="181.41744" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsCustomerName" Left="60.47248" Top="0" Width="245.66945" Height="15.11812" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="dsused_for" Left="464.88219" Top="0" Width="94.48825" Height="15.11812" DataField="used_for" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;used_for&#34;]"/>
      <TfrxMemoView Name="dsnot_used_for" Left="593.38621" Top="0" Width="79.37013" Height="15.11812" DataField="not_used_for" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;not_used_for&#34;]"/>
      <TfrxMemoView Name="dsCustomerID" Left="0" Top="0" Width="52.91342" Height="15.11812" DataField="CustomerID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerID&#34;]"/>
      <TfrxMemoView Name="dsDeliveryTel" Left="309.92146" Top="0" Width="143.62214" Height="15.11812" DataField="DeliveryTel" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;DeliveryTel&#34;]"/>
    </TfrxDetailData>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="136.06308" Width="699.21305">
      <TfrxMemoView Name="Memo1" Left="60.47248" Top="7.55906" Width="245.66945" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo2" Left="464.88219" Top="7.55906" Width="120.94496" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[tknUSEDFOR] jobs"/>
      <TfrxMemoView Name="Memo3" Left="593.38621" Top="7.55906" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[tknNOTUSEDFOR] jobs"/>
      <TfrxMemoView Name="Memo4" Left="0" Top="7.55906" Width="52.91342" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="CID"/>
      <TfrxMemoView Name="Memo5" Left="309.92146" Top="7.55906" Width="120.94496" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Telephone"/>
    </TfrxHeader>
  </TfrxReportPage>
</TfrxReport>
�Oٵ`�B��ϝ%Invoiced Sales by Job Type (Detailed)
�select
	JobType AS job_type,
	JobID AS job_id,
	NumberOff AS items,
	QuotedPrice AS quoted_price,
	QuotedDelivery AS quoted_delivery,
	InvoiceDate AS invoice_date,
                InvoiceNo AS invoice_no,
                InvoiceNet AS invoice_price,
                RechargeInvoiceNet AS recharge_invoice_price,
                RechargeInvoiceNo AS recharge_invoice_no,
	funcGetMaterialCostNew(JobID) AS material_cost,
	funcGetLabourCost(JobID) AS labour_cost,
                funcGetCustomerName(JobID) AS customer_name
FROM 
	jobs
JOIN
	job_types ON jobs.JobTypeID=job_types.JobTypeID
JOIN
                branches ON (jobs.branchid=branches.branchid OR jobs.repairbranchid=branches.branchid)
WHERE 
                jobs.InvoiceDate BETWEEN '[STARTDATE]' AND '[ENDDATE]'
AND 
                WIP=0
AND
                branches.branchname="[BRANCHNAME]"
AND
                jobs.InvoiceNo<>""
ORDER BY
	job_types.JobType ASC,jobs.InvoiceNo ASC�\<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39800.3821683912" ScriptLanguage="PascalScript" ScriptText.Text="    &#13;&#10;begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C24000000204E616D653D227374724272616E6368507265666978222056616C75653D2227435A272200010C2E000000204E616D653D227374724272616E63684E616D65222056616C75653D2227437A6563682052657075626C6963272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D31312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D31312D3330272200010C16000000204E616D653D22204A4D53207661726961626C65732200010C2E000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227437A6563682052657075626C696327220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="41.57483" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="1023.80365" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Invoiced Sales by Job Type for [tknBRANCHNAME] (Detailed) between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="238.11039" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo21" Left="321.26005" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[&#60;ds.&#34;items&#34;&#62;*&#60;ds.&#34;quoted_price&#34;&#62;]"/>
      <TfrxMemoView Name="dsjob_id" Left="128.50402" Top="0" Width="64.25201" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="Memo22" Left="404.40971" Top="0" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[&#60;ds.&#34;quoted_delivery&#34;&#62;]"/>
      <TfrxMemoView Name="Memo25" Left="642.5201" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[&#60;ds.&#34;material_cost&#34;&#62;]"/>
      <TfrxMemoView Name="Memo26" Left="805.03989" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;)&#60;0" ParentFont="False" Text="[&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;]"/>
      <TfrxMemoView Name="dslabour_cost" Left="559.37044" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;labour_cost&#34;]"/>
      <TfrxMemoView Name="dsinvoice_no" Left="0" Top="0" Width="60.47248" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[&#60;ds.&#34;invoice_no&#34;&#62;]"/>
      <TfrxMemoView Name="dsinvoice_date" Left="60.47248" Top="0" Width="68.03154" Height="15.11812" DataField="invoice_date" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;invoice_date&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="192.75603" Top="0" Width="128.50402" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsinvoice_price" Left="476.22078" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[&#60;ds.&#34;invoice_price&#34;&#62;]"/>
      <TfrxMemoView Name="Memo30" Left="725.66976" Top="0" Width="75.5906" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;)&#60;0" ParentFont="False" Text="[&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;]"/>
      <TfrxMemoView Name="dsrecharge_invoice_price" Left="888.18955" Top="0" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;recharge_invoice_price&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="472.44125" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="406.41744" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="805.03989" Top="0" Width="220.37013" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="71.81107" Left="0" Top="143.62214" Width="1028.03216" Condition="ds.&#34;job_type&#34;" KeepTogether="True" ReprintOnNewPage="True">
      <TfrxMemoView Name="Memo20" Left="0" Top="0" Width="313.70099" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type&#34;] Jobs"/>
      <TfrxMemoView Name="Memo2" Left="321.26005" Top="34.01577" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Quoted&#13;&#10;Price"/>
      <TfrxMemoView Name="Memo3" Left="404.40971" Top="34.01577" Width="68.03154" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Quoted&#13;&#10;Delivery"/>
      <TfrxMemoView Name="Memo5" Left="476.22078" Top="34.01577" Width="75.5906" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice&#13;&#10;Nett"/>
      <TfrxMemoView Name="Memo6" Left="642.5201" Top="34.01577" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material&#13;&#10;Costs"/>
      <TfrxMemoView Name="Memo11" Left="555.59091" Top="34.01577" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Labour&#13;&#10;Costs"/>
      <TfrxMemoView Name="Memo13" Left="805.03989" Top="34.01577" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Profit&#13;&#10;Margin"/>
      <TfrxMemoView Name="Memo1" Left="128.50402" Top="34.01577" Width="64.25201" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Lektronix&#13;&#10;JobID"/>
      <TfrxLineView Name="Line3" Left="0" Top="64.25201" Width="1028.03216" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo35" Left="0" Top="34.01577" Width="60.47248" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice&#13;&#10;Number"/>
      <TfrxMemoView Name="Memo37" Left="60.47248" Top="34.01577" Width="68.03154" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice&#13;&#10;Date"/>
      <TfrxMemoView Name="Memo24" Left="192.75603" Top="34.01577" Width="128.50402" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="&#13;&#10;Customer Name"/>
      <TfrxMemoView Name="Memo23" Left="721.89023" Top="34.01577" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Gross Margin"/>
      <TfrxMemoView Name="Memo43" Left="888.18955" Top="34.01577" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Recharge&#13;&#10;Amount"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="45.35436" Left="0" Top="275.90569" Width="1028.03216">
      <TfrxMemoView Name="dsinvoice_net" Left="321.26005" Top="7.55905999999999" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;*&#60;ds.&#34;quoted_price&#34;&#62;,0)]"/>
      <TfrxMemoView Name="dsquoted_delivery" Left="404.40971" Top="7.55905999999999" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;quoted_delivery&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo4" Left="476.22078" Top="7.55905999999999" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,0)]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="642.5201" Top="7.55905999999999" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo10" Left="555.59091" Top="7.55905999999999" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,0)]"/>
      <TfrxLineView Name="Line2" Left="0" Top="3.77953000000002" Width="1028.03216" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo36" Left="0" Top="11.33859" Width="71.81107" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%g" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] jobs"/>
      <TfrxMemoView Name="Memo42" Left="888.18955" Top="7.55905999999999" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;recharge_invoice_price&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo41" Left="725.66976" Top="7.55905999999999" Width="75.5906" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)&#60;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo12" Left="805.03989" Top="7.55905999999999" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)&#60;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxHeader Name="Header1" Height="0" Left="0" Top="120.94496" Width="1028.03216"/>
    <TfrxFooter Name="Footer1" Height="68.03154" Left="0" Top="343.93723" Width="1028.03216">
      <TfrxMemoView Name="Memo14" Left="321.26005" Top="45.35436" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;*&#60;ds.&#34;quoted_price&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo15" Left="404.40971" Top="45.35436" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;quoted_delivery&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo16" Left="476.22078" Top="45.35436" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo18" Left="642.5201" Top="45.35436" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,0)]"/>
      <TfrxLineView Name="Line1" Left="0" Top="37.7953" Width="1028.03216" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo17" Left="559.37044" Top="45.35436" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo27" Left="0" Top="45.35436" Width="102.04731" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] jobs"/>
      <TfrxMemoView Name="Memo34" Left="0" Top="15.11812" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs"/>
      <TfrxMemoView Name="Memo38" Left="805.03989" Top="3.77953000000002" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Profit&#13;&#10;Margin"/>
      <TfrxMemoView Name="Memo33" Left="642.5201" Top="3.77953000000002" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material&#13;&#10;Costs"/>
      <TfrxMemoView Name="Memo39" Left="559.37044" Top="3.77953000000002" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Labour&#13;&#10;Costs"/>
      <TfrxMemoView Name="Memo40" Left="476.22078" Top="3.77953000000002" Width="75.5906" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice&#13;&#10;Nett"/>
      <TfrxMemoView Name="Memo28" Left="404.40971" Top="3.77953000000002" Width="68.03154" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Quoted&#13;&#10;Delivery"/>
      <TfrxMemoView Name="Memo29" Left="321.26005" Top="3.77953000000002" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Quoted&#13;&#10;Price"/>
      <TfrxMemoView Name="Memo31" Left="721.89023" Top="3.77953000000002" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Gross &#13;&#10;Margin"/>
      <TfrxMemoView Name="Memo44" Left="888.18955" Top="3.77953000000002" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Recharge&#13;&#10;Amount"/>
      <TfrxMemoView Name="Memo45" Left="888.18955" Top="45.35436" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;recharge_invoice_price&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo19" Left="725.66976" Top="45.35436" Width="75.5906" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;)&#60;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo32" Left="805.03989" Top="45.35436" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;)&#60;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;labour_cost&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;,MasterData1)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
����Oٶ1vB��ߞInvoicing Clean Up
�SELECT groups.groupname AS group_name,
               jobs.jobid AS jobid,
               customers.customername AS customer,
               funcGetEquipString(jobid) AS equipment,
               (jobs.quotedprice*jobs.numberoff) AS price,
               funcGetLabourMaterialTotal(jobid) AS costs,
               ((jobs.quotedprice*jobs.numberoff)-(funcGetLabourMaterialTotal(jobid))) AS margin,
               DATE_FORMAT(jobs.DateTimeRepairComplete, '%d %M %y') AS completed_on

FROM jobs

JOIN customers ON jobs.customerid=customers.customerid
JOIN groups ON customers.groupid=groups.groupid
JOIN final_outcomes ON jobs.finaloutcomeid=final_outcomes.finaloutcomeid
JOIN branches ON jobs.branchid=branches.branchid

WHERE jobs.WIP="1"
AND jobs.DateTimeRepairComplete<=NOW()
AND jobs.engstatusid>=6
AND branches.branchname="[BRANCH]"
AND final_outcomes.RNRFlag="0"

ORDER BY group_name ASC, customers.CustomerName ASC�-<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39909.6714472917" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C24000000204E616D653D227374724272616E6368507265666978222056616C75653D2227504C272200010C26000000204E616D653D227374724272616E63684E616D65222056616C75653D2227506F6C616E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C22000000204E616D653D22746B6E4252414E4348222056616C75653D2227506F6C616E6427220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="770.57514" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoicing Clean Up - all jobs prior to [DATE] - [tknBRANCH]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="177.63791" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="1046.92981" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="0" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Color="65535" Highlight.Condition="&#60;ds.&#34;price&#34;&#62; &#60;= 0" ParentFont="False" Text="[ds.&#34;jobid&#34;]"/>
      <TfrxMemoView Name="dscustomer" Left="79.37013" Top="0" Width="260.78757" Height="18.89765" DataField="customer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer&#34;]"/>
      <TfrxMemoView Name="dsequipment" Left="343.93723" Top="0" Width="260.78757" Height="18.89765" DataField="equipment" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equipment&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="642.5201" Top="0" Width="79.37013" Height="18.89765" DataField="price" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;price&#34;]"/>
      <TfrxMemoView Name="Memo3" Left="737.00835" Top="0" Width="79.37013" Height="18.89765" DataField="costs" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;costs&#34;]"/>
      <TfrxMemoView Name="dsmargin" Left="831.4966" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="1" Highlight.Condition="&#60;ds.&#34;margin&#34;&#62; &#60;= 0" ParentFont="False" Text="[ds.&#34;margin&#34;]"/>
      <TfrxMemoView Name="dscompleted_on" Left="925.98485" Top="0" Width="120.94496" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;completed_on&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="468.66172" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupFooter Name="GroupFooter1" Height="22.67718" Left="0" Top="222.99227" Width="1046.92981">
      <TfrxMemoView Name="Memo14" Left="0" Top="0" Width="1046.92981" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Frame.Typ="4" ParentFont="False" Text="Group Totals"/>
      <TfrxSysMemoView Name="SysMemo1" Left="336.37817" Top="0" Width="268.34663" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[COUNT(MasterData1)] Non-Invoiced Jobs"/>
      <TfrxSysMemoView Name="SysMemo2" Left="642.5201" Top="0" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;price&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo3" Left="737.00835" Top="0" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;costs&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo4" Left="831.4966" Top="0" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="41.57483" Left="0" Top="113.3859" Width="1046.92981" Condition="ds.&#34;group_name&#34;" StartNewPage="True">
      <TfrxMemoView Name="dsgroup_name" Left="0" Top="0" Width="1046.92981" Height="18.89765" DataField="group_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="[ds.&#34;group_name&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="0" Top="22.67718" Width="75.5906" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo5" Left="79.37013" Top="22.67718" Width="260.78757" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer"/>
      <TfrxMemoView Name="Memo6" Left="343.93723" Top="22.67718" Width="260.78757" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Description"/>
      <TfrxMemoView Name="Memo10" Left="642.5201" Top="22.67718" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Price"/>
      <TfrxMemoView Name="Memo11" Left="737.00835" Top="22.67718" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Costs"/>
      <TfrxMemoView Name="Memo12" Left="831.4966" Top="22.67718" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Margin"/>
      <TfrxMemoView Name="Memo13" Left="925.98485" Top="22.67718" Width="120.94496" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Completed On"/>
    </TfrxGroupHeader>
    <TfrxReportSummary Name="ReportSummary1" Height="139.84261" Left="0" Top="306.14193" Width="1046.92981" StartNewPage="True">
      <TfrxSysMemoView Name="SysMemo5" Left="491.3389" Top="98.26778" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Margin: [SUM(&#60;ds.&#34;margin&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo6" Left="491.3389" Top="79.37013" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Costs: [SUM(&#60;ds.&#34;costs&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo7" Left="491.3389" Top="60.47248" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Value: [SUM(&#60;ds.&#34;price&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo8" Left="491.3389" Top="41.57483" Width="287.24428" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[COUNT(MasterData1)] Non-Invoiced Jobs"/>
      <TfrxMemoView Name="Memo15" Left="0" Top="0" Width="166.29932" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Branch Summary"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
�Oٶ�B��ߟSales Area Report
�SELECT
	customers.CustomerName AS customer_name,
	jobs.JobID AS job_id,
	funcGetEquipString(jobs.JobID) AS equip_string,
	InvoiceNet AS invoice_value
FROM
	customers
JOIN
	jobs ON customers.CustomerID=jobs.CustomerID
JOIN
	sales_areas ON sales_areas.SalesAreaID=customers.SalesAreaID
WHERE 
	sales_areas.SalesAreaName="[SALESAREANAME]"
AND
	jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
ORDER BY
	customers.CustomerName ASC,
	jobs.JobID ASCw<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39449.6099759491" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C23000000204E616D653D22746B6E53414C4553415245414944222056616C75653D22273335272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30332D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30332D3331272200010C2D000000204E616D653D22746B6E53414C4553415245414E414D45222056616C75653D22274269726D696E6768616D27220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sales Area Report for [tknSALESAREANAME] - [tknSTARTDATE] to [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="113.3859" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="351.49629" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxDetailData Name="DetailData1" Height="15.11812" Left="0" Top="185.19697" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsjob_id" Left="34.01577" Top="0" Width="79.37013" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="120.94496" Top="0" Width="370.39394" Height="15.11812" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsinvoice_value" Left="502.67749" Top="0" Width="79.37013" Height="15.11812" DataField="invoice_value" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;invoice_value&#34;]"/>
    </TfrxDetailData>
    <TfrxGroupHeader Name="GroupHeader1" Height="26.45671" Left="0" Top="136.06308" Width="699.21305" Condition="ds.&#34;customer_name&#34;">
      <TfrxMemoView Name="dscustomer_name" Left="0" Top="3.77953" Width="480.00031" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="22.67718" Left="0" Top="222.99227" Width="699.21305">
      <TfrxMemoView Name="Memo1" Left="502.67749" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo2" Left="34.01577" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)] job(s)"/>
    </TfrxGroupFooter>
    <TfrxFooter Name="Footer1" Height="22.67718" Left="0" Top="268.34663" Width="699.21305">
      <TfrxMemoView Name="Memo3" Left="502.67749" Top="3.77953" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_value&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo4" Left="34.01577" Top="3.77953" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)] job(s)"/>
      <TfrxLineView Name="Line1" Left="34.01577" Top="0" Width="548.03185" Height="0" Diagonal="True"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٶ6�B��Ϡ*Sales By Branch & Sales Area - Date Ranged
�SELECT
	branches.BranchName AS branch_name,
	jobs.BranchID,
	sales_areas.SalesAreaName,
	JobID,
	InvoicePrice AS invoice_price,
                InvoiceDelivery AS invoice_delivery,
	funcGetMaterialCostNew(jobid) AS mat_cost,
	funcGetLabourCost(JobID) AS labour_cost,
	((InvoicePrice+InvoiceDelivery)-(funcGetMaterialCostNew(JobID)+funcGetLabourCost(JobID))) AS profit,
                jobs.InvoiceDate	
FROM
	jobs
JOIN
	customers ON jobs.CustomerID=customers.CustomerID
JOIN
	sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
JOIN
	branches ON sales_areas.BranchID=branches.BranchID
JOIN
	job_types ON jobs.JobTypeID=job_types.JobTypeID
WHERE
	jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND
	job_types.JobType<>"Administration"
AND
	job_types.JobType<>"Quotation"
AND
	branches.BranchName="[BRANCHNAME]"
ORDER BY
	sales_areas.SalesAreaName ASC$3<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39848.6075338773" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6368756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227425249272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D22274272696467656E64272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D222757656273697465272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030392D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030392D30312D333127220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="41.57483" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="600.49629" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Arial" Font.Style="5" ParentFont="False" Text="Sales by Branch &#38; Sales Area for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="188.9765" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="94.48825" Top="0" Width="79.37013" Height="15.11812" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dsInvoiceDate" Left="7.55906" Top="0" Width="79.37013" Height="15.11812" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;InvoiceDate&#34;]"/>
      <TfrxMemoView Name="dssell_price" Left="181.41744" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;invoice_price&#34;]"/>
      <TfrxMemoView Name="dsmat_cost" Left="355.27582" Top="0" Width="79.37013" Height="15.11812" DataField="mat_cost" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;mat_cost&#34;]"/>
      <TfrxMemoView Name="dslabour_cost" Left="445.98454" Top="0" Width="79.37013" Height="15.11812" DataField="labour_cost" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;labour_cost&#34;]"/>
      <TfrxMemoView Name="dsprofit" Left="540.47279" Top="0" Width="79.37013" Height="15.11812" DataField="profit" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;profit&#34;]"/>
      <TfrxMemoView Name="Memo22" Left="272.12616" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;invoice_delivery&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="362.83488" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="45.35436" Left="0" Top="120.94496" Width="699.21305" Condition="ds.&#34;SalesAreaName&#34;">
      <TfrxMemoView Name="dsSalesAreaName" Left="0" Top="0" Width="400.63018" Height="18.89765" DataField="SalesAreaName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[ds.&#34;SalesAreaName&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="7.55906" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Invoice Date"/>
      <TfrxMemoView Name="Memo3" Left="94.48825" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo4" Left="181.41744" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Invoice Price"/>
      <TfrxMemoView Name="Memo5" Left="355.27582" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Material"/>
      <TfrxMemoView Name="Memo6" Left="445.98454" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Labour"/>
      <TfrxMemoView Name="Memo10" Left="540.47279" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Margin"/>
      <TfrxMemoView Name="Memo21" Left="272.12616" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Invoice Del"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Height="30.23624" Left="0" ParentFont="False" Top="226.7718" Width="699.21305">
      <TfrxMemoView Name="Memo11" Left="181.41744" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo12" Left="355.27582" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo13" Left="445.98454" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo14" Left="540.47279" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;profit&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo20" Left="7.55906" Top="0" Width="166.29932" Height="18.89765" DataField="SalesAreaName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[ds.&#34;SalesAreaName&#34;]"/>
      <TfrxMemoView Name="Memo23" Left="272.12616" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_delivery&#34;&#62;,MasterData1)]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="22.67718" Left="0" Top="317.48052" Width="699.21305">
      <TfrxMemoView Name="Memo16" Left="355.27582" Top="3.77953000000002" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo17" Left="445.98454" Top="3.77953000000002" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo18" Left="540.47279" Top="3.77953000000002" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;profit&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo19" Left="7.55906" Top="3.77953000000002" Width="166.29932" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Grand Total"/>
      <TfrxLineView Name="Line1" Left="7.55906" Top="0" Width="612.28386" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo24" Left="272.12616" Top="3.77952999999997" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_delivery&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo15" Left="181.41744" Top="3.77952999999997" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
�����Oٶ:B��ϡSales by Branch and Job Type
�SELECT
	branches.BranchName AS branch_name,
	job_types.JobType AS job_type,
	JobID,
	InvoicePrice AS sell_price,
	InvoiceDelivery AS delivery,
                RechargeInvoiceNet AS recharge_invoice,
	funcGetMaterialCostNew(jobid) AS mat_cost,
	funcGetLabourCost(JobID) AS labour_cost,
	InvoicePrice-(funcGetMaterialCostNew(JobID)+funcGetLabourCost(JobID)) AS profit,
	jobs.BranchID	
FROM
	jobs
JOIN
	branches ON jobs.BranchID=branches.BranchID
JOIN
	job_types ON jobs.JobTypeID=job_types.JobTypeID
WHERE
	InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND
	job_types.JobType<>"Administration"
AND
	job_types.JobType<>"Quotation"
ORDER BY
	branches.BranchName ASC,
	job_type ASC7<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39612.4931817361" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030382D30352D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030382D30352D3331272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="694.98454" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sales by Branch &#38; Job Type between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="113.3859" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="37.7953" Left="0" Top="400.63018" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="7.55906" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="816.37848" Top="7.55906" Width="212.81107" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strUserName" Left="434.64595" Top="7.55906" Width="166.29932" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haCenter" ParentFont="False" Text="[strUserName]"/>
      <TfrxLineView Name="Line3" Left="0" Top="3.77953" Width="1028.03216" Height="0" Frame.Typ="4"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="56.69295" Left="0" Top="136.06308" Width="1028.03216" Condition="ds.&#34;branch_name&#34;" KeepTogether="True">
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="3.77953" Width="238.11039" Height="18.89765" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="15.11812" Top="41.57483" Width="128.50402" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type"/>
      <TfrxLineView Name="Line1" Left="15.11812" Top="56.69295" Width="1012.91404" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo3" Left="154.96073" Top="41.57483" Width="102.04731" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Total Sales"/>
      <TfrxMemoView Name="Memo4" Left="555.59091" Top="41.57483" Width="154.96073" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Labour Cost (%)"/>
      <TfrxMemoView Name="Memo11" Left="714.33117" Top="41.57483" Width="158.74026" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Cost (%)"/>
      <TfrxMemoView Name="Memo14" Left="876.85096" Top="41.57483" Width="151.1812" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Margin (%)"/>
      <TfrxMemoView Name="Memo15" Left="370.39394" Top="41.57483" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Delivery"/>
      <TfrxMemoView Name="Memo20" Left="457.32313" Top="41.57483" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Invoice Net"/>
      <TfrxMemoView Name="Memo24" Left="268.34663" Top="41.57483" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Recharge"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="0" Left="0" Top="215.43321" Width="1028.03216" Condition="ds.&#34;job_type&#34;" KeepTogether="True"/>
    <TfrxDetailData Name="DetailData1" Height="0" Left="0" Top="238.11039" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="41.57483" Left="0" Top="298.58287" Width="1028.03216">
      <TfrxMemoView Name="Memo2" Left="154.96073" Top="0" Width="102.04731" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="£[SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)]"/>
      <TfrxLineView Name="Line2" Left="15.11812" Top="0" Width="1012.91404" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo5" Left="555.59091" Top="0" Width="154.96073" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="£[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)"/>
      <TfrxMemoView Name="Memo10" Left="714.33117" Top="0" Width="158.74026" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="£[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)"/>
      <TfrxMemoView Name="Memo13" Left="876.85096" Top="0" Width="151.1812" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="£[SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)"/>
      <TfrxMemoView Name="Memo17" Left="370.39394" Top="0" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="£[SUM(&#60;ds.&#34;delivery&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo19" Left="457.32313" Top="0" Width="94.48825" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="£[SUM(&#60;ds.&#34;sell_price&#34;&#62;+&#60;ds.&#34;delivery&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo21" Left="15.11812" Top="0" Width="128.50402" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
      <TfrxMemoView Name="Memo22" Left="268.34663" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="£[SUM(&#60;ds.&#34;recharge_invoice&#34;&#62;,DetailData1)]"/>
    </TfrxGroupFooter>
    <TfrxGroupFooter Name="GroupFooter2" Height="15.11812" Left="0" Top="260.78757" Width="1028.03216">
      <TfrxMemoView Name="dsjob_type" Left="15.11812" Top="0" Width="128.50402" Height="15.11812" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
      <TfrxMemoView Name="dssell_price" Left="154.96073" Top="0" Width="102.04731" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="dslabour_cost" Left="555.59091" Top="0" Width="154.96073" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)"/>
      <TfrxMemoView Name="Memo6" Left="714.33117" Top="0" Width="158.74026" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)"/>
      <TfrxMemoView Name="Memo12" Left="876.85096" Top="0" Width="151.1812" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)&#60;0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)/(SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)+1))*100]%)"/>
      <TfrxMemoView Name="Memo16" Left="370.39394" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;delivery&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo18" Left="457.32313" Top="0" Width="94.48825" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;sell_price&#34;&#62;+&#60;ds.&#34;delivery&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo23" Left="268.34663" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;recharge_invoice&#34;&#62;,DetailData1)]"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
����Oٶ)�B��ϢSales by Branch Summary
SSELECT
	branches.BranchName AS branch_name,
	jobs.BranchID,
	JobID,
	(InvoicePrice+InvoiceDelivery) AS sell_price,
	funcGetMaterialCostNew(jobid) AS mat_cost,
	funcGetLabourCost(JobID) AS labour_cost,
	((InvoicePrice+InvoiceDelivery)-(funcGetMaterialCostNew(JobID)+funcGetLabourCost(JobID))) AS profit	
FROM
	jobs
JOIN
	branches ON jobs.BranchID=branches.BranchID
JOIN
	job_types ON jobs.JobTypeID=job_types.JobTypeID
WHERE
	InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
AND
	job_types.JobType<>"Administration"
AND
	job_types.JobType<>"Quotation"
ORDER BY
	BranchID ASCU'<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39302.5271553704" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30372D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30372D3331272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="41.57483" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sales by Branch Summary between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="166.29932" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="45.35436" Left="0" Top="359.05535" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="11.33859" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="480.00031" Top="11.33859" Width="216.5906" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strUserName" Left="260.78757" Top="11.33859" Width="154.96073" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[strUserName]"/>
      <TfrxLineView Name="Line3" Left="0" Top="3.77953" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxPageFooter>
    <TfrxDetailData Name="DetailData1" Height="0" Left="0" Top="211.65368" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxGroupHeader Name="GroupHeader1" Height="0" Left="0" Top="188.9765" Width="699.21305" Condition="ds.&#34;BranchID&#34;"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="15.11812" Left="0" Top="234.33086" Width="699.21305">
      <TfrxMemoView Name="Memo2" Left="128.50402" Top="0" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo3" Left="238.11039" Top="0" Width="154.96073" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)"/>
      <TfrxMemoView Name="Memo4" Left="396.85065" Top="0" Width="143.62214" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)"/>
      <TfrxMemoView Name="Memo5" Left="544.25232" Top="0" Width="154.96073" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)"/>
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="0" Width="124.72449" Height="15.11812" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
    </TfrxGroupFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="120.94496" Width="699.21305">
      <TfrxMemoView Name="Memo1" Left="0" Top="7.55906" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Branch"/>
      <TfrxMemoView Name="Memo6" Left="128.50402" Top="7.55906" Width="105.82684" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Total Sales"/>
      <TfrxMemoView Name="Memo10" Left="238.11039" Top="7.55906" Width="154.96073" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Labour Cost (%)"/>
      <TfrxMemoView Name="Memo11" Left="396.85065" Top="7.55906" Width="143.62214" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Cost (%)"/>
      <TfrxMemoView Name="Memo12" Left="544.25232" Top="7.55906" Width="154.96073" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Profit (%)"/>
      <TfrxLineView Name="Line1" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="26.45671" Left="0" Top="272.12616" Width="699.21305">
      <TfrxLineView Name="Line2" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo13" Left="128.50402" Top="0" Width="105.82684" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo14" Left="238.11039" Top="0" Width="154.96073" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)"/>
      <TfrxMemoView Name="Memo15" Left="396.85065" Top="0" Width="143.62214" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;mat_cost&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)"/>
      <TfrxMemoView Name="Memo16" Left="544.25232" Top="0" Width="154.96073" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="£[SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)] ([(SUM(&#60;ds.&#34;profit&#34;&#62;,DetailData1)/SUM(&#60;ds.&#34;sell_price&#34;&#62;,DetailData1)*100)]%)"/>
      <TfrxMemoView Name="Memo17" Left="0" Top="0" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
����DOٶ!B��ϣ&Sales by Job Type & Equipment Category
oSELECT * FROM sales_by_job_type_and_equipment_category WHERE invoice_date BETWEEN "[STARTDATE]" AND "[ENDDATE]"H <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39189.6085245949" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30342D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D313727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="49.13389" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="524.90569" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sales by Job Type &#38; Equipment Category"/>
      <TfrxMemoView Name="Memo2" Left="0" Top="26.45671" Width="548.03185" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="Date Ranged between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="196.53556" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="37.7953" Left="0" Top="355.27582" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="11.33859" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="517.79561" Top="11.33859" Width="182.57483" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strUserName" Left="268.34663" Top="11.33859" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="[strUserName]"/>
      <TfrxLineView Name="Line3" Left="0" Top="7.55906" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="22.67718" Left="0" Top="128.50402" Width="699.21305" Condition="ds.&#34;job_type&#34;">
      <TfrxMemoView Name="dsjob_type" Left="0" Top="3.77953" Width="128.50402" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;job_type&#34;] Jobs"/>
      <TfrxLineView Name="Line2" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="34.01577" Left="0" Top="260.78757" Width="699.21305">
      <TfrxMemoView Name="Memo5" Left="207.87415" Top="0" Width="109.60637" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo6" Left="321.26005" Top="0" Width="90.70872" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxMemoView Name="Memo10" Left="415.7483" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items"/>
      <TfrxMemoView Name="Memo11" Left="498.89796" Top="0" Width="253.22851" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item"/>
      <TfrxMemoView Name="Memo12" Left="18.89765" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals:"/>
      <TfrxLineView Name="Line1" Left="0" Top="18.89765" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
    <TfrxGroupHeader Name="GroupHeader2" Height="0" Left="0" Top="173.85838" Width="699.21305" Condition="ds.&#34;category_name&#34;"/>
    <TfrxGroupFooter Name="GroupFooter2" Height="18.89765" Left="0" Top="219.21274" Width="699.21305">
      <TfrxMemoView Name="dscategory_name" Left="18.89765" Top="0" Width="158.74026" Height="18.89765" DataField="category_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;category_name&#34;]"/>
      <TfrxMemoView Name="dsinvoice_date" Left="321.26005" Top="0" Width="90.70872" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxMemoView Name="Memo1" Left="207.87415" Top="0" Width="109.60637" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo3" Left="498.89796" Top="0" Width="196.53556" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item"/>
      <TfrxMemoView Name="Memo4" Left="415.7483" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
��~�MOٶ!8B��Ϥ Sales by Sales Person & Customer
iSELECT * FROM sales_by_sales_person_and_customer WHERE invoice_date BETWEEN "[STARTDATE]" AND "[ENDDATE]"� <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40266.750470544" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30332D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30332D3239272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="52.91342" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sales by Sales Person &#38; Customer"/>
      <TfrxMemoView Name="Memo11" Left="0" Top="22.67718" Width="362.83488" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="Date Ranged between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="196.53556" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="49.13389" Left="0" Top="366.61441" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="15.11812" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="506.45702" Top="15.11812" Width="193.91342" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxLineView Name="Line2" Left="0" Top="7.55906" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="strUserName" Left="283.46475" Top="15.11812" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[strUserName]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="18.89765" Left="0" Top="132.28355" Width="699.21305" Condition="ds.&#34;sales_person&#34;" KeepTogether="True" ReprintOnNewPage="True">
      <TfrxMemoView Name="dssales_person" Left="0" Top="0" Width="204.09462" Height="18.89765" DataField="sales_person" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;sales_person&#34;]"/>
      <TfrxLineView Name="Line1" Left="0" Top="18.89765" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="0" Left="0" Top="173.85838" Width="699.21305" Condition="ds.&#34;customer_name&#34;"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="45.35436" Left="0" Top="260.78757" Width="699.21305">
      <TfrxMemoView Name="Memo3" Left="196.53556" Top="0" Width="109.60637" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo4" Left="309.92146" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxMemoView Name="Memo5" Left="393.07112" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items"/>
      <TfrxMemoView Name="Memo6" Left="476.22078" Top="0" Width="226.7718" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item"/>
      <TfrxMemoView Name="Memo10" Left="0" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals:"/>
      <TfrxLineView Name="Line3" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
    <TfrxGroupFooter Name="GroupFooter2" Height="18.89765" Left="0" Top="219.21274" Width="699.21305">
      <TfrxMemoView Name="dssales_value" Left="196.53556" Top="0" Width="109.60637" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo1" Left="393.07112" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items"/>
      <TfrxMemoView Name="dsinvoice_date" Left="309.92146" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxMemoView Name="Memo2" Left="476.22078" Top="0" Width="226.7718" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item"/>
      <TfrxMemoView Name="dscustomer_name" Left="0" Top="0" Width="192.75603" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�����Oٶ!B��ϥ*Sales by Sales Person & Equipment Category
sSELECT * FROM sales_by_sales_person_and_equipment_category WHERE invoice_date BETWEEN "[STARTDATE]" AND "[ENDDATE]"G <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39189.6247610301" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30342D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D313727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="52.91342" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sales by Sales Person &#38; Equipment Category"/>
      <TfrxMemoView Name="Memo11" Left="0" Top="22.67718" Width="362.83488" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="Date Ranged between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="196.53556" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="49.13389" Left="0" Top="366.61441" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="15.11812" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="506.45702" Top="15.11812" Width="193.91342" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxLineView Name="Line2" Left="0" Top="7.55906" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="strUserName" Left="283.46475" Top="15.11812" Width="79.37013" Height="18.89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[strUserName]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="18.89765" Left="0" Top="132.28355" Width="699.21305" Condition="ds.&#34;sales_person&#34;" KeepTogether="True">
      <TfrxMemoView Name="dssales_person" Left="0" Top="0" Width="204.09462" Height="18.89765" DataField="sales_person" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;sales_person&#34;]"/>
      <TfrxLineView Name="Line1" Left="0" Top="18.89765" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="0" Left="0" Top="173.85838" Width="699.21305" Condition="ds.&#34;category_name&#34;"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="45.35436" Left="0" Top="260.78757" Width="699.21305">
      <TfrxMemoView Name="Memo3" Left="196.53556" Top="0" Width="109.60637" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo4" Left="309.92146" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxMemoView Name="Memo5" Left="393.07112" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items"/>
      <TfrxMemoView Name="Memo6" Left="476.22078" Top="0" Width="226.7718" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item"/>
      <TfrxMemoView Name="Memo10" Left="26.45671" Top="0" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Totals:"/>
      <TfrxLineView Name="Line3" Left="0" Top="0" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
    <TfrxGroupFooter Name="GroupFooter2" Height="18.89765" Left="0" Top="219.21274" Width="699.21305">
      <TfrxMemoView Name="dscategory_name" Left="26.45671" Top="0" Width="166.29932" Height="18.89765" DataField="category_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;category_name&#34;]"/>
      <TfrxMemoView Name="dssales_value" Left="196.53556" Top="0" Width="109.60637" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)]"/>
      <TfrxMemoView Name="Memo1" Left="393.07112" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,0)] Items"/>
      <TfrxMemoView Name="dsinvoice_date" Left="309.92146" Top="0" Width="79.37013" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxMemoView Name="Memo2" Left="476.22078" Top="0" Width="226.7718" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Average [SUM(&#60;ds.&#34;sales_value&#34;&#62;,0)/SUM(&#60;ds.&#34;items&#34;&#62;,0)] per item"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
����[Oٶ B��ߦ@Sales by Sales Person & Equipment Category with Top 50 Customers
\SELECT
sales_areas.salesperson,
customers.customername,
count(jobs.jobid) as job_count,
sum(jobs.invoicenet) as sales_value
FROM customers
JOIN jobs ON customers.customerid=jobs.customerid
JOIN equipment ON jobs.equipmentid=equipment.equipmentid
JOIN categories ON equipment.categoryid=categories.categoryid
JOIN sales_areas ON customers.salesareaid=sales_areas.salesareaid
WHERE categories.categoryname="[CATEGORYNAME]"
AND sales_areas.salesperson="[SALESPERSON]"
AND (jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]")
GROUP BY customers.customerid
ORDER BY sales_value DESC LIMIT 50Y<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40443.444510625" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C27000000204E616D653D22746B6E43415445474F52594E414D45222056616C75653D22274D6F746F72272200010C2C000000204E616D653D22746B6E53414C4553504552534F4E222056616C75653D2227446F6E6E61204176657279272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30392D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D30392D323227220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="71.81107" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Sales Value by Equipment Category from [tknSALESPERSON]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="34.01577" Width="461.10266" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="Date Range: [tknSTARTDATE] &#38; [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="18.89765" Left="0" Top="196.53556" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dscustomername" Left="0" Top="0" Width="257.00804" Height="18.89765" DataField="customername" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customername&#34;]"/>
      <TfrxMemoView Name="dsjob_count" Left="313.70099" Top="0" Width="120.94496" Height="18.89765" DataField="job_count" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_count&#34;]"/>
      <TfrxMemoView Name="dssales_value" Left="502.67749" Top="0" Width="120.94496" Height="18.89765" DataField="sales_value" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;sales_value&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="275.90569" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="151.1812" Width="699.21305">
      <TfrxMemoView Name="Memo2" Left="0" Top="0" Width="257.00804" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo3" Left="313.70099" Top="0" Width="120.94496" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Job Count"/>
      <TfrxMemoView Name="Memo4" Left="502.67749" Top="0" Width="120.94496" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Invoice Value"/>
    </TfrxHeader>
  </TfrxReportPage>
</TfrxReport>
�OٶI�B��ϧ*Zero-Value Invoices (Detailed) by Job Type
�select
	JobType AS job_type,
	JobID AS job_id,
                funcGetBranchNameByBranchID(RepairBranchID) AS repair_branch,
	NumberOff AS items,
	QuotedPrice AS quoted_price,
	QuotedDelivery AS quoted_delivery,
	InvoiceDate AS invoice_date,
                InvoiceNo AS invoice_no,
                InvoicePrice AS invoice_price,
	funcGetMaterialCostNew(JobID) AS material_cost,
	funcGetLabourCostsForBranch(JobID,jobs.BranchID) AS comm_labour_cost,
                funcGetLabourCostsNotForBranch(JobID,jobs.BranchID) AS repair_labour_cost,
                funcGetCustomerName(JobID) AS customer_name,
# (SS,2/2/12)  removed following two lines, replaced with 0.0
#                funcGetMaterialCostNotBranchID(jobs.JobID,jobs.RepairBranchID) AS comm_material_cost,
#               funcGetMaterialCostWithBranchID(jobs.JobID,jobs.RepairBranchID) AS rep_material_cost
                0.0 AS comm_material_cost,
                0.0 AS rep_material_cost

FROM 
	jobs
JOIN
	job_types ON jobs.JobTypeID=job_types.JobTypeID
JOIN
                branches ON jobs.branchid=branches.branchid
WHERE 
	job_types.JobType<>"Administration"
AND
                jobs.InvoiceDate BETWEEN '[STARTDATE]' AND '[ENDDATE]'
AND 
                WIP=0
AND
                invoiceprice<"0.01"
AND
                invoiceprice>"-0.01"
AND
                branches.branchname="[BRANCHNAME]"
GROUP BY
	jobs.JobID
ORDER BY
	job_types.JobType ASC,jobs.invoiceno ASC�C<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40514.4898094676" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D31302D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D31302D3331272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="1042.7013" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Zero-Value Invoices for [tknBRANCHNAME] (Detailed) by Job Type [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="15.11812" Left="0" Top="207.87415" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsinvoice_date" Left="0" Top="0" Width="79.37013" Height="15.11812" DataField="invoice_date" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;invoice_date&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="83.14966" Top="0" Width="56.69295" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="151.1812" Top="0" Width="241.88992" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="495.11843" Top="0" Width="26.45671" Height="15.11812" DataField="items" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;items&#34;]"/>
      <TfrxMemoView Name="dsinvoice_price" Left="525.35467" Top="0" Width="79.37013" Height="15.11812" DataField="invoice_price" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;invoice_price&#34;]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="608.50433" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;rep_material_cost&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="948.66203" Top="0" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;-&#60;ds.&#34;repair_labour_cost&#34;&#62;-&#60;ds.&#34;comm_labour_cost&#34;&#62;]"/>
      <TfrxMemoView Name="Memo22" Left="691.65399" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;comm_material_cost&#34;]"/>
      <TfrxMemoView Name="dsrepair_branch" Left="396.85065" Top="0" Width="94.48825" Height="15.11812" DataField="repair_branch" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;repair_branch&#34;]"/>
      <TfrxMemoView Name="Memo26" Left="774.80365" Top="0" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;repair_labour_cost&#34;]"/>
      <TfrxMemoView Name="dscomm_labour_cost" Left="854.17378" Top="0" Width="79.37013" Height="15.11812" DataField="comm_labour_cost" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;comm_labour_cost&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="461.10266" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="71.81107" Left="0" Top="113.3859" Width="1046.92981" Condition="ds.&#34;job_type&#34;" ReprintOnNewPage="True">
      <TfrxMemoView Name="Memo3" Left="0" Top="26.45671" Width="79.37013" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" VAlign="vaBottom" Text="Invoice No"/>
      <TfrxMemoView Name="Memo4" Left="83.14966" Top="26.45671" Width="60.47248" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" VAlign="vaBottom" Text="Lektronix JobID"/>
      <TfrxMemoView Name="Memo5" Left="151.1812" Top="26.45671" Width="241.88992" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" VAlign="vaBottom" Text="Customer"/>
      <TfrxMemoView Name="Memo6" Left="495.11843" Top="26.45671" Width="26.45671" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaBottom" Text="Qty"/>
      <TfrxMemoView Name="Memo10" Left="525.35467" Top="26.45671" Width="79.37013" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaBottom" Text="Invoice Price"/>
      <TfrxMemoView Name="Memo11" Left="608.50433" Top="26.45671" Width="79.37013" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaBottom" Text="Repair Material Costs"/>
      <TfrxMemoView Name="Memo12" Left="854.17378" Top="26.45671" Width="79.37013" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaBottom" Text="Comm Labour Costs"/>
      <TfrxMemoView Name="Memo13" Left="948.66203" Top="26.45671" Width="94.48825" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaBottom" Text="Profit Margin"/>
      <TfrxMemoView Name="dsjob_type" Left="0" Top="0" Width="238.11039" Height="18.89765" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
      <TfrxMemoView Name="Memo21" Left="691.65399" Top="26.45671" Width="79.37013" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaBottom" Text="Comm Material Costs"/>
      <TfrxMemoView Name="Memo24" Left="396.85065" Top="26.45671" Width="94.48825" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" VAlign="vaBottom" Text="Repair Branch"/>
      <TfrxLineView Name="Line1" Left="0" Top="68.03154" Width="1046.92981" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo25" Left="774.80365" Top="26.45671" Width="75.5906" Height="37.7953" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaBottom" Text="Repair Labour Costs"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="41.57483" Left="0" Top="245.66945" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="83.14966" Top="11.33859" Width="132.28355" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxSysMemoView Name="SysMemo2" Left="608.50433" Top="11.33859" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;rep_material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo3" Left="774.80365" Top="11.33859" Width="75.5906" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;repair_labour_cost&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo4" Left="948.66203" Top="11.33859" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;-&#60;ds.&#34;repair_labour_cost&#34;&#62;-&#60;ds.&#34;comm_labour_cost&#34;&#62;)]"/>
      <TfrxSysMemoView Name="SysMemo9" Left="691.65399" Top="11.33859" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;comm_material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo10" Left="854.17378" Top="11.33859" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;comm_labour_cost&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo6" Left="525.35467" Top="11.33859" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]"/>
      <TfrxLineView Name="Line2" Left="0" Top="3.77953" Width="1046.92981" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="90.70872" Left="0" Top="347.71676" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo5" Left="83.14966" Top="45.35436" Width="188.9765" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Jobs"/>
      <TfrxMemoView Name="Memo20" Left="3.77953" Top="3.77953000000002" Width="411.96877" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[tknBRANCHNAME] Zero-Invoicing Summary"/>
      <TfrxSysMemoView Name="SysMemo7" Left="525.35467" Top="45.35436" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo8" Left="608.50433" Top="45.35436" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;rep_material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo11" Left="774.80365" Top="45.35436" Width="75.5906" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;repair_labour_cost&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo12" Left="948.66203" Top="45.35436" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;invoice_price&#34;&#62;-&#60;ds.&#34;material_cost&#34;&#62;-&#60;ds.&#34;repair_labour_cost&#34;&#62;-&#60;ds.&#34;comm_labour_cost&#34;&#62;)]"/>
      <TfrxSysMemoView Name="SysMemo13" Left="691.65399" Top="45.35436" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;comm_material_cost&#34;&#62;,MasterData1)]"/>
      <TfrxSysMemoView Name="SysMemo14" Left="854.17378" Top="45.35436" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;ds.&#34;comm_labour_cost&#34;&#62;,MasterData1)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
���ٝOٶ>�B��ߨ Job Type Warranty Claim Analysis�SELECT 
	branches.BranchName AS branch_name,
	job_types.JobType AS job_type,
	funcGetWarrantyCreatedEngineer(jobs.JobId) AS created_engineer,
	funcGetRepairEngineer(jobs.JobId) AS repair_engineer,
	jobs.JobID AS job_id,
	funcGetCustomerName(JobID) AS customer_name,
	funcGetEquipString(JobID) AS equipment,
	funcGetLabourCost(JobID) AS labour_cost,
	funcGetMaterialCostNew(JobID) AS material_cost,
	funcGetLabourCost(JobID)+funcGetMaterialCostNew(JobID) AS total_cost,
	funcDaysToComplete(JobID) AS days_to_complete,
	jobs.InvoiceDate AS invoice_date	
FROM
	jobs
LEFT JOIN branches ON jobs.BranchID=branches.BranchID
LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
WHERE
	jobs.CWJobID<>""
	AND jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
	AND funcGetRepairEngineer(JobID)<>""
ORDER BY branches.BranchName ASC, job_types.JobType ASC, funcGetWarrantyCreatedEngineer(JobID) ASC�:<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40800.5599099537" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031312D30392D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031312D30392D3134272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="1027.58318" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Job Type Warranty Claim Analysis between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="113.3859" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="23.77953" Left="0" Top="442.20501" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="7.55906" Width="334.60637" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="835.27613" Top="7.55906" Width="193.91342" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxLineView Name="Line3" Left="0" Top="3.77953" Width="1028.03216" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="strUserName" Left="427.08689" Top="15.11812" Width="0" Height="0" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[strUserName]"/>
      <TfrxMemoView Name="strUserName1" Left="438.42548" Top="7.55906" Width="162.51979" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haCenter" ParentFont="False" Text="[strUserName]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="18.89765" Left="0" Top="136.06308" Width="1028.03216" Condition="ds.&#34;branch_name&#34;" KeepTogether="True" ReprintOnNewPage="True">
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="0" Width="238.11039" Height="18.89765" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="49.13389" Left="0" Top="177.63791" Width="1028.03216" Condition="ds.&#34;job_type&#34;" ReprintOnNewPage="True">
      <TfrxMemoView Name="dsjob_type" Left="18.89765" Top="7.55906" Width="283.46475" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;job_type&#34;] jobs"/>
      <TfrxMemoView Name="Memo1" Left="37.7953" Top="26.45671" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Created By"/>
      <TfrxMemoView Name="Memo2" Left="139.84261" Top="26.45671" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Repaired By"/>
      <TfrxMemoView Name="Memo3" Left="245.66945" Top="26.45671" Width="56.69295" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo4" Left="306.14193" Top="26.45671" Width="177.63791" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer"/>
      <TfrxMemoView Name="Memo5" Left="487.55937" Top="26.45671" Width="211.65368" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="702.99258" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Labour Cost"/>
      <TfrxMemoView Name="Memo10" Left="786.14224" Top="26.45671" Width="86.92919" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Cost"/>
      <TfrxMemoView Name="Memo11" Left="895.74861" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Total Cost"/>
      <TfrxMemoView Name="Memo12" Left="990.23686" Top="26.45671" Width="37.7953" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Days"/>
      <TfrxLineView Name="Line1" Left="37.7953" Top="45.35436" Width="990.23686" Height="0" Frame.Typ="4"/>
    </TfrxGroupHeader>
    <TfrxDetailData Name="DetailData1" Height="15.11812" Left="0" Top="249.44898" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dscreated_engineer" Left="37.7953" Top="0" Width="98.26778" Height="15.11812" DataField="created_engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;created_engineer&#34;]"/>
      <TfrxMemoView Name="dsrepair_engineer" Left="139.84261" Top="0" Width="102.04731" Height="15.11812" DataField="repair_engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;repair_engineer&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="245.66945" Top="0" Width="56.69295" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="306.14193" Top="0" Width="177.63791" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequipment" Left="487.55937" Top="0" Width="211.65368" Height="15.11812" DataField="equipment" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equipment&#34;]"/>
      <TfrxMemoView Name="dslabour_cost" Left="702.99258" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;labour_cost&#34;]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="786.14224" Top="0" Width="86.92919" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;material_cost&#34;]"/>
      <TfrxMemoView Name="dstotal_cost" Left="895.74861" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;total_cost&#34;]"/>
      <TfrxMemoView Name="dsdays_to_complete" Left="990.23686" Top="0" Width="37.7953" Height="15.11812" DataField="days_to_complete" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;days_to_complete&#34;]"/>
    </TfrxDetailData>
    <TfrxGroupFooter Name="GroupFooter1" Height="41.57483" Left="0" Top="340.1577" Width="1028.03216">
      <TfrxMemoView Name="Memo18" Left="702.99258" Top="15.11812" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo19" Left="786.14224" Top="15.11812" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo20" Left="895.74861" Top="15.11812" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo21" Left="990.23686" Top="15.11812" Width="37.7953" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]"/>
      <TfrxMemoView Name="Memo22" Left="245.66945" Top="15.11812" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)] jobs"/>
      <TfrxLineView Name="Line4" Left="3.77953" Top="7.55906" Width="1028.03216" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo23" Left="3.77953" Top="15.11812" Width="188.9765" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;branch_name&#34;] Totals:"/>
    </TfrxGroupFooter>
    <TfrxGroupFooter Name="GroupFooter2" Height="30.23624" Left="0" Top="287.24428" Width="1028.03216">
      <TfrxLineView Name="Line2" Left="37.7953" Top="3.77953" Width="990.23686" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo13" Left="702.99258" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo14" Left="786.14224" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo15" Left="895.74861" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo16" Left="990.23686" Top="7.55906" Width="37.7953" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]"/>
      <TfrxMemoView Name="Memo17" Left="245.66945" Top="7.55906" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)] jobs"/>
      <TfrxMemoView Name="Memo24" Left="37.7953" Top="7.55906" Width="128.50402" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type Totals:"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�OٶHSB��ߩ(Job Type Warranty Claim Analysis Summary�SELECT 
	branches.BranchName AS branch_name,
	job_types.JobType AS job_type,
	funcGetWarrantyCreatedEngineer(jobs.JobId) AS created_engineer,
	funcGetRepairEngineer(jobs.JobId) AS repair_engineer,
	jobs.JobID AS job_id,
	funcGetCustomerName(JobID) AS customer_name,
	funcGetEquipString(JobID) AS equipment,
	funcGetLabourCost(JobID) AS labour_cost,
                funcGetLabourHours(JobID) AS labour_hours,
	funcGetMaterialCostNew(JobID) AS material_cost,
	funcGetLabourCost(JobID)+funcGetMaterialCostNew(JobID) AS total_cost,
	funcDaysToComplete(JobID) AS days_to_complete,
	jobs.InvoiceDate AS invoice_date	
FROM
	jobs
LEFT JOIN branches ON jobs.BranchID=branches.BranchID
LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
WHERE
	jobs.CWJobID<>""
	AND jobs.InvoiceDate BETWEEN "[STARTDATE]" AND "[ENDDATE]"
	AND funcGetRepairEngineer(JobID)<>""
ORDER BY branches.BranchName ASC, job_types.JobType ASC, funcGetWarrantyCreatedEngineer(JobID) ASC0D<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40800.5762906366" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031312D30392D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031312D30392D3134272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="1027.58318" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Job Type Warranty Claim Analysis Summary between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="113.3859" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="23.77953" Left="0" Top="491.3389" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="7.55906" Width="334.60637" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="506.45702" Top="7.55906" Width="193.91342" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxLineView Name="Line3" Left="0" Top="3.77953" Width="1028.03216" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="strUserName" Left="427.08689" Top="15.11812" Width="0" Height="0" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[strUserName]"/>
      <TfrxMemoView Name="strUserName1" Left="306.14193" Top="3.77953" Width="162.51979" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haCenter" ParentFont="False" Text="[strUserName]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="26.45671" Left="0" Top="136.06308" Width="699.21305" Condition="ds.&#34;branch_name&#34;" KeepTogether="True" ReprintOnNewPage="True">
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="0" Width="147.40167" Height="15.11812" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
      <TfrxMemoView Name="Memo3" Left="151.1812" Top="0" Width="68.03154" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Count"/>
      <TfrxMemoView Name="Memo6" Left="298.58287" Top="0" Width="102.04731" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Labour Cost"/>
      <TfrxMemoView Name="Memo10" Left="408.18924" Top="0" Width="105.82684" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Cost"/>
      <TfrxMemoView Name="Memo11" Left="517.79561" Top="0" Width="132.28355" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Total Cost"/>
      <TfrxMemoView Name="Memo12" Left="657.63822" Top="0" Width="37.7953" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Days"/>
      <TfrxLineView Name="Line2" Left="0" Top="22.67718" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo27" Left="222.99227" Top="0" Width="68.03154" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Hours"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="0" Left="0" Top="185.19697" Width="699.21305" Condition="ds.&#34;job_type&#34;" ReprintOnNewPage="True"/>
    <TfrxDetailData Name="DetailData1" Height="0" Left="0" Top="207.87415" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dscreated_engineer" Left="37.7953" Top="0" Width="98.26778" Height="0" DataField="created_engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;created_engineer&#34;]"/>
      <TfrxMemoView Name="dsrepair_engineer" Left="139.84261" Top="0" Width="102.04731" Height="0" DataField="repair_engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;repair_engineer&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="245.66945" Top="0" Width="56.69295" Height="0" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="306.14193" Top="0" Width="177.63791" Height="0" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequipment" Left="487.55937" Top="0" Width="211.65368" Height="0" DataField="equipment" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equipment&#34;]"/>
      <TfrxMemoView Name="dslabour_cost" Left="702.99258" Top="0" Width="79.37013" Height="0" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;labour_cost&#34;]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="786.14224" Top="0" Width="86.92919" Height="0" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;material_cost&#34;]"/>
      <TfrxMemoView Name="dstotal_cost" Left="895.74861" Top="0" Width="79.37013" Height="0" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;total_cost&#34;]"/>
      <TfrxMemoView Name="dsdays_to_complete" Left="990.23686" Top="0" Width="37.7953" Height="0" DataField="days_to_complete" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;days_to_complete&#34;]"/>
      <TfrxMemoView Name="dslabour_hours" Left="249.44898" Top="0" Width="79.37013" Height="0" DataField="labour_hours" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds.&#34;labour_hours&#34;]"/>
    </TfrxDetailData>
    <TfrxGroupFooter Name="GroupFooter1" Height="71.81107" Left="0" Top="272.12616" Width="699.21305">
      <TfrxMemoView Name="Memo18" Left="298.58287" Top="15.11812" Width="102.04731" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo19" Left="408.18924" Top="15.11812" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo20" Left="517.79561" Top="15.11812" Width="132.28355" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo21" Left="657.63822" Top="15.11812" Width="37.7953" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]"/>
      <TfrxMemoView Name="Memo22" Left="151.1812" Top="15.11812" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)] jobs"/>
      <TfrxLineView Name="Line4" Left="0" Top="3.77953" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo23" Left="0" Top="15.11812" Width="147.40167" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;branch_name&#34;] Totals:"/>
      <TfrxMemoView Name="Memo29" Left="222.99227" Top="15.11812" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_hours&#34;&#62;,DetailData1)]"/>
    </TfrxGroupFooter>
    <TfrxGroupFooter Name="GroupFooter2" Height="18.89765" Left="0" Top="230.55133" Width="699.21305">
      <TfrxMemoView Name="Memo13" Left="298.58287" Top="0" Width="102.04731" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo14" Left="408.18924" Top="0" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo15" Left="517.79561" Top="0" Width="132.28355" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo16" Left="657.63822" Top="0" Width="37.7953" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]"/>
      <TfrxMemoView Name="Memo17" Left="151.1812" Top="0" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)] jobs"/>
      <TfrxMemoView Name="Memo24" Left="37.7953" Top="0" Width="109.60637" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;job_type&#34;] Totals:"/>
      <TfrxMemoView Name="Memo28" Left="222.99227" Top="0" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_hours&#34;&#62;,DetailData1)]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="64.25201" Left="0" Top="404.40971" Width="699.21305">
      <TfrxMemoView Name="Memo1" Left="298.58287" Top="22.67718" Width="102.04731" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo2" Left="408.18924" Top="22.67718" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo4" Left="517.79561" Top="22.67718" Width="132.28355" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo5" Left="657.63822" Top="22.67718" Width="37.7953" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]"/>
      <TfrxMemoView Name="Memo25" Left="151.1812" Top="22.67718" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)] jobs"/>
      <TfrxLineView Name="Line1" Left="0" Top="11.33859" Width="699.21305" Height="0" Frame.Typ="4" Frame.Width="2"/>
      <TfrxMemoView Name="Memo26" Left="0" Top="22.67718" Width="147.40167" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Report Totals:"/>
      <TfrxMemoView Name="Memo30" Left="222.99227" Top="22.67718" Width="68.03154" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_hours&#34;&#62;,DetailData1)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
�Oٶ3�B��ߪOutstanding Warranty AnalysisASELECT 
	branches.BranchName AS branch_name,
	job_types.JobType AS job_type,
	funcGetWarrantyCreatedEngineer(jobs.JobId) AS created_engineer,
	funcGetRepairEngineer(jobs.JobId) AS repair_engineer,
	jobs.JobID AS job_id,
	funcGetCustomerName(JobID) AS customer_name,
	funcGetEquipString(JobID) AS equipment,
	funcGetLabourCost(JobID) AS labour_cost,
	funcGetMaterialCostNew(JobID) AS material_cost,
	funcGetLabourCost(JobID)+funcGetMaterialCostNew(JobID) AS total_cost,
	funcDaysToComplete(JobID) AS days_to_complete,
	jobs.InvoiceDate AS invoice_date	
FROM
	jobs
LEFT JOIN branches ON jobs.BranchID=branches.BranchID
LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
WHERE
	jobs.CWJobID<>""
	AND jobs.WIP=1
ORDER BY branches.BranchName ASC, job_types.JobType ASC, funcGetWarrantyCreatedEngineer(JobID) ASCa0<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39197.7130879514" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30312D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D323527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1028.03216">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="1027.58318" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Outstanding Warranty Analysis"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="113.3859" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="23.77953" Left="0" Top="400.63018" Width="1028.03216">
      <TfrxMemoView Name="Memo8" Left="0" Top="7.55906" Width="334.60637" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="835.27613" Top="7.55906" Width="193.91342" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxLineView Name="Line3" Left="0" Top="3.77953" Width="1028.03216" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="strUserName" Left="427.08689" Top="15.11812" Width="0" Height="0" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[strUserName]"/>
      <TfrxMemoView Name="strUserName1" Left="438.42548" Top="7.55906" Width="162.51979" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haCenter" ParentFont="False" Text="[strUserName]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="18.89765" Left="0" Top="136.06308" Width="1028.03216" Condition="ds.&#34;branch_name&#34;" KeepTogether="True" ReprintOnNewPage="True">
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="0" Width="238.11039" Height="18.89765" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="49.13389" Left="0" Top="177.63791" Width="1028.03216" Condition="ds.&#34;job_type&#34;" ReprintOnNewPage="True">
      <TfrxMemoView Name="dsjob_type" Left="18.89765" Top="7.55906" Width="283.46475" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;job_type&#34;] jobs"/>
      <TfrxMemoView Name="Memo1" Left="37.7953" Top="26.45671" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Created By"/>
      <TfrxMemoView Name="Memo2" Left="139.84261" Top="26.45671" Width="94.48825" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Repaired By"/>
      <TfrxMemoView Name="Memo3" Left="245.66945" Top="26.45671" Width="56.69295" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo4" Left="306.14193" Top="26.45671" Width="177.63791" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer"/>
      <TfrxMemoView Name="Memo5" Left="487.55937" Top="26.45671" Width="211.65368" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="702.99258" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Labour Cost"/>
      <TfrxMemoView Name="Memo10" Left="786.14224" Top="26.45671" Width="86.92919" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Material Cost"/>
      <TfrxMemoView Name="Memo11" Left="895.74861" Top="26.45671" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Total Cost"/>
      <TfrxMemoView Name="Memo12" Left="990.23686" Top="26.45671" Width="37.7953" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Days"/>
      <TfrxLineView Name="Line1" Left="37.7953" Top="45.35436" Width="990.23686" Height="0" Frame.Typ="4"/>
    </TfrxGroupHeader>
    <TfrxDetailData Name="DetailData1" Height="15.11812" Left="0" Top="249.44898" Width="1028.03216" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dscreated_engineer" Left="37.7953" Top="0" Width="98.26778" Height="15.11812" DataField="created_engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;created_engineer&#34;]"/>
      <TfrxMemoView Name="dsrepair_engineer" Left="139.84261" Top="0" Width="102.04731" Height="15.11812" DataField="repair_engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;repair_engineer&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="245.66945" Top="0" Width="56.69295" Height="15.11812" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="306.14193" Top="0" Width="177.63791" Height="15.11812" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequipment" Left="487.55937" Top="0" Width="211.65368" Height="15.11812" DataField="equipment" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equipment&#34;]"/>
      <TfrxMemoView Name="dslabour_cost" Left="702.99258" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;labour_cost&#34;]"/>
      <TfrxMemoView Name="dsmaterial_cost" Left="786.14224" Top="0" Width="86.92919" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;material_cost&#34;]"/>
      <TfrxMemoView Name="dstotal_cost" Left="895.74861" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;total_cost&#34;]"/>
      <TfrxMemoView Name="dsdays_to_complete" Left="990.23686" Top="0" Width="37.7953" Height="15.11812" DataField="days_to_complete" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;days_to_complete&#34;]"/>
    </TfrxDetailData>
    <TfrxGroupFooter Name="GroupFooter1" Height="0" Left="0" Top="340.1577" Width="1028.03216"/>
    <TfrxGroupFooter Name="GroupFooter2" Height="30.23624" Left="0" Top="287.24428" Width="1028.03216">
      <TfrxLineView Name="Line2" Left="37.7953" Top="3.77953" Width="990.23686" Height="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo13" Left="702.99258" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;labour_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo14" Left="786.14224" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;material_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo15" Left="895.74861" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;total_cost&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo16" Left="990.23686" Top="7.55906" Width="37.7953" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[AVG(&#60;ds.&#34;days_to_complete&#34;&#62;,DetailData1) #n%0.2f]"/>
      <TfrxMemoView Name="Memo17" Left="245.66945" Top="7.55906" Width="90.70872" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)] jobs"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٶ'�B��߫Warranties by Incoming JobsmSELECT 
	branches.BranchName AS branch_name,
	job_types.JobType AS job_type,
	jobs.JobID AS job_id,
	jobs.NumberOff AS items,
	funcJobBecomesWarranty(jobs.JobID) AS warranty_job,
	funcJobBecomesWarrantyItemCount(jobs.JobID) AS warranty_items	
FROM
	jobs
LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN branches ON branches.BranchID=jobs.BranchID
WHERE
	DateTimeOfEntry BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59"
AND
                job_types.JobType<>""
AND
                jobs.JobTypeID IN (1,2,3,4,6,8,12,21)
ORDER BY
	branches.BranchName ASC,
	job_types.JobType ASC%<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40465.6268352315" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031302D30372D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031302D31302D3134272200010C16000000204E616D653D22204A4D53207661726961626C6573220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="41.57483" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Warranties by Incoming Jobs between [tknSTARTDATE] and [tknENDDATE]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="120.94496" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="27.55906" Left="0" Top="419.52783" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="7.55906" Width="225" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="517.79561" Top="7.55906" Width="182.57483" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
      <TfrxMemoView Name="strUserName" Left="321.26005" Top="7.55906" Width="98.26778" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[strUserName]"/>
      <TfrxLineView Name="Line3" Left="0" Top="3.77953" Width="699.21305" Height="0" Frame.Typ="4"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="64.25201" Left="0" Top="143.62214" Width="699.21305" Condition="ds.&#34;branch_name&#34;">
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="0" Width="238.11039" Height="18.89765" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
      <TfrxMemoView Name="Memo10" Left="170.07885" Top="26.45671" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Repair&#13;&#10;Jobs In"/>
      <TfrxMemoView Name="Memo11" Left="257.00804" Top="26.45671" Width="79.37013" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Repair&#13;&#10;Items In"/>
      <TfrxMemoView Name="Memo12" Left="343.93723" Top="26.45671" Width="105.82684" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Warranty&#13;&#10;Jobs In (%)"/>
      <TfrxMemoView Name="Memo13" Left="457.32313" Top="26.45671" Width="105.82684" Height="26.45671" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Warranty&#13;&#10;Items In (%)"/>
      <TfrxMemoView Name="Memo14" Left="30.23624" Top="37.7953" Width="79.37013" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Job Type"/>
      <TfrxLineView Name="Line1" Left="30.23624" Top="60.47248" Width="668.97681" Height="0" Frame.Typ="4"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="0" Left="0" Top="230.55133" Width="699.21305" Condition="ds.&#34;job_type&#34;"/>
    <TfrxDetailData Name="DetailData1" Height="0" Left="0" Top="253.22851" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="45.35436" Left="0" Top="313.70099" Width="699.21305">
      <TfrxMemoView Name="Memo2" Left="170.07885" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)]"/>
      <TfrxMemoView Name="Memo3" Left="257.00804" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo5" Left="343.93723" Top="7.55906" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)] ([((SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1))/COUNT(DetailData1))*100 #n%0.2f]%)"/>
      <TfrxMemoView Name="Memo6" Left="457.32313" Top="7.55906" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1)] ([((SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1))/SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1))*100 #n%0.2f]%)"/>
      <TfrxLineView Name="Line2" Left="30.23624" Top="3.77953" Width="668.97681" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
    <TfrxGroupFooter Name="GroupFooter2" Height="15.11812" Left="0" Top="275.90569" Width="699.21305">
      <TfrxMemoView Name="dsjob_type" Left="30.23624" Top="0" Width="128.50402" Height="15.11812" DataField="job_type" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;job_type&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="170.07885" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[COUNT(DetailData1)]"/>
      <TfrxMemoView Name="Memo1" Left="257.00804" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="dswarranty_job" Left="343.93723" Top="0" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)] ([((SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1))/COUNT(DetailData1))*100 #n%0.2f]%)"/>
      <TfrxMemoView Name="Memo4" Left="457.32313" Top="0" Width="105.82684" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1)] ([((SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1))/SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1))*100 #n%0.2f]%)"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٶ%GB��߬Warranties by Repair Engineer�SELECT
       jobs.JobID AS job_id,
       job_types.JobType AS job_type_text,
       users.Username AS engineer,
       job_classes.JobClass AS class_text,
       funcGetCustomerName(jobs.JobID) AS customer_name,
       funcGetEquipString(jobs.JobID) AS equip_string,
       funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") AS overdue_days
           
FROM jobs

LEFT JOIN job_types ON jobs.JobTypeID=job_types.JobTypeID
LEFT JOIN job_classes ON jobs.JobClassID=job_classes.JobClassID
LEFT JOIN branches ON jobs.RepairBranchID=branches.BranchID
LEFT JOIN users ON jobs.RepairedByID=users.UserID

WHERE 
	Warranty="1"
AND
	WIP=1
AND
	jobs.JobTypeID IN ("1","8")
AND
	jobs.EngStatusID IN ("4","5")
AND
	branches.BranchName="[BRANCHNAME]"
AND
                users.Username<>""

ORDER BY
    jobs.JobTypeID ASC,
    users.Username ASC,
    funcGetDaysOverdue(jobs.JobID,"[NOWDATE]") ASCq!<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40144.4804765393" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C27000000204E616D653D22746B6E4E4F5744415445222056616C75653D2227323030392D31312D323727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="34.01577" Left="0" Top="18.89765" Width="1046.92981">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="717.66172" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Warranties by Repair Engineer for [tknBRANCHNAME]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="45.35436" Left="0" Top="241.88992" Width="1046.92981" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxShapeView Name="Shape1" Left="0" Top="0" Width="1046.92981" Height="37.7953"/>
      <TfrxMemoView Name="dsjob_id" Left="0" Top="0" Width="79.37013" Height="18.89765" DataField="job_id" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_id&#34;]"/>
      <TfrxMemoView Name="dsjob_type_text" Left="83.14966" Top="0" Width="94.48825" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
      <TfrxMemoView Name="dsclass_text" Left="181.41744" Top="0" Width="102.04731" Height="18.89765" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;class_text&#34;]"/>
      <TfrxMemoView Name="dscustomer_name" Left="287.24428" Top="0" Width="287.24428" Height="18.89765" DataField="customer_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsequip_string" Left="585.82715" Top="0" Width="287.24428" Height="18.89765" DataField="equip_string" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;equip_string&#34;]"/>
      <TfrxMemoView Name="dsoverdue_days" Left="933.54391" Top="0" Width="90.70872" Height="18.89765" DataField="overdue_days" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;overdue_days&#34;]"/>
      <TfrxShapeView Name="Shape2" Left="0" Top="18.89765" Width="1046.92981" Height="18.89765"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="483.77984" Width="1046.92981">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="903.30767" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="34.01577" Left="0" Top="113.3859" Width="1046.92981" Condition="ds.&#34;job_type_text&#34;">
      <TfrxMemoView Name="dsjob_type_text1" Left="0" Top="3.77952999999999" Width="188.9765" Height="18.89765" DataField="job_type_text" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;job_type_text&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" Height="37.7953" Left="0" Top="309.92146" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo1" Left="0" Top="0" Width="483.77984" Height="15.11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Warranties"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" Height="52.91342" Left="0" Top="408.18924" Width="1046.92981">
      <TfrxSysMemoView Name="SysMemo2" Left="0" Top="26.45671" Width="570.70903" Height="26.45671" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(MasterData1)] Warranties Total"/>
    </TfrxReportSummary>
    <TfrxGroupHeader Name="GroupHeader2" Height="49.13389" Left="0" Top="170.07885" Width="1046.92981" Condition="ds.&#34;engineer&#34;" KeepTogether="True" StartNewPage="True">
      <TfrxMemoView Name="dsengineer" Left="-3.77953" Top="0" Width="321.26005" Height="18.89765" DataField="engineer" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[ds.&#34;engineer&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="26.45671" Width="79.37013" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="JobID"/>
      <TfrxMemoView Name="Memo2" Left="83.14966" Top="26.45671" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Job Type"/>
      <TfrxMemoView Name="Memo3" Left="181.41744" Top="26.45671" Width="94.48825" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Priority"/>
      <TfrxMemoView Name="Memo4" Left="287.24428" Top="26.45671" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo5" Left="585.82715" Top="26.45671" Width="287.24428" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment"/>
      <TfrxMemoView Name="Memo6" Left="933.54391" Top="26.45671" Width="90.70872" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Days Overdue"/>
    </TfrxGroupHeader>
  </TfrxReportPage>
</TfrxReport>
�Oٶ.�B��߭Warranties by Sales Area�SELECT 
	branches.BranchName AS branch_name,
	customers.CustomerName AS customer_name,
	sales_areas.SalesAreaName AS sales_area,
	sales_areas.SalesPerson AS sales_person,
	jobs.JobID AS job_id,
	jobs.NumberOff AS items,
	funcJobBecomesWarranty(jobs.JobID) AS warranty_job,
	funcJobBecomesWarrantyItemCount(jobs.JobID) AS warranty_items	
FROM
	jobs
LEFT JOIN customers ON jobs.CustomerID=customers.CustomerID
LEFT JOIN sales_areas ON customers.SalesAreaID=sales_areas.SalesAreaID
LEFT JOIN branches ON branches.BranchID=jobs.BranchID
WHERE
	DateTimeOfEntry BETWEEN "[STARTDATE] 00:00:00" AND "[ENDDATE] 23:59:59"
ORDER BY
	branches.BranchName ASC,
	sales_areas.SalesAreaName ASC
�+<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39198.7241092824" ScriptLanguage="PascalScript" ScriptText.Text="procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;                 &#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupHeader4OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  &#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupHeader2OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;//   if &#60;ds.&#34;warranty_job&#34;&#62; &#62; 0 then GroupHeader2.Visible:=True;&#13;&#10;//   if &#60;ds.&#34;warranty_job&#34;&#62; = 0 then GroupHeader2.Visible:=False;  &#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupFooter4OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;   if &#60;ds.&#34;warranty_job&#34;&#62; &#62; 0 then GroupFooter4.Visible:=True;&#13;&#10;   if &#60;ds.&#34;warranty_job&#34;&#62; = 0 then GroupFooter4.Visible:=False;  &#13;&#10;end;&#13;&#10;&#13;&#10;begin  &#13;&#10;      &#13;&#10;&#13;&#10;end.                " PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323030372D30322D3031272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323030372D30342D323627220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="41.57483" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Warranties by Sales Area"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="0" Left="0" Top="120.94496" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="480.00031" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" Height="22.67718" Left="0" Top="143.62214" Width="699.21305" Condition="ds.&#34;branch_name&#34;">
      <TfrxMemoView Name="dsbranch_name" Left="0" Top="0" Width="238.11039" Height="18.89765" DataField="branch_name" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="[ds.&#34;branch_name&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupHeader Name="GroupHeader2" Height="60.47248" Left="0" Top="188.9765" Width="699.21305" OnBeforePrint="GroupHeader2OnBeforePrint" Condition="ds.&#34;sales_area&#34;">
      <TfrxMemoView Name="dssales_area" Left="18.89765" Top="7.55906" Width="264.5671" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds.&#34;sales_area&#34;] ([ds.&#34;sales_person&#34;])"/>
      <TfrxMemoView Name="Memo3" Left="37.7953" Top="45.35436" Width="188.9765" Height="15.11812" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo4" Left="313.70099" Top="30.23624" Width="79.37013" Height="30.23624" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Jobs&#13;&#10;Booked In"/>
      <TfrxMemoView Name="Memo5" Left="396.85065" Top="30.23624" Width="75.5906" Height="30.23624" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Items&#13;&#10;Booked In"/>
      <TfrxMemoView Name="Memo6" Left="476.22078" Top="30.23624" Width="75.5906" Height="30.23624" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Warranty&#13;&#10;Jobs In"/>
      <TfrxMemoView Name="Memo10" Left="555.59091" Top="30.23624" Width="75.5906" Height="30.23624" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Warranty&#13;&#10;Items In"/>
    </TfrxGroupHeader>
    <TfrxDetailData Name="DetailData1" Height="0" Left="0" Top="294.80334" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0"/>
    <TfrxGroupFooter Name="GroupFooter1" Height="0" Left="0" Top="419.52783" Width="699.21305"/>
    <TfrxGroupFooter Name="GroupFooter2" Height="41.57483" Left="0" Top="355.27582" Width="699.21305">
      <TfrxMemoView Name="Memo11" Left="313.70099" Top="7.55906" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[COUNT(DetailData1)]"/>
      <TfrxMemoView Name="Memo12" Left="476.22078" Top="7.55906" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo13" Left="396.85065" Top="7.55906" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo14" Left="555.59091" Top="7.55906" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1)]"/>
      <TfrxLineView Name="Line2" Left="37.7953" Top="3.77953" Width="661.41775" Height="0" Frame.Typ="4"/>
    </TfrxGroupFooter>
    <TfrxGroupHeader Name="GroupHeader4" Height="0" Left="0" Top="272.12616" Width="699.21305" Condition="ds.&#34;customer_name&#34;"/>
    <TfrxGroupFooter Name="GroupFooter4" Height="15.11812" Left="0" Top="317.48052" Width="699.21305" OnBeforePrint="GroupFooter4OnBeforePrint">
      <TfrxMemoView Name="dscustomer_name" Left="37.7953" Top="0" Width="268.34663" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HideZeros="True" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0" ParentFont="False" Text="[ds.&#34;customer_name&#34;]"/>
      <TfrxMemoView Name="dsjob_id" Left="313.70099" Top="0" Width="79.37013" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0" ParentFont="False" Text="[COUNT(DetailData1)]"/>
      <TfrxMemoView Name="dswarranty_job" Left="476.22078" Top="0" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%g" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo1" Left="396.85065" Top="0" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;items&#34;&#62;,DetailData1)]"/>
      <TfrxMemoView Name="Memo2" Left="559.37044" Top="0" Width="75.5906" Height="15.11812" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="0" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Verdana" Highlight.Font.Style="0" Highlight.Condition="SUM(&#60;ds.&#34;warranty_job&#34;&#62;,DetailData1)&#62;0" ParentFont="False" Text="[SUM(&#60;ds.&#34;warranty_items&#34;&#62;,DetailData1)]"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
�OٶdB��߮+Warranties In Progress (Electronic Repairs)�SELECT jobid AS JobID,
              funcGetCustomerName(jobid) AS CustomerName,
              funcGetEquipString(jobid) AS Equipment,
              funcGetWarrantyCosts(jobid) AS WarrantyCosts,
              datetimeofentry AS DateTimeOfEntry

FROM jobs
JOIN branches ON jobs.repairbranchid=branches.branchid

WHERE warranty="1"
AND branches.branchname="[BRANCHNAME]"
              
AND wip="1"
AND engstatusid IN (4,5)
AND jobtypeid IN (1,2,3)

ORDER BY datetimeofentry ASC
!<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39322.4690320139" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2A000000204E616D653D22737472557365724E616D65222056616C75653D222744616E204E6963686F6C6C73272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="64.25201" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="468.21274" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Electronic Repair Warranties in Progress"/>
      <TfrxMemoView Name="Memo8" Left="476.22078" Top="3.77953" Width="225" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" VAlign="vaBottom" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="188.9765" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="3.77952999999999" Width="79.37013" Height="18.89765" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dsCustomerName" Left="83.14966" Top="3.77952999999999" Width="245.66945" Height="18.89765" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="dsEquipment" Left="336.37817" Top="3.77952999999999" Width="226.7718" Height="18.89765" DataField="Equipment" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;Equipment&#34;]"/>
      <TfrxMemoView Name="dsDateTimeOfEntry" Left="585.82715" Top="3.77952999999999" Width="132.28355" Height="18.89765" DataField="DateTimeOfEntry" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd.mm.yyy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;DateTimeOfEntry&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="340.1577" Width="718.1107">
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="143.62214" Width="718.1107">
      <TfrxMemoView Name="Memo2" Left="0" Top="3.77952999999999" Width="718.1107" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo3" Left="83.14966" Top="3.77952999999999" Width="245.66945" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo4" Left="336.37817" Top="3.77952999999999" Width="226.7718" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment String"/>
      <TfrxMemoView Name="Memo5" Left="589.60668" Top="3.77952999999999" Width="128.50402" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Date/Time of Entry"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="45.35436" Left="0" Top="234.33086" Width="718.1107">
      <TfrxSysMemoView Name="SysMemo1" Left="0" Top="7.55905999999999" Width="408.18924" Height="37.7953" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Current Warranties In: [COUNT(MasterData1)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٶ�B��߯&Warranties in Progress (Motor Repairs)�SELECT jobid AS JobID,
              funcGetCustomerName(jobid) AS CustomerName,
              funcGetEquipString(jobid) AS Equipment,
              funcGetWarrantyCosts(jobid) AS WarrantyCosts,
              datetimeofentry AS DateTimeOfEntry

FROM jobs
JOIN branches ON jobs.repairbranchid=branches.branchid

WHERE warranty="1"
AND branches.branchname="[BRANCHNAME]"
              
AND wip="1"
AND engstatusid IN (4,5)
AND jobtypeid IN (8)

ORDER BY datetimeofentry ASCi<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40011.3479558333" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C28000000204E616D653D22737472557365724E616D65222056616C75653D22274A696D204D6348756768272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C64726964676527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="64.25201" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="468.21274" Height="24" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Motor Repair Warranties in Progress"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="188.9765" Width="718.1107" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo1" Left="0" Top="3.77952999999999" Width="79.37013" Height="18.89765" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="dsCustomerName" Left="83.14966" Top="3.77952999999999" Width="245.66945" Height="18.89765" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxMemoView Name="dsEquipment" Left="336.37817" Top="3.77952999999999" Width="226.7718" Height="18.89765" DataField="Equipment" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;Equipment&#34;]"/>
      <TfrxMemoView Name="dsDateTimeOfEntry" Left="585.82715" Top="3.77952999999999" Width="132.28355" Height="18.89765" DataField="DateTimeOfEntry" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[ds.&#34;DateTimeOfEntry&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="340.1577" Width="718.1107">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="478.22851" Height="12.44094" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" ParentFont="False" VAlign="vaBottom" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="514.01608" Top="0" Width="205.25201" Height="16.22047" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxHeader Name="Header1" Height="22.67718" Left="0" Top="143.62214" Width="718.1107">
      <TfrxMemoView Name="Memo2" Left="0" Top="3.77952999999999" Width="718.1107" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Job ID"/>
      <TfrxMemoView Name="Memo3" Left="83.14966" Top="3.77952999999999" Width="245.66945" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo4" Left="336.37817" Top="3.77952999999999" Width="226.7718" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Equipment String"/>
      <TfrxMemoView Name="Memo5" Left="589.60668" Top="3.77952999999999" Width="128.50402" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Date/Time of Entry"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="45.35436" Left="0" Top="234.33086" Width="718.1107">
      <TfrxSysMemoView Name="SysMemo1" Left="0" Top="7.55905999999999" Width="408.18924" Height="37.7953" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Current Warranties In: [COUNT(MasterData1)]"/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
�Oٶ�B��ߵInactive Customers�SELECT j.CustomerID, CustomerName, s.SalesAreaName, 
MAX(DATE(DateTimeOfEntry)) AS LastBooked, SUM(InvoicePrice) AS SalesToDate 
FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN sales_areas s ON s.SalesAreaID = c.SalesAreaID
INNER JOIN branches b ON b.BranchID = c.BranchID
WHERE j.CustomerID IS NOT NULL AND b.BranchName = '[BRANCHNAME]'
GROUP BY CustomerID
HAVING LastBooked <= DATE_SUB(CURRENT_DATE(), INTERVAL [DAYS] DAY)
ORDER BY SalesToDate DESC�<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="41499.7502683912" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;        &#13;&#10;&#13;&#10;end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E4252414E43484E414D45222056616C75653D2227416C647269646765272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E646572272200010C1C000000204E616D653D22746B6E44415953222056616C75653D2227363527220000055374796C650100">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxPageHeader Name="PageHeader1" Height="83.14966" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="698.76407" Height="24" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Inactive Customers for [tknBRANCHNAME]"/>
      <TfrxMemoView Name="Memo1" Left="60.47248" Top="60.47248" Width="336.37817" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Customer Name"/>
      <TfrxMemoView Name="Memo2" Left="404.40971" Top="60.47248" Width="102.04731" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Sales Area"/>
      <TfrxMemoView Name="Memo3" Left="0" Top="60.47248" Width="52.91342" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Cust. ID"/>
      <TfrxMemoView Name="Memo4" Left="514.01608" Top="60.47248" Width="83.14966" Height="15.11812" ShowHint="False" AutoWidth="True" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Last Booked"/>
      <TfrxMemoView Name="Memo5" Left="604.7248" Top="60.47248" Width="94.48825" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Sales to date"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="26.45671" Width="649.63018" Height="24" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Verdana" Font.Style="4" ParentFont="False" Text="Who haven't booked for [tknDAYS] or more days"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="30.23624" Left="0" Top="162.51979" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="dsCustomerID" Left="0" Top="0" Width="52.91342" Height="15.11812" ShowHint="False" DataField="CustomerID" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;CustomerID&#34;]"/>
      <TfrxMemoView Name="dsCustomerName" Left="60.47248" Top="0" Width="336.37817" Height="15.11812" ShowHint="False" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;CustomerName&#34;]"/>
      <TfrxLineView Name="Line1" Left="0" Top="22.67718" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxMemoView Name="dsSalesAreaName" Left="404.40971" Top="0" Width="102.04731" Height="15.11812" ShowHint="False" DataField="SalesAreaName" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;SalesAreaName&#34;]"/>
      <TfrxMemoView Name="dsLastBooked" Left="514.01608" Top="0" Width="79.37013" Height="15.11812" ShowHint="False" DataField="LastBooked" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="[ds.&#34;LastBooked&#34;]"/>
      <TfrxMemoView Name="dsSalesToDate" Left="604.7248" Top="0" Width="94.48825" Height="15.11812" ShowHint="False" DataField="SalesToDate" DataSet="ds" DataSetName="ds" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[ds.&#34;SalesToDate&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="253.22851" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[&#60;DATE&#62;]  [FORMATDATETIME('h:mm am/pm', &#60;TIME&#62;)]"/>
      <TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
�R
b�