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/reports_old.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>
TestNú�Hr�,�	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}
G�8�j�R��	Quotation�SELECT
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
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]"SELECT 
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
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]"�^<?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.5939709954" 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;  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; 0, &#60;ds.&#34;CurrencySymbol&#34;&#62; + FormatFloat('#0.00', &#60;ds.&#34;QuoteCurrencyRate&#34;&#62; * (&#60;ds.&#34;SellPrice&#34;&#62; - &#60;ds.&#34;QuotedPrice&#34;&#62;)) , '');  &#13;&#10;  mmQuotedPrice.Text := IIF(&#60;ds.&#34;DiscountRate&#34;&#62; &#60; 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="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E51554F544554595045222056616C75653D222751756F746174696F6E272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D2227313833353536272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C7D000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31392220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D2230220000">
  <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 XXXX XXXXXX or by selecting one of the options below and faxing us on XXXX XXXXXX.&#13;&#10;&#13;&#10;You can also email your confirmation to xxx@xxx.co.uk."/>
      <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;) + '%', '')]"/>
      <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; 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 +44(0)XXXX XXXXXX, fax it to +44(0)XXXX XXXXXX or alternatively you can also email your Purchase Order Number to xxx@xxx.co.uk."/>
    </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="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="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
LanguageIDN�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.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="39286.7309608218" 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="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D2227313030303031272200010C20000000204E616D653D22746B6E54595045222056616C75653D22274E6F726D616C27220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <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" 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" 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"/>
    </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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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="Memo27" Left="0" Top="574.48856" Width="192.75603" Height="18.89765" 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" 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" 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" 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="Memo31" Left="143.62214" Top="538.58267717" Width="536.69326" Height="26.45671" 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" 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>
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.RechargeAccountsCurrencyCodeØ<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.9" 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="40560.8085974653" 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="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <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" ShowHint="False" 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="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" 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>
BranchIDM4��2�R���	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]"u1<?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.5679685301" 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="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030303127220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <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" 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"/>
    </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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" Frame.Typ="4" Frame.Width="2"/>
      <TfrxMemoView Name="Memo38" Left="0" Top="177.63791" Width="196.53556" Height="22.67718" 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" 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" 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" 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" Frame.Typ="4" Frame.Width="2"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
8�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]"B7<?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.5375143171" 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="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030303127220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <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" 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" 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"/>
    </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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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"/>
      <TfrxMemoView Name="Memo12" Left="7.55906" Top="113.3859" Width="128.50402" Height="22.67718" 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" 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" 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"/>
      <TfrxLineView Name="Line1" Left="0" Top="498.89796" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line2" Left="0" Top="555.59091" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line3" Left="0" Top="612.28386" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line4" Left="0" Top="668.97681" Width="699.21305" Height="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line5" Left="188.9765" Top="423.30736" Width="0" Height="302.3624" Frame.Typ="1"/>
      <TfrxLineView Name="Line6" Left="359.05535" Top="423.30736" Width="0" Height="245.66945" Frame.Typ="1"/>
      <TfrxLineView Name="Line7" Left="529.1342" Top="423.30736" Width="0" Height="245.66945" Frame.Typ="1"/>
      <TfrxMemoView Name="Memo1" Left="207.87415" Top="438.42548" Width="132.28355" Height="45.35436" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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>
�����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>
#kR���Delivery ManifestiSELECT d.*, u.UserName, j.JobID, j.CustomerID, c.CustomerName, e.Description, j.NumberOff
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 equipment e ON e.EquipmentID = j.EquipmentID
WHERE d.ManifestID = [MANIFESTID]�!<?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.5363860764" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C22000000204E616D653D22746B6E4D414E49464553544944222056616C75653D2227323627220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <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="136.06308" Left="0" Top="18.89765" Width="699.21305">
      <TfrxMemoView Name="Memo7" Left="0" Top="0" Width="373.72449" Height="31.55906" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-24" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Delivery Manifest"/>
      <TfrxMemoView Name="Memo1" Left="0" Top="45.35436" Width="506.45702" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="Please sign and print to confirm receipt of consignment"/>
      <TfrxMemoView Name="Memo2" Left="105.82684" Top="75.5906" Width="79.37013" Height="22.67718" DataField="ManifestID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;ManifestID&#34;]"/>
      <TfrxMemoView Name="Memo3" Left="192.75603" Top="75.5906" Width="495.11843" Height="22.67718" DataField="d.Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;d.Description&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="0" Top="75.5906" Width="94.48825" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Manifest ID:"/>
      <TfrxMemoView Name="Memo5" Left="105.82684" Top="102.04731" Width="188.9765" Height="22.67718" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds.&#34;DateTimeCreated&#34;]"/>
      <TfrxMemoView Name="Memo6" Left="0" Top="102.04731" Width="102.04731" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Date Created:"/>
      <TfrxMemoView Name="Memo10" Left="325.03958" Top="102.04731" Width="90.70872" Height="22.67718" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="Created By:"/>
      <TfrxMemoView Name="Memo11" Left="419.52783" Top="102.04731" Width="268.34663" Height="22.67718" 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;UserName&#34;]"/>
      <TfrxLineView Name="Line1" Left="0" Top="136.06308" Width="699.21305" Height="0" Frame.Typ="4" Frame.Width="2"/>
    </TfrxPageHeader>
    <TfrxMasterData Name="MasterData1" Height="75.5906" Left="0" Top="215.43321" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
      <TfrxMemoView Name="Memo12" Left="0" Top="3.77952999999999" Width="94.48825" 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="1" ParentFont="False" Text="[ds.&#34;JobID&#34;]"/>
      <TfrxMemoView Name="Memo13" Left="102.04731" Top="3.77952999999999" Width="215.43321" Height="18.89765" DataField="CustomerName" 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;CustomerName&#34;]"/>
      <TfrxMemoView Name="Memo14" Left="325.03958" Top="3.77952999999999" Width="313.70099" Height="18.89765" DataField="e.Description" 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;e.Description&#34;]"/>
      <TfrxMemoView Name="Memo15" Left="646.29963" Top="3.77952999999999" Width="52.91342" 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="1" HAlign="haRight" ParentFont="False" Text="[ds.&#34;NumberOff&#34;]"/>
      <TfrxShapeView Name="Shape1" Left="0" Top="30.23624" Width="253.22851" Height="34.01577"/>
      <TfrxShapeView Name="Shape2" Left="268.34663" Top="30.23624" Width="253.22851" Height="34.01577"/>
      <TfrxMemoView Name="Memo16" Left="0" Top="30.23624" Width="41.57483" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="SIGN"/>
      <TfrxMemoView Name="Memo17" Left="268.34663" Top="30.23624" Width="41.57483" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="PRINT"/>
      <TfrxShapeView Name="Shape3" Left="536.69326" Top="30.23624" Width="162.51979" Height="34.01577"/>
      <TfrxMemoView Name="Memo18" Left="536.69326" Top="30.23624" Width="41.57483" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="DATE"/>
      <TfrxLineView Name="Line2" Left="0" Top="75.5906000000001" Width="699.21305" Height="0" Frame.Typ="4" Frame.Width="2"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="351.49629" Width="699.21305">
      <TfrxMemoView Name="Memo8" Left="0" Top="0" Width="168.30705" Height="20" StretchMode="smMaxHeight" Font.Charset="0" Font.Color="-16777208" 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#]"/>
      <TfrxMemoView Name="Memo19" Left="173.85838" Top="0" Width="275.90569" Height="18.89765" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[strBranchName]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
</TfrxReport>
5�R���
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]"P4<?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.5593673843" 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="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030303127220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
  <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" 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" 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"/>
    </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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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>
-=P�,�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.N�q�d�R�,�Invoice Batch Summary�(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, InvoiceNo, 'S' AS InvoiceType, CustomerOrderNo, 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
WHERE InvoiceBatchID = [INVOICEBATCHID])

UNION ALL

(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, InvoiceNo, 'S' AS InvoiceType, CustomerOrderNo, InvoiceNet * AccountsCurrencyRate AS InvoiceNet, j.VATRate, 'N' AS Recharge, 'D' AS NominalType, j.SalesDeliveryNominalCode AS NominalCode, InvoiceDelivery * AccountsCurrencyRate AS NominalNet
FROM jobs j
LEFT JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN branches b ON b.BranchID = j.BranchID
WHERE InvoiceBatchID = [INVOICEBATCHID] AND InvoiceDelivery <> 0)

UNION ALL

(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, RechargeInvoiceNo, 'S' AS InvoiceType, CustomerOrderNo, 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
WHERE InvoiceBatchID = [INVOICEBATCHID] AND RechargeInvoiceNo IS NOT NULL)

UNION ALL

(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, 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
WHERE InvoiceBatchID = [INVOICEBATCHID] AND RechargeInvoiceNo IS NOT NULL)

ORDER BY InvoiceType DESC, Recharge, BranchID, InvoiceNo, NominalType 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="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>
�-<?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\�ur�,�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>
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>
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>
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�uLZҖ,�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}.M�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.9" 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="40533.686117037" 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;{    &#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;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" ShowHint="False" 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="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" 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>
Pro Forma InvoiceJust testingM݄3���,�&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>
M��