File: D:/MariaDB Data/jms_demo_master/reports.MYD
1�R�,� User List I SELECT * 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 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 = "know thyself") and μηδὲν ἄγαν (meden agan = "nothing in excess"), 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" is the only literary source for the inscription. 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]. 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 "son", 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="[<ds."UserName">]"/>
<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."RateA"]"/>
<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."RateB"]"/>
<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."RateC"]"/>
<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."Abbrev"]"/>
<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."Active"]"/>
<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."BranchID"]"/>
<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(<ds."UserName">, 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="[<DATE>] [FORMATDATETIME('h:mm am/pm', <TIME>)]"/>
<TfrxMemoView Name="Memo14" Left="574.48856" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
</TfrxPageFooter>
</TfrxReportPage>
</TfrxReport>
Test � Nú� H r�,� Job Label � SELECT * FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID
LEFT JOIN groups g ON g.GroupID = c.GroupID
WHERE JobID >= "[FROMJOBID]" AND JobID <= "[TOJOBID]"�A <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39205.5580658681" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String; begin Result := AFullValue; if Trim(AAddValue) <> '' then begin if Result <> '' then begin if AComma then Result := Result + ', ' else if ANewLine then Result := Result + #13#10 else Result := Result + ' ' end; Result := Result + Trim(AAddValue); end; end; function GetAddress: String; begin Result := AddField('', <ds."CustomerName">, True); Result := AddField(Result, <ds."DeliveryAddr1">, True); Result := AddField(Result, <ds."DeliveryAddr2">, True); Result := AddField(Result, <ds."DeliveryAddr3">, True); Result := AddField(Result, <ds."DeliveryAddr4">, True); Result := AddField(Result, <ds."DeliveryAddr5">, True); Result := AddField(Result, <ds."DeliveryPostcode">, True); end; function GetContact: String; begin Result := AddField('', <ds."Title">); Result := AddField(Result, <ds."FirstName">); Result := AddField(Result, <ds."Surname">); Result := AddField(Result, 'Tel: ' + <ds."Tel">, True); end; procedure Page1OnBeforePrint(Sender: TfrxComponent); begin if <tknLABELTYPE> = 'Fault Details' then chdCustomerInstruction.Visible := False else if <tknLABELTYPE> = 'Customer Instruction' then chdFaultDetails.Visible := False end; begin 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."JobID"]"/>
<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."JobClassID"]"/>
<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."JobType"]"/>
<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."DateTimeOfEntry"]"/>
</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."CustomerOrderNo"]"/>
</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."CustomerInstruction"]"/>
<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."AdviceNoteNo"]"/>
</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."Description"]"/>
</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."ManufacturerName"]"/>
</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."ModelNumber"]"/>
</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."NumberOff"]"/>
<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."j.EngineerReportRequired"]"/>
<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."j.QuoteRequired"]"/>
</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."GroupName"]"/>
</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."FaultDetails"]"/>
<TfrxMemoView Name="Memo34" Left="0" Top="0" Width="117.16543" Height="16.2519685" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="Fault Details:"/>
</TfrxChild>
</TfrxReportPage>
</TfrxReport>
TestL
=====================================
Lektronix CZ, s.r.o. : Cenová nabídka
=====================================
Kontaktní osoba: {Title} {FirstName} {Surname}
Spoleènost: {CustomerName}
Datum cenové nabídky: {strToday}
Èíslo Vaší zakázky: {JobID}
Množství: {NumberOff}
Položka k opravì: {ManufacturerName} {ModelNumber} ({Description})
Sériové èíslo: {SerialNo}
{quote_lines}
Cena dopravy: {quoted_delivery} {QuoteCurrencyCode}
Termín dodání: {DeliveryDays} dní
Ceny jsou uvedeny bez DPH. Záruka je 12 mìsícù.
Platnost nabídky je 14 dní.
Máte-li další dotazy, kontaktujte nás co nejdøíve na telefonním èísle 544 528 660.
Uvìdomte nás laskavì o dalším postupu, pro který jste se rozhodli, a to buï telefonicky na èísle 544 528 660, nebo vybráním jedné z níže uvedených možností a zasláním na faxové èíslo 544 501 132.
[ ] Objednaváme. Èíslo objednávky: _______
[ ] Žádáme o vrácení bez opravy.
[ ] Žádáme o likvidaci.
S pozdravem a pøáním pøíjemného dne
{strUserName}
���+0G�8�n�R�� 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,
br.Tel AS BranchTel, br.Fax AS BranchFax, br.SalesEmail AS BranchSalesEmail
FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN currencies cr ON cr.CurrencyCode = j.QuoteCurrencyCode
LEFT JOIN branches br ON br.BranchID = j.BranchID
WHERE JobID = "[JOBID]"V 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,
br.Tel AS BranchTel, br.Fax AS BranchFax, br.SalesEmail AS BranchSalesEmail
FROM job_quote_log q
INNER JOIN jobs j ON j.JobID = q.JobID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN currencies cr ON cr.CurrencyCode = q.QuoteCurrencyCode
LEFT JOIN branches br ON br.BranchID = j.BranchID
WHERE QuoteLogID = "[QUOTELOGID]"b <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39035.7740109375" ReportOptions.Description.Text="" ReportOptions.LastChange="41507.6123501273" ScriptLanguage="PascalScript" ScriptText.Text="procedure Page1OnBeforePrint(Sender: TfrxComponent); begin if <tknQUOTETYPE> = 'Order Number Request' then begin mmMessageQuotation.Visible := False; mmMessageOrderNoRequest.Visible := True; chdReply.Visible := False; mmTitle.Text := UpperCase(<tknQUOTETYPE>); end else begin mmMessageQuotation.Visible := True; mmMessageOrderNoRequest.Visible := False; chdReply.Visible := True; { if <ds."JobTypeID"> = 2 then mmTitle.Text := 'Supply Quotation' else mmTitle.Text := 'Repair Quotation'; } mmTitle.Text := UpperCase(<tknQUOTETYPE>); end; // (SS,14/8/13) changed "<ds."DiscountRate"> < 0" to "<ds."DiscountRate"> <> 0" to show surcharge (positive discount), also added Abs to prevent negative for surcharge mmPriceEach.Text := <ds."CurrencySymbol"> + FormatFloat('#0.00', <ds."QuoteCurrencyRate"> * <ds."SellPrice">); mmDiscountAmount.Text := IIF(<ds."DiscountRate"> <> 0, <ds."CurrencySymbol"> + FormatFloat('#0.00', <ds."QuoteCurrencyRate"> * Abs((<ds."SellPrice"> - <ds."QuotedPrice">))) , ''); mmQuotedPrice.Text := IIF(<ds."DiscountRate"> <> 0, <ds."CurrencySymbol"> + FormatFloat('#0.00', <ds."QuoteCurrencyRate"> * <ds."QuotedPrice">), ''); mmDelivery.Text := <ds."CurrencySymbol"> + FormatFloat('#0.00', <ds."QuoteCurrencyRate"> * <ds."QuotedDelivery">); // pass values to email SetEmailVar('evPriceEach', mmPriceEach.Text); SetEmailVar('evDiscountAmount', mmDiscountAmount.Text); SetEmailVar('evQuotedPrice', mmQuotedPrice.Text); SetEmailVar('evDelivery', mmDelivery.Text); end; function GetFax: String; begin // if Fax from contact record is blank then use the one from customer record if Trim(<ds."Fax">) = '' then Result := <ds."DeliveryFax"> else Result := <ds."Fax">; end; begin end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D2264732200010C3C00000020446174615365743D226672784442446174617365745265706F72742220446174615365744E616D653D2264735265706F727453657474696E6773220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C28000000204E616D653D22746B6E51554F544554595045222056616C75653D222751756F746174696F6E272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C7D000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31392220466F6E742E4E616D653D2256657264616E612220466F6E742E5374796C653D2230220000">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
<TfrxMasterData Name="MasterData1" Height="783.49605322" Left="0" Top="151.1812" Width="699.21305" Child="chdReply" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
<TfrxMemoView Name="Memo2" Left="0" Top="4.15747787000001" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="To:"/>
<TfrxMemoView Name="Memo3" Left="0" Top="27.9685015" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Company:"/>
<TfrxMemoView Name="Memo4" Left="0" Top="51.77952512" Width="102.04724409" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="Fax No:"/>
<TfrxMemoView Name="mmMessageQuotation" Left="11.33858268" Top="109.60626992" Width="676.53587" Height="79.37013" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="We would be grateful if you could advise at your earliest convenience how you would like to proceed. You can do this by phone on [ds."BranchTel"] or by selecting one of the options below and faxing us on [ds."BranchFax"]. You can also email your confirmation to [ds."BranchSalesEmail"]."/>
<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."CustomerInstruction"]"/>
<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(<ds."Title"> + ' ' + Trim(<ds."FirstName"> + ' ' + <ds."Surname">))]"/>
<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."CustomerName"]"/>
<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."AdviceNoteNo"]"/>
<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."NumberOff"]"/>
<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."JobID"]"/>
<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."ManufacturerName"]"/>
<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."ModelNumber"]"/>
<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."Description"]"/>
<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."SerialNo"]"/>
<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(<ds."DiscountRate"> < 0, 'Less Discount at ' + FloatToStr(-<ds."DiscountRate">) + '%', IIF(<ds."DiscountRate"> > 0, 'Surcharge', ''))]"/>
<TfrxMemoView Name="mmDiscountAmount" Left="566.9295" Top="672.75634" Width="109.60637" Height="26.45669291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Discount Amount"/>
<TfrxMemoView Name="Memo35" Left="207.87415" Top="699.21305" Width="347.71667213" Height="24.56692913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Verdana" Font.Style="0" ParentFont="False" Style="Normal" Text="[IIF(<ds."DiscountRate"> <> 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(<ds."DeliveryDays">) + ' 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(<ds."QuoteCurrencyCode"> <> 'GBP', 'The exchange rate is set at quote time and this is the exchange rate that will be used for invoicing.' , '')]"/>
<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. Please phone the number through to [ds."BranchTel"], fax it to [ds."BranchFax"] or alternatively you can also email your Purchase Order Number to [ds."BranchSalesEmail"]."/>
</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."CustomerOrderNo"]"/>
<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 ' + <ds."CurrencySymbol"> + FormatFloat('#0.00', <ds."QuoteCurrencyRate"> * <ds."QuotedPrice"> * <ds."NumberOff">) + ' + ' + <ds."CurrencySymbol"> + FormatFloat('#0.00', <ds."QuoteCurrencyRate"> * <ds."QuotedDelivery">) + ' p&p']"/>
<TfrxShapeView Name="Shape4" Left="11.33859" Top="68.0315399999999" Width="23.81102362" Height="23.81102362" ShowHint="False"/>
<TfrxMemoView Name="Memo42" Left="49.13389732" Top="71.81107" Width="287.24421409" Height="17.00786913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Return the item un-repaired. Reason:"/>
<TfrxShapeView Name="Shape5" Left="11.33859" Top="120.94496" Width="23.81102362" Height="23.81102362" ShowHint="False"/>
<TfrxMemoView Name="Memo43" Left="49.13389732" Top="124.72449" Width="139.84254409" Height="17.00786913" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Scrap the item"/>
<TfrxShapeView Name="Shape6" Left="343.93723" Top="71.81107" Width="340.1577" Height="18.89765" ShowHint="False"/>
</TfrxChild>
<TfrxPageFooter Name="PageFooter1" Height="16.2519685" Left="0" Top="1171.6543" Width="699.21305"/>
<TfrxPageHeader Name="PageHeader1" Height="71.81107" Left="0" Top="18.89765" Width="699.21305">
<TfrxPictureView Name="Picture1" Left="435.77997913" Top="10.96062748" Width="263.43307087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
<TfrxMemoView Name="mmTitle" Left="0" Top="15.11812" Width="423.30736" Height="37.7953" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-27" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="Title"/>
</TfrxPageHeader>
</TfrxReportPage>
</TfrxReport>
Quotation for Job ID {JobID}� <html>Quotation for Job {JobID}
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<table>
<tr><td>To</td><td><b>{Title} {FirstName} {Surname}</b></td></tr>
<tr><td>Company</td><td><b>{CustomerName}</b></td></tr>
<tr><td>Date</td><td><b>{strToday}</b></td></tr>
<tr><td>Your Advice Ref</td><td><b>{AdviceNoteNo}</b></td></tr>
<tr><td>Qty</td><td><b>{NumberOff}</b></td></tr>
<tr><td>Our Job Ref</td><td><b>{JobID}</b></td></tr>
<!-- {JobID} = 109772 -->
<tr><td>Manufacturer</td><td><b>{ManufacturerName}</b></td></tr>
<tr><td>Model Number</td><td><b>{ModelNumber}</b></td></tr>
<!---->
<tr><td>Description</td><td><b>{Description}</b></td></tr>
<!-- {JobID} != 109772 -->
<tr><td>Serial No</td><td><b>{SerialNo}</b></td></tr>
<!---->
<tr><td>Delivery Days</td><td><b>{DeliveryDays}</b></td></tr>
</table>
<br/>
Please see attached quotation for further details.
<br/><br/>
{strEmailSignatureHTML}
</body>
</html>BranchID
LanguageID- ���*bN�3;=�R���
Delivery Note � SELECT j.*, c.*, cc.*, e.*, m.*, f.*,
b1.CompanyName, b1.Address1, b1.Address2, b1.Address3, b1.Address4, b1.Address5, b1.Postcode, b1.LanguageID,
b2.CompanyName, b2.Address1, b2.Address2, b2.Address3, b2.Address4, b2.Address5, b2.Postcode,
"[TYPE]" AS DeliveryNoteType
FROM jobs j
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
INNER JOIN branches b1 ON b1.BranchID = j.BranchID
INNER JOIN branches b2 ON b2.BranchID = j.RepairBranchID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
LEFT JOIN final_outcomes f ON f.FinalOutcomeID = j.FinalOutcomeID
WHERE JobID = "[JOBID]"�: <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40932.513446331" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String; begin Result := AFullValue; if Trim(AAddValue) <> '' then begin if Result <> '' then begin if AComma then Result := Result + ', ' else if ANewLine then Result := Result + #13#10 else Result := Result + ' ' end; Result := Result + Trim(AAddValue); end; end; function GetAddress: String; begin if <ds."DeliveryNoteType"> = 'TransferBack' Then begin Result := AddField('', <ds."b1.CompanyName">, False, True); Result := AddField(Result, <ds."b1.Address1">, False, True); Result := AddField(Result, <ds."b1.Address2">, False, True); Result := AddField(Result, <ds."b1.Address3">, False, True); Result := AddField(Result, <ds."b1.Address4">, False, True); Result := AddField(Result, <ds."b1.Address5">, False, True); Result := AddField(Result, <ds."b1.Postcode">, False, True); end else if <ds."DeliveryNoteType"> = 'TransferTo' Then begin Result := AddField('', <ds."b2.CompanyName">, False, True); Result := AddField(Result, <ds."b2.Address1">, False, True); Result := AddField(Result, <ds."b2.Address2">, False, True); Result := AddField(Result, <ds."b2.Address3">, False, True); Result := AddField(Result, <ds."b2.Address4">, False, True); Result := AddField(Result, <ds."b2.Address5">, False, True); Result := AddField(Result, <ds."b2.Postcode">, False, True); end else // 'Normal' begin Result := AddField('', <ds."CustomerName">, False, True); Result := AddField(Result, <ds."DeliveryAddr1">, False, True); Result := AddField(Result, <ds."DeliveryAddr2">, False, True); Result := AddField(Result, <ds."DeliveryAddr3">, False, True); Result := AddField(Result, <ds."DeliveryAddr4">, False, True); Result := AddField(Result, <ds."DeliveryAddr5">, False, True); Result := AddField(Result, <ds."DeliveryPostcode">, False, True); end; end; function GetContact: String; begin Result := AddField('', <ds."Title">); Result := AddField(Result, <ds."FirstName">); Result := AddField(Result, <ds."Surname">); Result := AddField(Result, 'Tel: ' + <ds."Tel">, True); end; begin end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C2C000000204E616D653D22737472557365724E616D65222056616C75653D2227416E6472657720466F6C6C616E74272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C21000000204E616D653D22746B6E4A4F424944222056616C75653D2227313030303031272200010C20000000204E616D653D22746B6E54595045222056616C75653D22274E6F726D616C272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="215.9" PaperHeight="279.4" PaperSize="1" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader1" Height="294.80316913" Left="0" Top="18.89765" Width="721.512277">
<TfrxMemoView Name="Memo2" Left="75.59055118" Top="136.06299213" Width="566.9295" Height="120.94496" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetAddress]"/>
<TfrxMemoView Name="Memo3" Left="0" Top="260.78739913" Width="721.89023" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="DELIVERY / ADVICE NOTE"/>
<TfrxPictureView Name="Picture1" Left="464.88219" Top="45.35436" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
</TfrxPageHeader>
<TfrxMasterData Name="MasterData1" Height="661.41762551" Left="0" Top="374.17347" Width="721.512277" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
<TfrxMemoView Name="Memo4" Left="0" Top="7.55905999999999" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Job Number:"/>
<TfrxMemoView Name="Memo5" Left="113.3859" Top="7.55905999999999" Width="170.07885" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."JobID"]"/>
<TfrxMemoView Name="Memo6" Left="0" Top="30.23624" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Order Number:"/>
<TfrxMemoView Name="Memo7" Left="113.3859" Top="30.23624" Width="302.3624" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds."CustomerOrderNo"]"/>
<TfrxMemoView Name="Memo8" Left="0" Top="52.91342" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date:"/>
<TfrxMemoView Name="Memo9" Left="113.3859" Top="52.91342" Width="170.07885" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[Date]"/>
<TfrxMemoView Name="Memo10" Left="0" Top="75.5906" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Contact:"/>
<TfrxMemoView Name="Memo12" Left="0" Top="120.94496" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Description"/>
<TfrxMemoView Name="Memo14" Left="0" Top="154.96073" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Description:"/>
<TfrxMemoView Name="Memo16" Left="0" Top="177.63791" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Quantity:"/>
<TfrxMemoView Name="Memo15" Left="113.3859" Top="154.96073" Width="495.11843" Height="18.89765" ShowHint="False" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."Description"]"/>
<TfrxMemoView Name="Memo17" Left="113.3859" Top="75.5906" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
<TfrxMemoView Name="Memo11" Left="113.3859" Top="177.63791" Width="495.11843" Height="18.89765" ShowHint="False" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."NumberOff"]"/>
<TfrxMemoView Name="Memo13" Left="0" Top="200.31509" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Manufacturer:"/>
<TfrxMemoView Name="Memo18" Left="113.3859" Top="200.31509" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."ManufacturerName"]"/>
<TfrxMemoView Name="Memo19" Left="0" Top="222.99227" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Model Number:"/>
<TfrxMemoView Name="Memo20" Left="113.3859" Top="222.99227" Width="495.11843" Height="18.89765" ShowHint="False" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."ModelNumber"]"/>
<TfrxMemoView Name="Memo21" Left="0" Top="245.66945" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Advice Note No:"/>
<TfrxMemoView Name="Memo22" Left="113.3859" Top="245.66945" Width="495.11843" Height="18.89765" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."AdviceNoteNo"]"/>
<TfrxMemoView Name="Memo23" Left="0" Top="268.34663" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Serial Number(s):"/>
<TfrxMemoView Name="Memo24" Left="113.3859" Top="268.34663" Width="495.11843" Height="56.69291827" ShowHint="False" StretchMode="smMaxHeight" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."SerialNo"]"/>
<TfrxMemoView Name="Memo25" Left="0" Top="332.59864" Width="521.57480315" Height="192.75590551" ShowHint="False" DataField="InvoiceText" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."InvoiceText"]"/>
<TfrxMemoView Name="Memo26" Left="0" Top="540.47279" Width="139.84261" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-17" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Final Outcome:"/>
<TfrxMemoView Name="Memo31" Left="143.62214" Top="538.58267717" Width="536.69326" Height="26.45671" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[Translate(<ds."FinalOutcome">,<ds."c.LanguageID">,<ds."b1.LanguageID">)]"/>
</TfrxMasterData>
<TfrxPageFooter Name="PageFooter1" Height="18.89765" Left="0" Top="1096.0637" Width="721.512277">
<TfrxMemoView Name="Memo1" Left="0" Top="0" Width="355.27582" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="['Branch: ' + <strBranchName>]"/>
</TfrxPageFooter>
</TfrxReportPage>
</TfrxReport>
E ��l�F��� ��r�,� Invoice � SELECT i.*, j.*,
c.CustomerName, c.InvoiceCustomerName, c.InvoiceAddr1, c.InvoiceAddr2, c.InvoiceAddr3, c.InvoiceAddr4, c.InvoiceAddr5, c.InvoicePostcode, c.InvoiceTel, c.InvoiceFax, c.AccountNo, c.VATIDNumber,
cc.Title, cc.FirstName, cc.Surname, cc.Tel, cc.TelExtension,
e.ModelNumber, e.Description, m.ManufacturerName,
bc.BranchPrefix AS ComBranchPrefix, bc.CompanyName AS ComCompanyName, bc.Address1 AS ComAddress1, bc.Address2 AS ComAddress2, bc.Address3 AS ComAddress3, bc.Address4 AS ComAddress4, bc.Address5 AS ComAddress5, bc.Postcode AS ComPostcode, bc.Tel AS ComTel, bc.Fax AS ComFax, bc.VATNo AS ComVATNo,
br.BranchPrefix AS RepBranchPrefix, br.CompanyName AS RepCompanyName, br.Address1 AS RepAddress1, br.Address2 AS RepAddress2, br.Address3 AS RepAddress3, br.Address4 AS RepAddress4, br.Address5 AS RepAddress5, br.Postcode AS RepPostcode, br.Tel AS RepTel, br.Fax AS RepFax, br.VATNo AS RepVATNo,
ci.CurrencySymbol AS InvoiceCurrencySymbol, ci.CurrencyName AS InvoiceCurrencyName,
ca.CurrencySymbol AS AccountsCurrencySymbol, ca.CurrencyName AS AccountsCurrencyName,
cr.CurrencySymbol AS RechargeCurrencySymbol, cr.CurrencyName AS RechargeCurrencyName,
cra.CurrencySymbol AS RechargeAccountsCurrencySymbol, cra.CurrencyName AS RechargeAccountsCurrencyName
FROM invoice_print_list i
INNER JOIN jobs j ON j.JobID = i.IPL_JobID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
INNER JOIN branches bc ON bc.BranchID = j.BranchID
INNER JOIN branches br ON br.BranchID = j.RepairBranchID
LEFT JOIN currencies ci ON ci.CurrencyCode = j.InvoiceCurrencyCode
LEFT JOIN currencies ca ON ca.CurrencyCode = j.AccountsCurrencyCode
LEFT JOIN currencies cr ON cr.CurrencyCode = j.RechargeCurrencyCode
LEFT JOIN currencies cra ON cra.CurrencyCode = j.RechargeAccountsCurrencyCoder� <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="41507.6299790394" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String; begin Result := AFullValue; if Trim(AAddValue) <> '' then begin if Result <> '' then begin if AComma then Result := Result + ', ' else if ANewLine then Result := Result + #13#10 else Result := Result + ' ' end; Result := Result + Trim(AAddValue); end; end; function GetAddress: String; begin if IsRecharge then // if it's a recharge invoice begin // commercial branch address Result := AddField('', <ds."ComCompanyName">, False, True); Result := AddField(Result, 'Accounts Payable', False, True); Result := AddField(Result, <ds."ComAddress1">, False, True); Result := AddField(Result, <ds."ComAddress2">, False, True); Result := AddField(Result, <ds."ComAddress3">, False, True); Result := AddField(Result, <ds."ComAddress4">, False, True); Result := AddField(Result, <ds."ComAddress5">, False, True); Result := AddField(Result, <ds."RepPostcode">, False, True); end else begin // customer's address if Trim(<ds."InvoiceCustomerName">) = '' then Result := AddField('', <ds."CustomerName">, False, True) else Result := AddField('', <ds."InvoiceCustomerName">, False, True); Result := AddField(Result, 'Accounts Payable', False, True); Result := AddField(Result, <ds."InvoiceAddr1">, False, True); Result := AddField(Result, <ds."InvoiceAddr2">, False, True); Result := AddField(Result, <ds."InvoiceAddr3">, False, True); Result := AddField(Result, <ds."InvoiceAddr4">, False, True); Result := AddField(Result, <ds."InvoiceAddr5">, False, True); Result := AddField(Result, <ds."InvoicePostcode">, False, True); end; end; function GetContact: String; begin Result := AddField('', <ds."Title">); Result := AddField(Result, <ds."FirstName">); Result := AddField(Result, <ds."Surname">); Result := AddField(Result, 'Tel: ' + <ds."Tel">, True); end; function GetBranchAddress: String; begin if IsRecharge then begin Result := AddField('', <ds."RepCompanyName">, False, True); Result := AddField(Result, <ds."RepAddress1">, False, True); Result := AddField(Result, <ds."RepAddress2">, False, True); Result := AddField(Result, <ds."RepAddress3">, False, True); Result := AddField(Result, <ds."RepAddress4">, False, True); Result := AddField(Result, <ds."RepAddress5">, False, True); Result := AddField(Result, <ds."RepPostcode">, False, True); if <ds."RepTel"> <> '' then Result := AddField(Result, 'Tel: ' + <ds."RepTel">, False, True); if <ds."RepFax"> <> '' then Result := AddField(Result, 'Fax: ' + <ds."RepFax">, False, True); end else begin Result := AddField('', <ds."ComCompanyName">, False, True); Result := AddField(Result, <ds."ComAddress1">, False, True); Result := AddField(Result, <ds."ComAddress2">, False, True); Result := AddField(Result, <ds."ComAddress3">, False, True); Result := AddField(Result, <ds."ComAddress4">, False, True); Result := AddField(Result, <ds."ComAddress5">, False, True); Result := AddField(Result, <ds."ComPostcode">, False, True); if <ds."ComTel"> <> '' then Result := AddField(Result, 'Tel: ' + <ds."ComTel">, False, True); if <ds."ComFax"> <> '' then Result := AddField(Result, 'Fax: ' + <ds."ComFax">, False, True); end; end; function GetVATRegNo: String; begin if IsRecharge then Result := <ds."RepVATNo"> else Result := <ds."ComVATNo">; end; function IsCustomerCopy: Boolean; begin Result := <ds."IPL_InvoiceType"> = 'C'; end; function IsCustomerAccountsCopy: Boolean; begin Result := <ds."IPL_InvoiceType"> = 'A'; end; function IsRechargeCopy: Boolean; begin Result := <ds."IPL_InvoiceType"> = 'R'; end; function IsRechargeAccountsCopy: Boolean; begin Result := <ds."IPL_InvoiceType"> = 'RA'; end; function IsRecharge: Boolean; begin Result := IsRechargeCopy or IsRechargeAccountsCopy; end; function GetInvoiceTitle: String; begin if <ds."CreditNote"> then Result := 'CREDIT NOTE' else if IsRecharge then Result := 'RECHARGE INVOICE' else if <ds."InvoiceNo"> > 0 then Result := 'INVOICE' else Result := 'ZERO INVOICE'; if IsRecharge then Result := Result + ' ' + <ds."RepBranchPrefix"> + ' ' + IntToStr(<ds."RechargeInvoiceNo">) else Result := Result + ' ' + <ds."ComBranchPrefix"> + ' ' + IntToStr(<ds."InvoiceNo">); end; function IsGBPCurrency: Boolean; begin Result := GetCurrencyCode = 'GBP'; end; function GetCurrencyCode: String; begin if IsCustomerCopy then Result := <ds."InvoiceCurrencyCode"> else if IsCustomerAccountsCopy then Result := <ds."AccountsCurrencyCode"> else if IsRechargeCopy then Result := <ds."RechargeCurrencyCode"> else if IsRechargeAccountsCopy then Result := <ds."RechargeAccountsCurrencyCode"> else ShowMessage('Currency Code undetermined'); end; function GetCurrencyRate: Double; begin if IsCustomerCopy then Result := <ds."InvoiceCurrencyRate"> else if IsCustomerAccountsCopy then Result := <ds."AccountsCurrencyRate"> else if IsRechargeCopy then Result := <ds."RechargeCurrencyRate"> else if IsRechargeAccountsCopy then Result := <ds."RechargeAccountsCurrencyRate"> else ShowMessage('Currency Rate undetermined'); end; function GetCurrencySymbol: String; begin if IsCustomerCopy then Result := <ds."InvoiceCurrencySymbol"> else if IsCustomerAccountsCopy then Result := <ds."AccountsCurrencySymbol"> else if IsRechargeCopy then Result := <ds."RechargeCurrencySymbol"> else if IsRechargeAccountsCopy then Result := <ds."RechargeAccountsCurrencySymbol"> else ShowMessage('Currency Symbol undetermined'); end; function GetCurrencyName: String; begin if IsCustomerCopy then Result := <ds."InvoiceCurrencyName"> else if IsCustomerAccountsCopy then Result := <ds."AccountsCurrencyName"> else if IsRechargeCopy then Result := <ds."RechargeCurrencyName"> else if IsRechargeAccountsCopy then Result := <ds."RechargeAccountsCurrencyName"> else ShowMessage('Currency Name undetermined'); end; function AsCurrency(const AValue: Double): String; begin Result := GetCurrencySymbol + FormatFloat('#0.00', GetCurrencyRate * AValue); end; function IsDiscount: Boolean; begin Result := <ds."DiscountRate"> < 0; end; function GetInvoicePriceIncDiscount: Double; begin if IsDiscount then begin // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field if <ds."DiscountRate"> = -100 then Result := 0 else Result := <ds."InvoicePrice"> * (100/(100 + <ds."DiscountRate">)); end else Result := <ds."InvoicePrice">; end; function GetDiscount: Double; begin // done this way to ensure there's no rounding error of 1p in the printout Result := GetInvoicePriceIncDiscount - <ds."InvoicePrice"> end; function GetQuotedPriceAsCurrency: String; begin Result := AsCurrency(<ds."QuotedPrice">); end; function GetInvoicePriceIncDiscountAsCurrency: String; begin Result := AsCurrency(GetInvoicePriceIncDiscount); end; function GetDiscountAsCurrency: String; begin if IsDiscount then Result := AsCurrency(GetDiscount) else Result := ''; end; function GetNetPriceIfDiscountAsCurrency: String; begin if IsDiscount then Result := AsCurrency(<ds."InvoicePrice">) else Result := ''; end; function GetDeliveryAsCurrency: String; begin Result := AsCurrency(<ds."InvoiceDelivery">); end; function GetNetAsCurrency: String; begin if IsRecharge then Result := AsCurrency(<ds."RechargeInvoiceNet">) else Result := AsCurrency(<ds."InvoiceNet">); end; function GetVATAsCurrency: String; begin if IsRecharge then Result := AsCurrency(<ds."VATRate"> * <ds."RechargeInvoiceNet"> / 100) else Result := AsCurrency(<ds."VATRate"> * <ds."InvoiceNet"> / 100); end; function GetTotalAsCurrency: String; begin if IsRecharge then Result := AsCurrency(<ds."RechargeInvoiceNet"> * ((<ds."VATRate"> / 100) + 1)) else Result := AsCurrency(<ds."InvoiceNet"> * ((<ds."VATRate"> / 100) + 1)); end; function GetExchangeRateMessage: String; begin if IsGBPCurrency then Result := '' else begin Result := 'This invoice was generated using the exchange rate ' + FormatFloat('#0.0000', GetCurrencyRate) + ' which was set at the time of '; if IsRecharge then Result := Result + 'invoicing.' else Result := Result + 'quotation.'; end; end; function GetLabel: String; var LLabel: String; // LLabel used because Result := Result + .. causes error begin if IsCustomerAccountsCopy or IsRechargeAccountsCopy then LLabel := 'Accounts Copy' else LLabel := ''; if <ds."IPL_CopyNo"> > 1 then LLabel := LLabel + IIf(LLabel = '', 'Copy', '') + ' ' + IntToStr(<ds."IPL_CopyNo">); Result := LLabel; end; procedure MasterData1OnBeforePrint(Sender: TfrxComponent); var LVisible: Boolean; begin // hide certain values if recharge invoice LVisible := not IsRecharge; mInvoicePrice.Visible := LVisible; mDiscountRate.Visible := LVisible; mDiscount.Visible := LVisible; mNetPriceIfDiscountTitle.Visible := LVisible; mNetPriceIfDiscount.Visible := LVisible; mDeliveryTitle.Visible := LVisible; mDelivery.Visible := LVisible; end; begin end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D2264732200010C3C00000020446174615365743D226672784442446174617365745265706F72742220446174615365744E616D653D2264735265706F727453657474696E6773220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C22000000204E616D653D22737472557365724E616D65222056616C75653D222744656D6F272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D222744454D272200010C24000000204E616D653D227374724272616E63684E616D65222056616C75653D222744656D6F272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader1" Height="119.43307086" Left="0" Top="18.89765" Width="699.21305">
<TfrxPictureView Name="Picture1" Left="366.61417323" Top="36.28345724" Width="332.5984252" Height="71.81102362" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
</TfrxPageHeader>
<TfrxMasterData Name="MasterData1" Height="914.64626" Left="0" Top="200.31509" Width="699.21305" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" StartNewPage="True">
<TfrxMemoView Name="Memo3" Left="34.01577" Top="0" Width="321.26005" Height="147.40167" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetAddress]"/>
<TfrxMemoView Name="Memo5" Left="0" Top="147.40159433" Width="699.21305" Height="27.5905585" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-24" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[GetInvoiceTitle]"/>
<TfrxShapeView Name="Shape1" Left="0" Top="188.97658787" Width="699.21305" Height="86.92919" ShowHint="False"/>
<TfrxMemoView Name="Memo6" Left="79.37013" Top="196.53564787" Width="120.94496" Height="18.89765" ShowHint="False" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."InvoiceDate"]"/>
<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."CustomerOrderNo"]"/>
<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."JobID"]"/>
<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(<ds."VATIDNumber"> = '', '', '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."VATIDNumber"]"/>
<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."AccountNo"]"/>
<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."Description"]"/>
<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."NumberOff"]"/>
<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."ManufacturerName"]"/>
<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."ModelNumber"]"/>
<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."AdviceNoteNo"]"/>
<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."SerialNo"]"/>
<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."InvoiceText"]"/>
<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(<ds."DiscountRate"> < 0, 'Less Discount at ' + FloatToStr(-<ds."DiscountRate">) + '%', '')]"/>
<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(<ds."DiscountRate"> < 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(<ds."VATRate">) + '%']"/>
<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 & OE Claims with regard to the above must be notified to us within 7 days of the date of invoice. Please note all contracts are made in accordance with our standard conditions of trading a copy of which is available on request."/>
<TfrxMemoView Name="Memo50" Left="7.55906" Top="797.48091787" Width="684.09493" Height="41.57483" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text=""/>
<TfrxMemoView Name="Memo52" Left="476.22078" Top="668.97689787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Invoice Net ="/>
<TfrxMemoView Name="Memo53" Left="476.22078" Top="687.87454787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="VAT ="/>
<TfrxMemoView Name="Memo54" Left="476.22078" Top="706.77219787" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Total ="/>
<TfrxMemoView Name="Memo55" Left="585.82715" Top="668.97689787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetNetAsCurrency]"/>
<TfrxMemoView Name="Memo56" Left="585.82715" Top="687.87454787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetVATAsCurrency]"/>
<TfrxMemoView Name="Memo57" Left="585.82715" Top="706.77219787" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetTotalAsCurrency]"/>
<TfrxMemoView Name="Memo51" Left="291.02381" Top="873.07151787" Width="404.40971" Height="15.11812" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[GetLabel]"/>
<TfrxMemoView Name="Memo1" Left="491.3389" Top="0" Width="204.09462" Height="139.84261" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetBranchAddress]"/>
<TfrxMemoView Name="mInvoicePrice" Left="585.82715" Top="336.37817" Width="105.82684" Height="18.89763291" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" HAlign="haRight" ParentFont="False" Style="Normal" Text="[GetInvoicePriceIncDiscountAsCurrency]"/>
</TfrxMasterData>
</TfrxReportPage>
</TfrxReport>
?Invoice for Order No {CustomerOrderNo} (Invoice No {InvoiceNo})2 <html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
Dear
<!-- {InvoiceCustomerName} != -->
{InvoiceCustomerName},
<!---->
<!-- {InvoiceCustomerName} = -->
{CustomerName},
<!---->
<br /><br />
Please find attached the invoice for Order No {CustomerOrderNo}.
<br /><br />
Your order details:
<br/>
<table>
<tr><td>Company</td><td><b>{CustomerName}</b></td></tr>
<tr><td>Date</td><td><b>{strToday}</b></td></tr>
<tr><td>Your Order No</td><td><b>{CustomerOrderNo}</b></td></tr>
<tr><td>Your Advice Ref</td><td><b>{AdviceNoteNo}</b></td></tr>
<tr><td>Our Job Ref</td><td><b>{JobID}</b></td></tr>
<tr><td>Invoice No</td><td><b>{InvoiceNo}</b></td></tr>
<tr><td>Qty</td><td><b>{NumberOff}</b></td></tr>
<tr><td>Manufacturer</td><td><b>{ManufacturerName}</b></td></tr>
<tr><td>Model Number</td><td><b>{ModelNumber}</b></td></tr>
<tr><td>Description</td><td><b>{Description}</b></td></tr>
<tr><td>Serial No</td><td><b>{SerialNo}</b></td></tr>
</table>
<br />
{strEmailSignatureHTML}
</body>
</html>BranchID ���� M4�� 6wR��� Engineer Service Report 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
WHERE JobID = "[JOBID]"5 <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40928.8499811806" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String; begin Result := AFullValue; if Trim(AAddValue) <> '' then begin if Result <> '' then begin if AComma then Result := Result + ', ' else if ANewLine then Result := Result + #13#10 else Result := Result + ' ' end; Result := Result + Trim(AAddValue); end; end; function GetAddress: String; begin Result := AddField('', <ds."CustomerName">, False, True); Result := AddField(Result, <ds."DeliveryAddr1">, False, True); Result := AddField(Result, <ds."DeliveryAddr2">, False, True); Result := AddField(Result, <ds."DeliveryAddr3">, False, True); Result := AddField(Result, <ds."DeliveryAddr4">, False, True); Result := AddField(Result, <ds."DeliveryAddr5">, False, True); Result := AddField(Result, <ds."DeliveryPostcode">, False, True); end; function GetContact: String; begin Result := AddField('', <ds."Title">); Result := AddField(Result, <ds."FirstName">); Result := AddField(Result, <ds."Surname">); Result := AddField(Result, 'Tel: ' + <ds."Tel">, True); end; function GetFax: String; begin // if Fax from contact record is blank then use the one from customer record if Trim(<ds."Fax">) = '' then Result := <ds."DeliveryFax"> else Result := <ds."Fax">; end; begin end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader1" Height="204.09444913" Left="0" Top="18.89765" Width="699.21305">
<TfrxMemoView Name="Memo3" Left="222.99227" Top="162.51961913" Width="253.22851" Height="30.23624" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-24" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="15" HAlign="haCenter" ParentFont="False" Text="SERVICE REPORT"/>
<TfrxPictureView Name="Picture1" Left="445.98454" Top="18.89765" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
</TfrxPageHeader>
<TfrxMasterData Name="MasterData1" Height="767.24459" Left="0" Top="283.46475" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
<TfrxMemoView Name="Memo4" Left="0" Top="79.37013" Width="143.62214" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Our Job Ref:"/>
<TfrxMemoView Name="Memo5" Left="162.51979" Top="79.37013" Width="302.3624" Height="22.67718" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."JobID"]"/>
<TfrxMemoView Name="Memo10" Left="0" Top="26.45671" Width="143.62214" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Contact:"/>
<TfrxMemoView Name="Memo14" Left="0" Top="215.43321" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Description:"/>
<TfrxMemoView Name="Memo15" Left="113.3859" Top="215.43321" Width="495.11843" Height="18.89765" ShowHint="False" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."Description"]"/>
<TfrxMemoView Name="Memo17" Left="162.51979" Top="26.45671" Width="559.37044" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
<TfrxMemoView Name="Memo13" Left="0" Top="238.11039" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Manufacturer:"/>
<TfrxMemoView Name="Memo18" Left="113.3859" Top="238.11039" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."ManufacturerName"]"/>
<TfrxMemoView Name="Memo19" Left="0" Top="260.78757" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Model Number:"/>
<TfrxMemoView Name="Memo20" Left="113.3859" Top="260.78757" Width="495.11843" Height="18.89765" ShowHint="False" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."ModelNumber"]"/>
<TfrxMemoView Name="Memo23" Left="0" Top="287.24428" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Serial Number(s):"/>
<TfrxMemoView Name="Memo24" Left="113.3859" Top="287.24428" Width="495.11843" Height="56.69291827" ShowHint="False" StretchMode="smMaxHeight" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."SerialNo"]"/>
<TfrxMemoView Name="Memo25" Left="0" Top="389.29159" Width="687.87412315" Height="374.1732552" ShowHint="False" DataField="ExternalReport" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."ExternalReport"]"/>
<TfrxMemoView Name="Memo1" Left="0" Top="0" Width="143.62214" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Customer:"/>
<TfrxMemoView Name="Memo2" Left="162.51979" Top="0" Width="559.37044" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds."CustomerName"]"/>
<TfrxMemoView Name="Memo32" Left="0" Top="52.91342" Width="143.62214" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Fax No:"/>
<TfrxMemoView Name="Memo33" Left="162.51979" Top="52.91342" Width="442.20501" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[GetFax]"/>
<TfrxMemoView Name="Memo34" Left="0" Top="105.82684" Width="151.1812" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Customer Order No:"/>
<TfrxMemoView Name="Memo35" Left="162.51979" Top="105.82684" Width="559.37044" Height="22.67718" ShowHint="False" DataField="CustomerOrderNo" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."CustomerOrderNo"]"/>
<TfrxMemoView Name="Memo36" Left="0" Top="132.28355" Width="151.1812" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Advice Note No:"/>
<TfrxMemoView Name="Memo37" Left="162.51979" Top="132.28355" Width="559.37044" Height="22.67718" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."AdviceNoteNo"]"/>
<TfrxLineView Name="Line1" Left="0" Top="162.51979" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4" Frame.Width="2"/>
<TfrxMemoView Name="Memo38" Left="0" Top="177.63791" Width="196.53556" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-17" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Description of Repair:"/>
<TfrxMemoView Name="Memo6" Left="0" Top="355.27582" Width="196.53556" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-17" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Action:"/>
</TfrxMasterData>
<TfrxPageFooter Name="PageFooter1" Height="45.35436" Left="0" Top="1111.18182" Width="699.21305">
<TfrxMemoView Name="Memo28" Left="0" Top="7.55906000000004" Width="434.64595" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Engineer:"/>
<TfrxMemoView Name="Memo30" Left="487.55937" Top="7.55906000000004" Width="177.63791" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="Date:"/>
<TfrxLineView Name="Line2" Left="0" Top="41.57483" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4" Frame.Width="2"/>
</TfrxPageFooter>
</TfrxReportPage>
</TfrxReport>
1 ��l� <�R���
Engineer On-site Report 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
WHERE JobID = "[JOBID]"�; <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40928.8495265394" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String; begin Result := AFullValue; if Trim(AAddValue) <> '' then begin if Result <> '' then begin if AComma then Result := Result + ', ' else if ANewLine then Result := Result + #13#10 else Result := Result + ' ' end; Result := Result + Trim(AAddValue); end; end; function GetAddress: String; begin Result := AddField('', <ds."CustomerName">, False, True); Result := AddField(Result, <ds."DeliveryAddr1">, False, True); Result := AddField(Result, <ds."DeliveryAddr2">, False, True); Result := AddField(Result, <ds."DeliveryAddr3">, False, True); Result := AddField(Result, <ds."DeliveryAddr4">, False, True); Result := AddField(Result, <ds."DeliveryAddr5">, False, True); Result := AddField(Result, <ds."DeliveryPostcode">, False, True); end; function GetContact: String; begin Result := AddField('', <ds."Title">); Result := AddField(Result, <ds."FirstName">); Result := AddField(Result, <ds."Surname">); Result := AddField(Result, 'Tel: ' + <ds."Tel">, True); end; begin end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader1" Height="215.43303913" Left="0" Top="18.89765" Width="699.21305">
<TfrxMemoView Name="Memo2" Left="75.59055118" Top="18.89756213" Width="566.9295" Height="170.07885" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetAddress]"/>
<TfrxMemoView Name="Memo3" Left="249.44898" Top="181.41726913" Width="196.53556" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="15" HAlign="haCenter" ParentFont="False" Text="ON-SITE REPORT"/>
<TfrxPictureView Name="Picture1" Left="457.32313" Top="7.55906" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
</TfrxPageHeader>
<TfrxMasterData Name="MasterData1" Height="793.70117551" Left="0" Top="294.80334" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
<TfrxMemoView Name="Memo4" Left="434.64595" Top="7.55905999999999" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Job Number:"/>
<TfrxMemoView Name="Memo5" Left="532.91373" Top="7.55905999999999" Width="166.29932" Height="22.67718" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."JobID"]"/>
<TfrxMemoView Name="Memo6" Left="0" Top="34.01577" Width="75.5906" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Order No:"/>
<TfrxMemoView Name="Memo7" Left="79.37013" Top="34.01577" Width="351.49629" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."CustomerOrderNo"]"/>
<TfrxMemoView Name="Memo8" Left="434.64595" Top="34.01577" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date:"/>
<TfrxMemoView Name="Memo9" Left="532.91373" Top="34.01577" Width="166.29932" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[Date]"/>
<TfrxMemoView Name="Memo10" Left="0" Top="60.47248" Width="75.5906" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Contact:"/>
<TfrxMemoView Name="Memo17" Left="79.37013" Top="60.47248" Width="351.49629" Height="22.67718" ShowHint="False" StretchMode="smActualHeight" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
<TfrxMemoView Name="Memo21" Left="434.64595" Top="60.47248" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Advice Note:"/>
<TfrxMemoView Name="Memo22" Left="532.91373" Top="60.47248" Width="166.29932" Height="22.67718" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."AdviceNoteNo"]"/>
<TfrxMemoView Name="Memo28" Left="0" Top="755.906" Width="272.12616" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Signed __________________________"/>
<TfrxMemoView Name="Memo29" Left="279.68522" Top="755.906" Width="260.78757" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Name __________________________"/>
<TfrxMemoView Name="Memo30" Left="548.03185" Top="755.906" Width="147.40167" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date ____________"/>
<TfrxMemoView Name="Memo11" Left="0" Top="7.55905999999999" Width="75.5906" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Customer:"/>
<TfrxMemoView Name="Memo13" Left="79.37013" Top="7.55905999999999" Width="351.49629" Height="22.67718" ShowHint="False" DataField="CustomerName" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."CustomerName"]"/>
<TfrxShapeView Name="Shape1" Left="0" Top="105.82684" Width="699.21305" Height="257.007874015748" ShowHint="False"/>
<TfrxMemoView Name="Memo12" Left="7.55906" Top="113.3859" Width="128.50402" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Work carried out:"/>
<TfrxMemoView Name="Memo14" Left="385.51206" Top="381.73253" Width="302.3624" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Signed _____________________________"/>
<TfrxMemoView Name="Memo15" Left="0" Top="381.73253" Width="377.95278031" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Name of engineer ______________________________"/>
<TfrxShapeView Name="Shape2" Left="0" Top="423.30736" Width="699.21305" Height="302.36222913" ShowHint="False"/>
<TfrxLineView Name="Line1" Left="0" Top="498.89796" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
<TfrxLineView Name="Line2" Left="0" Top="555.59091" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
<TfrxLineView Name="Line3" Left="0" Top="612.28386" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
<TfrxLineView Name="Line4" Left="0" Top="668.97681" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
<TfrxLineView Name="Line5" Left="188.9765" Top="423.30736" Width="0" Height="302.3624" ShowHint="False" Frame.Typ="1"/>
<TfrxLineView Name="Line6" Left="359.05535" Top="423.30736" Width="0" Height="245.66945" ShowHint="False" Frame.Typ="1"/>
<TfrxLineView Name="Line7" Left="529.1342" Top="423.30736" Width="0" Height="245.66945" ShowHint="False" Frame.Typ="1"/>
<TfrxMemoView Name="Memo1" Left="207.87415" Top="438.42548" Width="132.28355" Height="45.35436" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="BETWEEN 07:00 & 17:00"/>
<TfrxMemoView Name="Memo16" Left="374.17347" Top="434.64595" Width="132.28355" Height="56.69295" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="BETWEEN 17:00 & 22:00 & All day Saturday"/>
<TfrxMemoView Name="Memo18" Left="548.03185" Top="434.64595" Width="132.28355" Height="56.69295" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="BETWEEN 22:00 & 07:00 & All day Sunday"/>
<TfrxMemoView Name="Memo19" Left="11.33859" Top="517.79561" Width="166.29932" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="TRAVELLING Time:"/>
<TfrxMemoView Name="Memo20" Left="11.33859" Top="574.48856" Width="166.29932" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="ENGINEERING Time:"/>
<TfrxMemoView Name="Memo23" Left="11.33859" Top="631.18151" Width="166.29932" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="CALL OUT:"/>
<TfrxMemoView Name="Memo24" Left="11.33859" Top="687.87446" Width="166.29932" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Additional Costs:"/>
<TfrxMemoView Name="Memo25" Left="238.11039" Top="631.18151" Width="71.81107" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="N/A"/>
<TfrxMemoView Name="Memo26" Left="408.18924" Top="631.18151" Width="71.81107" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="N/A"/>
<TfrxMemoView Name="Memo27" Left="578.26809" Top="631.18151" Width="71.81107" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="£100.00"/>
</TfrxMasterData>
</TfrxReportPage>
</TfrxReport>
����z ����� Customer Message K SELECT
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 end." PropData="044C656674023003546F70021008446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1B000000204E616D653D22746B6E4A4F424944222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="20" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader1" Height="45.35436" Left="0" Top="18.89765" Width="680.3154"/>
<TfrxMasterData Name="MasterData1" Height="396.85065" Left="0" Top="124.72449" Width="680.3154" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
<TfrxMemoView Name="Memo1" Left="0" Top="0" Width="68.03154" Height="18.89765" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="From:"/>
<TfrxMemoView Name="Memo2" Left="75.5906" Top="0" Width="79.37013" Height="18.89765" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[strUserName]"/>
<TfrxMemoView Name="Memo3" Left="0" Top="41.57483" Width="680.3154" Height="45.35436" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="[strMessage1]"/>
<TfrxMemoView Name="Memo4" Left="0" Top="102.04731" Width="680.3154" Height="128.50402" StretchMode="smMaxHeight" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[strMessage2]"/>
</TfrxMasterData>
</TfrxReportPage>
</TfrxReport>
� <| R�� Delivery Manifest � SELECT d.*, u.UserName, j.JobID, j.CustomerID, c.CustomerName, e.Description, j.NumberOff,
c.DeliveryAddr1, c.DeliveryAddr2, c.DeliveryAddr3, c.DeliveryAddr4, c.DeliveryAddr5, c.DeliveryPostCode,
cc.Title, cc.FirstName, cc.Surname, cc.Tel, fo.FinalOutcome
FROM delivery_manifests d
INNER JOIN users u ON u.UserID = d.CreatedByID
INNER JOIN jobs j ON j.ManifestID = d.ManifestID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON j.ContactID = cc.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
INNER JOIN final_outcomes fo ON j.FinalOutcomeID = fo.FinalOutcomeID
WHERE d.ManifestID = [MANIFESTID]
ORDER BY j.JobID
Z SELECT d.*, u.UserName, j.JobID, j.CustomerID, c.CustomerName, e.Description, j.NumberOff,
j.CustomerOrderNo, j.AdviceNoteNo, cc.Title, cc.FirstName, cc.Surname, m.ManufacturerName,
e.ModelNumber, j.SerialNo
FROM delivery_manifests d
INNER JOIN users u ON u.UserID = d.CreatedByID
INNER JOIN jobs j ON j.ManifestID = d.ManifestID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
INNER JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
WHERE j.JobID = [JOBID] 2 <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="41655.6932306713" ScriptLanguage="PascalScript" ScriptText.Text="// (SS,16/01/14) improved version from KontrolTek (code below has been added by KontrolTek) procedure MasterData1OnBeforePrint(Sender: TfrxComponent); var ca: string; con: string; begin ca:=''; ca:=<ds."DeliveryAddr1">; if <ds."DeliveryAddr2"> <> '' then ca:=ca+', '+<ds."DeliveryAddr2">; if <ds."DeliveryAddr3"> <> '' then ca:=ca+', '+<ds."DeliveryAddr3">; if <ds."DeliveryAddr4"> <> '' then ca:=ca+', '+<ds."DeliveryAddr4">; if <ds."DeliveryAddr5"> <> '' then ca:=ca+', '+<ds."DeliveryAddr5">; if <ds."DeliveryPostcode"> <> '' then ca:=ca+', '+<ds."DeliveryPostcode">; mmCustAddr.Text:=ca; con:=''; if <ds."Title"> <> '' then con:=con+<ds."Title">+' '; if <ds."FirstName"> <> '' then con:=con+<ds."FirstName">+' '; if <ds."Surname"> <> '' then con:=con+<ds."Surname">+' '; if <ds."Tel"> <> '' then con:=con+'Tel: '+<ds."Tel">; mmContact.Text:=con; end; begin end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D2227414C44272200010C28000000204E616D653D227374724272616E63684E616D65222056616C75653D2227416C647269646765272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C22000000204E616D653D22746B6E4D414E49464553544944222056616C75653D22273236272200010C4D000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D22274B696E6420726567617264732C262331333B262331303B262331333B262331303B537572696E646572272200010C57000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D22274B696E6420726567617264732C262336303B62722F262336323B262336303B62722F262336323B537572696E64657227220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="" OnBeforePrint="Page1OnBeforePrint">
<TfrxPageHeader Name="PageHeader1" Height="136.06308" Left="0" Top="18.89765" Width="699.21305">
<TfrxMemoView Name="Memo7" Left="0" Top="0" Width="373.72449" Height="31.55906" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-24" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Delivery Manifest"/>
<TfrxMemoView Name="Memo1" Left="0" Top="45.35436" Width="506.45702" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="Please sign and print to confirm receipt of consignment"/>
<TfrxMemoView Name="Memo2" Left="102.04731" Top="75.5906" Width="79.37013" Height="22.67718" ShowHint="False" DataField="ManifestID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds."ManifestID"]"/>
<TfrxMemoView Name="Memo3" Left="181.41744" Top="75.5906" Width="495.11843" Height="22.67718" ShowHint="False" DataField="d.Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds."d.Description"]"/>
<TfrxMemoView Name="Memo4" Left="0" Top="75.5906" Width="102.04731" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Manifest ID:"/>
<TfrxMemoView Name="Memo5" Left="109.60637" Top="102.04731" Width="188.9765" Height="22.67718" ShowHint="False" DataField="DateTimeCreated" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds."DateTimeCreated"]"/>
<TfrxMemoView Name="Memo6" Left="0" Top="102.04731" Width="109.60637" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Date Created:"/>
<TfrxMemoView Name="Memo10" Left="325.03958" Top="102.04731" Width="98.26778" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="5" ParentFont="False" Text="Created By:"/>
<TfrxMemoView Name="Memo11" Left="423.30736" Top="102.04731" Width="268.34663" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds."UserName"]"/>
<TfrxLineView Name="Line1" Left="0" Top="136.06308" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4" Frame.Width="2"/>
<TfrxPictureView Name="Picture2" Left="464.88219" Top="0" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
</TfrxPageHeader>
<TfrxMasterData Name="MasterData1" Height="105.82684" Left="0" Top="215.43321" Width="699.21305" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
<TfrxMemoView Name="Memo12" Left="0" Top="3.77952999999999" Width="94.48825" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds."JobID"]"/>
<TfrxMemoView Name="Memo13" Left="102.04731" Top="3.77952999999999" Width="215.43321" Height="18.89765" ShowHint="False" DataField="CustomerName" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds."CustomerName"]"/>
<TfrxMemoView Name="Memo14" Left="321.26005" Top="3.77952999999999" Width="340.1577" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[<ds."e.Description">]"/>
<TfrxShapeView Name="Shape1" Left="0" Top="64.25201" Width="253.22851" Height="34.01577" ShowHint="False"/>
<TfrxShapeView Name="Shape2" Left="268.34663" Top="64.25201" Width="253.22851" Height="34.01577" ShowHint="False"/>
<TfrxMemoView Name="Memo16" Left="0" Top="64.25201" Width="41.57483" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="SIGN"/>
<TfrxMemoView Name="Memo17" Left="268.34663" Top="64.25201" Width="41.57483" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="PRINT"/>
<TfrxShapeView Name="Shape3" Left="536.69326" Top="64.25201" Width="162.51979" Height="34.01577" ShowHint="False"/>
<TfrxMemoView Name="Memo18" Left="536.69326" Top="64.25201" Width="41.57483" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="DATE"/>
<TfrxLineView Name="Line2" Left="0" Top="105.82684" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4" Frame.Width="2"/>
<TfrxMemoView Name="dsNumberOff" Left="665.19728" Top="3.77952999999999" Width="34.01577" Height="18.89765" ShowHint="False" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds."NumberOff"]"/>
<TfrxMemoView Name="mmCustAddr" Left="102.04731" Top="22.67718" Width="597.16574" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="mmCustAddr"/>
<TfrxMemoView Name="mmContact" Left="102.04731" Top="41.57483" Width="291.02381" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="0" ParentFont="False" Text="mmContact"/>
<TfrxMemoView Name="dsFinalOutcome" Left="472.44125" Top="41.57483" Width="226.7718" Height="18.89765" ShowHint="False" DataField="FinalOutcome" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" ParentFont="False" Text="[ds."FinalOutcome"]"/>
<TfrxMemoView Name="Memo15" Left="393.07112" Top="41.57483" Width="79.37013" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Outcome:"/>
</TfrxMasterData>
<TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="381.73253" Width="699.21305">
<TfrxMemoView Name="Memo8" Left="0" Top="0" Width="168.30705" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="2" ParentFont="False" Text="[<DATE>] [FORMATDATETIME('h:mm am/pm', <TIME>)]"/>
<TfrxMemoView Name="Memo9" Left="551.81138" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
<TfrxMemoView Name="Memo19" Left="173.85838" Top="0" Width="370.39394" Height="18.89765" ShowHint="False" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Verdana" Font.Style="2" HAlign="haCenter" ParentFont="False" Text="[strBranchName]"/>
</TfrxPageFooter>
</TfrxReportPage>
</TfrxReport>
4Delivery of Order No {CustomerOrderNo} (Job {JobID})� <html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
Dear {Title} {FirstName} {Surname},
<br /><br />
<!-- {ExternalCourier} = True -->
Your tracking number is {TrackingNo}
Your order number {CustomerOrderNo} will be delivered via {CourierName} on the next working day and you can track your parcel via {TrackingURL}. Consignment/Tracking No is {TrackingNo}.
<!---->
<!-- {ExternalCourier} != True -->
Your order number {CustomerOrderNo} will be delivered via a Kontroltek driver on the next working day.
<!---->
<br /><br />
Your order details:
<br/>
<table>
<tr><td>Company</td><td><b>{CustomerName}</b></td></tr>
<tr><td>Date</td><td><b>{strToday}</b></td></tr>
<tr><td>Your Order No</td><td><b>{CustomerOrderNo}</b></td></tr>
<tr><td>Your Advice Ref</td><td><b>{AdviceNoteNo}</b></td></tr>
<tr><td>Our Job Ref</td><td><b>{JobID}</b></td></tr>
<tr><td>Qty</td><td><b>{NumberOff}</b></td></tr>
<tr><td>Manufacturer</td><td><b>{ManufacturerName}</b></td></tr>
<tr><td>Model Number</td><td><b>{ModelNumber}</b></td></tr>
<tr><td>Description</td><td><b>{e.Description}</b></td></tr>
<tr><td>Serial No</td><td><b>{SerialNo}</b></td></tr>
</table>
<br />
{strEmailSignatureHTML}
</body>
</html>
����k :GR���
Service Exchange Form a 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 final_outcomes f ON f.FinalOutcomeID = j.FinalOutcomeID
WHERE JobID = "[JOBID]"�8 <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40928.8490666667" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String; begin Result := AFullValue; if Trim(AAddValue) <> '' then begin if Result <> '' then begin if AComma then Result := Result + ', ' else if ANewLine then Result := Result + #13#10 else Result := Result + ' ' end; Result := Result + Trim(AAddValue); end; end; function GetAddress: String; begin Result := AddField('', <ds."CustomerName">, False, True); Result := AddField(Result, <ds."DeliveryAddr1">, False, True); Result := AddField(Result, <ds."DeliveryAddr2">, False, True); Result := AddField(Result, <ds."DeliveryAddr3">, False, True); Result := AddField(Result, <ds."DeliveryAddr4">, False, True); Result := AddField(Result, <ds."DeliveryAddr5">, False, True); Result := AddField(Result, <ds."DeliveryPostcode">, False, True); end; function GetContact: String; begin Result := AddField('', <ds."Title">); Result := AddField(Result, <ds."FirstName">); Result := AddField(Result, <ds."Surname">); Result := AddField(Result, 'Tel: ' + <ds."Tel">, True); end; begin end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D2264732200010C3C00000020446174615365743D226672784442446174617365745265706F72742220446174615365744E616D653D2264735265706F727453657474696E6773220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C1F000000204E616D653D22746B6E4A4F424944222056616C75653D222731303030272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C6501010C85000000204E616D653D224E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D2254696D6573204E657720526F6D616E2220466F6E742E5374796C653D2230220000">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="215.9" PaperHeight="279.4" PaperSize="1" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader1" Height="294.80316913" Left="0" Top="18.89765" Width="721.512277">
<TfrxMemoView Name="Memo2" Left="75.59055118" Top="136.06299213" Width="566.9295" Height="120.94496" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="[GetAddress]"/>
<TfrxMemoView Name="Memo3" Left="0" Top="260.78739913" Width="721.89023" Height="26.45671" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-21" Font.Name="Times New Roman" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="SERVICE EXCHANGE FORM"/>
<TfrxPictureView Name="Picture1" Left="487.55937" Top="41.57483" Width="233.19683087" Height="48" ShowHint="False" DataField="Logo" DataSet="frxDBDatasetReport" DataSetName="dsReportSettings" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
</TfrxPageHeader>
<TfrxMasterData Name="MasterData1" Height="661.41762551" Left="0" Top="374.17347" Width="721.512277" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0">
<TfrxMemoView Name="Memo4" Left="0" Top="7.55905999999999" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Job Number:"/>
<TfrxMemoView Name="Memo5" Left="113.3859" Top="7.55905999999999" Width="170.07885" Height="18.89765" ShowHint="False" DataField="JobID" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."JobID"]"/>
<TfrxMemoView Name="Memo6" Left="0" Top="30.23624" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Order Number:"/>
<TfrxMemoView Name="Memo7" Left="113.3859" Top="30.23624" Width="302.3624" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds."CustomerOrderNo"]"/>
<TfrxMemoView Name="Memo8" Left="0" Top="52.91342" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date:"/>
<TfrxMemoView Name="Memo9" Left="113.3859" Top="52.91342" Width="170.07885" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[Date]"/>
<TfrxMemoView Name="Memo10" Left="0" Top="75.5906" Width="94.48825" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Contact:"/>
<TfrxMemoView Name="Memo12" Left="0" Top="120.94496" Width="94.48825" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="4" ParentFont="False" Text="Description"/>
<TfrxMemoView Name="Memo14" Left="0" Top="154.96073" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Description:"/>
<TfrxMemoView Name="Memo16" Left="0" Top="177.63791" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Item Quantity:"/>
<TfrxMemoView Name="Memo15" Left="113.3859" Top="154.96073" Width="495.11843" Height="18.89765" ShowHint="False" DataField="Description" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."Description"]"/>
<TfrxMemoView Name="Memo17" Left="113.3859" Top="75.5906" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[GetContact]"/>
<TfrxMemoView Name="Memo11" Left="113.3859" Top="177.63791" Width="495.11843" Height="18.89765" ShowHint="False" DataField="NumberOff" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."NumberOff"]"/>
<TfrxMemoView Name="Memo13" Left="0" Top="200.31509" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Manufacturer:"/>
<TfrxMemoView Name="Memo18" Left="113.3859" Top="200.31509" Width="495.11843" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."ManufacturerName"]"/>
<TfrxMemoView Name="Memo19" Left="0" Top="222.99227" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Model Number:"/>
<TfrxMemoView Name="Memo20" Left="113.3859" Top="222.99227" Width="495.11843" Height="18.89765" ShowHint="False" DataField="ModelNumber" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."ModelNumber"]"/>
<TfrxMemoView Name="Memo21" Left="0" Top="245.66945" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Advice Note No:"/>
<TfrxMemoView Name="Memo22" Left="113.3859" Top="245.66945" Width="495.11843" Height="18.89765" ShowHint="False" DataField="AdviceNoteNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."AdviceNoteNo"]"/>
<TfrxMemoView Name="Memo23" Left="0" Top="268.34663" Width="102.04731" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Serial Number(s):"/>
<TfrxMemoView Name="Memo24" Left="113.3859" Top="268.34663" Width="495.11843" Height="56.69291827" ShowHint="False" StretchMode="smMaxHeight" DataField="SerialNo" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."SerialNo"]"/>
<TfrxMemoView Name="Memo25" Left="0" Top="332.59864" Width="521.57480315" Height="192.75590551" ShowHint="False" DataField="InvoiceText" DataSet="ds" DataSetName="ds" Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[ds."InvoiceText"]"/>
<TfrxMemoView Name="Memo27" Left="0" Top="544.25232" Width="192.75603" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Received In Good Condition:"/>
<TfrxMemoView Name="Memo28" Left="0" Top="608.50433" Width="272.12616" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Signed _____________________________"/>
<TfrxMemoView Name="Memo29" Left="279.68522" Top="608.50433" Width="264.5671" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Print ______________________________"/>
<TfrxMemoView Name="Memo30" Left="551.81138" Top="608.50433" Width="162.51979" Height="22.67718" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Date ______________"/>
<TfrxMemoView Name="Memo26" Left="0" Top="574.48856" Width="200.31509" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="Dynamic Date requested by Jim:"/>
<TfrxMemoView Name="Memo31" Left="207.87415" Top="574.48856" Width="128.50402" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Text="[Date + 7]"/>
</TfrxMasterData>
<TfrxPageFooter Name="PageFooter1" Height="18.89765" Left="0" Top="1096.0637" Width="721.512277">
<TfrxMemoView Name="Memo1" Left="0" Top="0" Width="355.27582" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="0" Font.Color="-16777208" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" ParentFont="False" Style="Normal" Text="['Branch: ' + <strBranchName>]"/>
</TfrxPageFooter>
</TfrxReportPage>
</TfrxReport>
� -FP� ,� WIP Manager�� � SELECT JobID, JobClassID, c.CustomerName, DateTimeOfEntry, DateTimeGoAheadGiven, u1.Abbrev AS QuotedByEngineer, u2.Abbrev AS RepairedByEngineer,
e.Description, Location, f.RNRFlag, CustomerChasing, PartsRequiredToBeOrdered, HistoryLastUpdated, ct.CategoryName AS Category,
b1.BranchPrefix AS Branch, b2.BranchPrefix AS RepairBranch
FROM jobs j
LEFT JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN categories ct ON ct.CategoryID = e.CategoryID
LEFT JOIN final_outcomes f ON f.FinalOutcomeID = j.FinalOutcomeID
LEFT JOIN users u1 ON u1.UserID = j.QuotedByID
LEFT JOIN users u2 ON u2.UserID = j.RepairedByID
LEFT JOIN branches b1 ON b1.BranchID = j.BranchID
LEFT JOIN branches b2 ON b2.BranchID = j.RepairBranchID
WHERE WIP = TRUE AND (j.BranchID = 1 OR j.RepairBranchID = 1) AND JobTypeID = 1 AND ComStatusID = 8 ORDER BY JobID, DateTimeGoAheadGiven ASC, DateTimeOfEntry ASC
�( <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39286.7252453125" ScriptLanguage="PascalScript" ScriptText.Text="begin 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."JobID"]"/>
<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."JobClassID"]"/>
<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."CustomerName"]"/>
<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."DateTimeOfEntry"]"/>
<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."DateTimeGoAheadGiven"]"/>
<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."QuotedByEngineer"]"/>
<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."RepairedByEngineer"]"/>
<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."Description"]"/>
<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."Location"]"/>
<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."Category"]"/>
<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."Branch"]"/>
<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."RepairBranch"]"/>
</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="[<DATE>] [FORMATDATETIME('h:mm am/pm', <TIME>)]"/>
<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>
t SQL is built on the fly by WIP Manager and passed here. SQL Select 1 has been entered here for design/test purposes. ��i(�N�q� n�R�,� Invoice Batch Summary ! # (SS,21/2/12) added JobType, and some changes to the report, no longer showing separate figures for delivery
(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, InvoiceNo, 'S' AS InvoiceType, CustomerOrderNo, jt.JobType AS JobType,
InvoiceNet * AccountsCurrencyRate AS InvoiceNet, j.VATRate, 'N' AS Recharge, 'N' AS NominalType, j.SalesNominalCode AS NominalCode, InvoicePrice * AccountsCurrencyRate AS NominalNet
FROM jobs j
LEFT JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN branches b ON b.BranchID = j.BranchID
LEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID
WHERE InvoiceBatchID = [INVOICEBATCHID])
UNION ALL
(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, RechargeInvoiceNo, 'S' AS InvoiceType, CustomerOrderNo, jt.JobType AS JobType,
RechargeInvoiceNet * RechargeAccountsCurrencyRate AS InvoiceNet, RechargeVATRate AS VATRate, 'Y' AS Recharge, 'N' AS NominalType, j.RechargeSalesNominalCode AS NominalCode, RechargeInvoiceNet * RechargeAccountsCurrencyRate AS NominalNet
FROM jobs j
LEFT JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN branches b ON b.BranchID = j.RepairBranchID
LEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID
WHERE InvoiceBatchID = [INVOICEBATCHID] AND RechargeInvoiceNo IS NOT NULL)
UNION ALL
(SELECT JobID, c.AccountNo, InvoiceDate, b.BranchID, b.BranchName, b.BranchPrefix, jt.JobType AS JobType,
RechargeInvoiceNo, 'P' AS InvoiceType, CustomerOrderNo, RechargeInvoiceNet * RechargeAccountsCurrencyRate AS InvoiceNet, RechargeVATRate AS VATRate, 'Y' AS Recharge, 'N' AS NominalType, j.RechargePurchaseNominalCode AS NominalCode, RechargeInvoiceNet * RechargeAccountsCurrencyRate AS NominalNet
FROM jobs j
LEFT JOIN customers c ON c.CustomerID = j.CustomerID
LEFT JOIN branches b ON b.BranchID = j.RepairBranchID
LEFT JOIN job_types jt ON jt.JobTypeID = j.JobTypeID
WHERE InvoiceBatchID = [INVOICEBATCHID] AND RechargeInvoiceNo IS NOT NULL)
ORDER BY InvoiceType DESC, Recharge, BranchID, InvoiceNo, NominalType DESCf8 <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="40960.6487043056" ScriptLanguage="PascalScript" ScriptText.Text="function GetAccountNo: String; begin if <ds."Recharge"> = 'N' then Result := <ds."AccountNo"> else Result := <ds."BranchName">; end; function GetDetails: String; begin if <ds."Recharge"> = 'N' then Result := <ds."CustomerOrderNo"> else Result := <ds."JobID">; end; begin end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D22204A4D53207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C21000000204E616D653D22737472557365724E616D65222056616C75653D2227495450272200010C25000000204E616D653D227374724272616E6368507265666978222056616C75653D22274B4F4E272200010C2A000000204E616D653D227374724272616E63684E616D65222056616C75653D22274B6F6E74726F6C74656B272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C25000000204E616D653D22746B6E494E564F49434542415443484944222056616C75653D222735272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D222727220000055374796C650100">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="37.7953" Left="0" ParentFont="False" Top="18.89765" Width="699.21305">
<TfrxMemoView Name="Memo7" Left="0" Top="0" Width="214.98423" Height="24" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Times New Roman" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Invoice Batch Summary"/>
<TfrxMemoView Name="Memo15" Left="396.85065" Top="0" Width="301.91342" Height="24" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Times New Roman" Font.Style="5" HAlign="haRight" ParentFont="False" Text="['Invoice Batch ID: ' + IntToStr(<tknINVOICEBATCHID>)]"/>
</TfrxPageHeader>
<TfrxMasterData Name="MasterData1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="15.11812" Left="0" ParentFont="False" Top="257.00804" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" Stretched="True"/>
<TfrxPageFooter Name="PageFooter1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="22.67718" Left="0" ParentFont="False" Top="438.42548" Width="699.21305">
<TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" ParentFont="False" Text="[<DATE>] [FORMATDATETIME('h:mm am/pm', <TIME>)]"/>
<TfrxMemoView Name="Memo9" Left="551.81138" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
</TfrxPageFooter>
<TfrxGroupHeader Name="GroupHeader1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Times New Roman" Font.Style="0" Height="75.5906" Left="0" ParentFont="False" Top="117.16543" Width="699.21305" Condition="<ds."Recharge">+<ds."InvoiceType">">
<TfrxMemoView Name="Memo1" Left="0" Top="15.11812" Width="377.953" Height="24.18897638" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Times New Roman" Font.Style="5" ParentFont="False" Text="[IIF(<ds."Recharge">='Y', IIF(<ds."InvoiceType">='S','Recharge Sales Invoices', 'Recharge Purchase Invoices'), 'Sales Invoices')]"/>
<TfrxMemoView Name="Memo6" Left="0" Top="45.35436" Width="75.5906" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="A/C"/>
<TfrxMemoView Name="Memo2" Left="83.14966" Top="45.35436" Width="56.69295" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Date"/>
<TfrxMemoView Name="Memo3" Left="147.40167" Top="45.35436" Width="64.25201" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Invoice No"/>
<TfrxMemoView Name="Memo4" Left="219.21274" Top="45.35436" Width="45.35436" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Job ID"/>
<TfrxMemoView Name="Memo5" Left="272.12616" Top="45.35436" Width="105.82684" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Job Type"/>
<TfrxMemoView Name="Memo11" Left="385.51206" Top="45.35436" Width="71.81107" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Order No"/>
<TfrxMemoView Name="Memo12" Left="464.88219" Top="45.35436" Width="75.5906" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Net"/>
<TfrxMemoView Name="Memo14" Left="548.03185" Top="45.35436" Width="71.81107" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="VAT"/>
<TfrxMemoView Name="Memo17" Left="627.40198" Top="45.35436" Width="71.81107" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Total"/>
</TfrxGroupHeader>
<TfrxGroupHeader Name="GroupHeader2" Height="18.89765" Left="0" Top="215.43321" Width="699.21305" Condition="<ds."BranchPrefix"> + ' ' + IntToStr(<ds."InvoiceNo">)">
<TfrxMemoView Name="dsAccountNo" Left="0" Top="0" Width="75.5906" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[GetAccountNo]"/>
<TfrxMemoView Name="dsInvoiceDate" Left="83.14966" Top="0" Width="56.69295" Height="15.11812" ShowHint="False" DataField="InvoiceDate" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds."InvoiceDate"]"/>
<TfrxMemoView Name="dsInvoiceNo" Left="147.40167" Top="0" Width="64.25201" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[<ds."BranchPrefix"> + ' ' + IntToStr(<ds."InvoiceNo">)]"/>
<TfrxMemoView Name="dsCustomerOrderNo" Left="385.51206" Top="0" Width="75.5906" Height="18.89765" ShowHint="False" StretchMode="smActualHeight" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[GetDetails]"/>
<TfrxMemoView Name="dsInvoiceNet" Left="461.10266" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" DataField="InvoiceNet" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[ds."InvoiceNet"]"/>
<TfrxMemoView Name="Memo16" Left="551.81138" Top="0" Width="68.03154" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[<ds."VATRate"> * <ds."InvoiceNet"> / 100]"/>
<TfrxMemoView Name="Memo23" Left="219.21274" Top="0" Width="45.35436" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds."JobID"]"/>
<TfrxMemoView Name="Memo13" Left="272.12616" Top="0" Width="105.82684" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="[ds."JobType"]"/>
<TfrxMemoView Name="Memo18" Left="631.18151" Top="0" Width="68.03154" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[<ds."InvoiceNet"> * ((<ds."VATRate"> / 100) + 1)]"/>
</TfrxGroupHeader>
<TfrxGroupFooter Name="GroupFooter1" Height="11.33859" Left="0" Top="294.80334" Width="699.21305"/>
<TfrxGroupFooter Name="GroupFooter2" Height="49.13389" Left="0" Top="328.81911" Width="699.21305">
<TfrxMemoView Name="Memo20" Left="461.10266" Top="11.33859" Width="79.37013" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(<ds."InvoiceNet">)]"/>
<TfrxMemoView Name="Memo21" Left="548.03185" Top="11.33859" Width="71.81107" Height="15.11811024" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(Round(<ds."VATRate"> * <ds."InvoiceNet">) / 100)]"/>
<TfrxMemoView Name="Memo22" Left="0" Top="11.33859" Width="264.5671" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="['Totals for ' + IIF(<ds."Recharge">='Y', IIF(<ds."InvoiceType">='S','Recharge Sales Invoices', 'Recharge Purchase Invoices'), 'Sales Invoices')]"/>
<TfrxMemoView Name="Memo10" Left="272.12616" Top="11.33859" Width="109.60637" Height="15.11812" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" ParentFont="False" Text="No. of Invoices: [COUNT(MasterData1)]"/>
<TfrxLineView Name="Line1" Left="0" Top="0" Width="699.21305" Height="0" ShowHint="False" Frame.Typ="4"/>
<TfrxMemoView Name="Memo19" Left="627.40198" Top="11.33859" Width="71.81107" Height="15.11811024" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.DecimalSeparator="." DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Times New Roman" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(Round(<ds."InvoiceNet"> * ((<ds."VATRate"> / 100) + 1) * 100) / 100)]"/>
</TfrxGroupFooter>
</TfrxReportPage>
</TfrxReport>
�- <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39756.183303669" ScriptLanguage="PascalScript" ScriptText.Text="function GetAccountNo: String; begin if <ds."Recharge"> = 'N' then Result := <ds."AccountNo"> else Result := <ds."BranchName">; end; function GetDetails: String; begin if <ds."Recharge"> = 'N' then Result := <ds."CustomerOrderNo"> else Result := <ds."JobID">; end; begin 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(<tknINVOICEBATCHID>)]"/>
</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."NominalCode"]"/>
<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."NominalNet"]"/>
<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="[<DATE>] [FORMATDATETIME('h:mm am/pm', <TIME>)]"/>
<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="<ds."Recharge">+<ds."InvoiceType">">
<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(<ds."Recharge">='Y', IIF(<ds."InvoiceType">='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="<ds."BranchPrefix"> + ' ' + IntToStr(<ds."InvoiceNo">)">
<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."InvoiceDate"]"/>
<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="[<ds."BranchPrefix"> + ' ' + IntToStr(<ds."InvoiceNo">)]"/>
<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."InvoiceNet"]"/>
<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="[<ds."VATRate"> * <ds."InvoiceNet"> / 100]"/>
</TfrxGroupHeader>
<TfrxGroupFooter Name="GroupFooter1" Height="11.33859" Left="0" Top="294.80334" Width="699.21305">
<TfrxLineView Name="Line1" Left="0" Top="3.77953" Width="699.21305" Height="0" Frame.Typ="4"/>
</TfrxGroupFooter>
</TfrxReportPage>
</TfrxReport>
�����IJ\ �zr�,� Inv - Credit Note � SELECT i.*, j.*,
c.CustomerName, c.InvoiceCustomerName, c.InvoiceAddr1, c.InvoiceAddr2, c.InvoiceAddr3, c.InvoiceAddr4, c.InvoiceAddr5, c.InvoicePostcode, c.InvoiceTel, c.InvoiceFax, c.AccountNo, c.VATIDNumber,
cc.Title, cc.FirstName, cc.Surname, cc.Tel, cc.TelExtension,
e.ModelNumber, e.Description, m.ManufacturerName,
bc.BranchPrefix AS ComBranchPrefix, bc.CompanyName AS ComCompanyName, bc.Address1 AS ComAddress1, bc.Address2 AS ComAddress2, bc.Address3 AS ComAddress3, bc.Address4 AS ComAddress4, bc.Address5 AS ComAddress5, bc.Postcode AS ComPostcode, bc.Tel AS ComTel, bc.Fax AS ComFax, bc.VATNo AS ComVATNo,
br.BranchPrefix AS RepBranchPrefix, br.CompanyName AS RepCompanyName, br.Address1 AS RepAddress1, br.Address2 AS RepAddress2, br.Address3 AS RepAddress3, br.Address4 AS RepAddress4, br.Address5 AS RepAddress5, br.Postcode AS RepPostcode, br.Tel AS RepTel, br.Fax AS RepFax, br.VATNo AS RepVATNo,
ci.CurrencySymbol AS InvoiceCurrencySymbol, ci.CurrencyName AS InvoiceCurrencyName,
ca.CurrencySymbol AS AccountsCurrencySymbol, ca.CurrencyName AS AccountsCurrencyName,
cr.CurrencySymbol AS RechargeCurrencySymbol, cr.CurrencyName AS RechargeCurrencyName,
cra.CurrencySymbol AS RechargeAccountsCurrencySymbol, cra.CurrencyName AS RechargeAccountsCurrencyName
FROM invoice_print_list i
INNER JOIN jobs j ON j.JobID = i.IPL_JobID
INNER JOIN customers c ON c.CustomerID = j.CustomerID
INNER JOIN customer_contacts cc ON cc.ContactID = j.ContactID
INNER JOIN equipment e ON e.EquipmentID = j.EquipmentID
LEFT JOIN manufacturers m ON m.ManufacturerID = e.ManufacturerID
INNER JOIN branches bc ON bc.BranchID = j.BranchID
INNER JOIN branches br ON br.BranchID = j.RepairBranchID
LEFT JOIN currencies ci ON ci.CurrencyCode = j.InvoiceCurrencyCode
LEFT JOIN currencies ca ON ca.CurrencyCode = j.AccountsCurrencyCode
LEFT JOIN currencies cr ON cr.CurrencyCode = j.RechargeCurrencyCode
LEFT JOIN currencies cra ON cra.CurrencyCode = j.RechargeAccountsCurrencyCode|� <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.1.11" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="4087" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="39619.6611051157" ScriptLanguage="PascalScript" ScriptText.Text="function AddField(const AFullValue, AAddValue: String; const AComma: Boolean = False; const ANewLine: Boolean = False): String; begin Result := AFullValue; if Trim(AAddValue) <> '' then begin if Result <> '' then begin if AComma then Result := Result + ', ' else if ANewLine then Result := Result + #13#10 else Result := Result + ' ' end; Result := Result + Trim(AAddValue); end; end; function GetAddress: String; begin if IsRecharge then // if it's a recharge invoice begin // commercial branch address Result := AddField('', <ds."ComCompanyName">, False, True); Result := AddField(Result, 'Accounts Payable', False, True); Result := AddField(Result, <ds."ComAddress1">, False, True); Result := AddField(Result, <ds."ComAddress2">, False, True); Result := AddField(Result, <ds."ComAddress3">, False, True); Result := AddField(Result, <ds."ComAddress4">, False, True); Result := AddField(Result, <ds."ComAddress5">, False, True); Result := AddField(Result, <ds."RepPostcode">, False, True); end else begin // customer's address if Trim(<ds."InvoiceCustomerName">) = '' then Result := AddField('', <ds."CustomerName">, False, True) else Result := AddField('', <ds."InvoiceCustomerName">, False, True); Result := AddField('', <ds."CustomerName">, False, True); Result := AddField(Result, 'Accounts Payable', False, True); Result := AddField(Result, <ds."InvoiceAddr1">, False, True); Result := AddField(Result, <ds."InvoiceAddr2">, False, True); Result := AddField(Result, <ds."InvoiceAddr3">, False, True); Result := AddField(Result, <ds."InvoiceAddr4">, False, True); Result := AddField(Result, <ds."InvoiceAddr5">, False, True); Result := AddField(Result, <ds."InvoicePostcode">, False, True); end; end; function GetContact: String; begin Result := AddField('', <ds."Title">); Result := AddField(Result, <ds."FirstName">); Result := AddField(Result, <ds."Surname">); Result := AddField(Result, 'Tel: ' + <ds."Tel">, True); end; function GetBranchAddress: String; begin if IsRecharge then begin Result := AddField('', <ds."RepCompanyName">, False, True); Result := AddField(Result, <ds."RepAddress1">, False, True); Result := AddField(Result, <ds."RepAddress2">, False, True); Result := AddField(Result, <ds."RepAddress3">, False, True); Result := AddField(Result, <ds."RepAddress4">, False, True); Result := AddField(Result, <ds."RepAddress5">, False, True); Result := AddField(Result, <ds."RepPostcode">, False, True); if <ds."RepTel"> <> '' then Result := AddField(Result, 'Tel: ' + <ds."RepTel">, False, True); if <ds."RepFax"> <> '' then Result := AddField(Result, 'Fax: ' + <ds."RepFax">, False, True); end else begin Result := AddField('', <ds."ComCompanyName">, False, True); Result := AddField(Result, <ds."ComAddress1">, False, True); Result := AddField(Result, <ds."ComAddress2">, False, True); Result := AddField(Result, <ds."ComAddress3">, False, True); Result := AddField(Result, <ds."ComAddress4">, False, True); Result := AddField(Result, <ds."ComAddress5">, False, True); Result := AddField(Result, <ds."ComPostcode">, False, True); if <ds."ComTel"> <> '' then Result := AddField(Result, 'Tel: ' + <ds."ComTel">, False, True); if <ds."ComFax"> <> '' then Result := AddField(Result, 'Fax: ' + <ds."ComFax">, False, True); end; end; function GetVATRegNo: String; begin if IsRecharge then Result := <ds."RepVATNo"> else Result := <ds."ComVATNo">; end; function IsCustomerCopy: Boolean; begin Result := <ds."IPL_InvoiceType"> = 'C'; end; function IsCustomerAccountsCopy: Boolean; begin Result := <ds."IPL_InvoiceType"> = 'A'; end; function IsRechargeCopy: Boolean; begin Result := <ds."IPL_InvoiceType"> = 'R'; end; function IsRechargeAccountsCopy: Boolean; begin Result := <ds."IPL_InvoiceType"> = 'RA'; end; function IsRecharge: Boolean; begin Result := IsRechargeCopy or IsRechargeAccountsCopy; end; function GetInvoiceTitle: String; begin if <ds."CreditNote"> then Result := 'CREDIT NOTE' else if IsRecharge then Result := 'RECHARGE INVOICE' else if <ds."InvoiceNo"> > 0 then Result := 'INVOICE' else Result := 'ZERO INVOICE'; if IsRecharge then Result := Result + ' ' + <ds."RepBranchPrefix"> + ' ' + IntToStr(<ds."RechargeInvoiceNo">) else Result := Result + ' ' + <ds."ComBranchPrefix"> + ' ' + IntToStr(<ds."InvoiceNo">); end; function IsGBPCurrency: Boolean; begin Result := GetCurrencyCode = 'GBP'; end; function GetCurrencyCode: String; begin if IsCustomerCopy then Result := <ds."InvoiceCurrencyCode"> else if IsCustomerAccountsCopy then Result := <ds."AccountsCurrencyCode"> else if IsRechargeCopy then Result := <ds."RechargeCurrencyCode"> else if IsRechargeAccountsCopy then Result := <ds."RechargeAccountsCurrencyCode"> else ShowMessage('Currency Code undetermined'); end; function GetCurrencyRate: Double; begin if IsCustomerCopy then Result := <ds."InvoiceCurrencyRate"> else if IsCustomerAccountsCopy then Result := <ds."AccountsCurrencyRate"> else if IsRechargeCopy then Result := <ds."RechargeCurrencyRate"> else if IsRechargeAccountsCopy then Result := <ds."RechargeAccountsCurrencyRate"> else ShowMessage('Currency Rate undetermined'); end; function GetCurrencySymbol: String; begin if IsCustomerCopy then Result := <ds."InvoiceCurrencySymbol"> else if IsCustomerAccountsCopy then Result := <ds."AccountsCurrencySymbol"> else if IsRechargeCopy then Result := <ds."RechargeCurrencySymbol"> else if IsRechargeAccountsCopy then Result := <ds."RechargeAccountsCurrencySymbol"> else ShowMessage('Currency Symbol undetermined'); end; function GetCurrencyName: String; begin if IsCustomerCopy then Result := <ds."InvoiceCurrencyName"> else if IsCustomerAccountsCopy then Result := <ds."AccountsCurrencyName"> else if IsRechargeCopy then Result := <ds."RechargeCurrencyName"> else if IsRechargeAccountsCopy then Result := <ds."RechargeAccountsCurrencyName"> else ShowMessage('Currency Name undetermined'); end; function AsCurrency(const AValue: Double): String; begin Result := GetCurrencySymbol + FormatFloat('#0.00', GetCurrencyRate * AValue); end; function IsDiscount: Boolean; begin Result := <ds."DiscountRate"> < 0; end; function GetInvoicePriceIncDiscount: Double; begin if IsDiscount then begin // (SS,9/8/07) added if.. to prevent divide by zero error, may need to calculate using new SellPrice field if <ds."DiscountRate"> = -100 then Result := 0 else Result := <ds."InvoicePrice"> * (100/(100 + <ds."DiscountRate">)); end else Result := <ds."InvoicePrice">; end; function GetDiscount: Double; begin // done this way to ensure there's no rounding error of 1p in the printout Result := GetInvoicePriceIncDiscount - <ds."InvoicePrice"> end; function GetQuotedPriceAsCurrency: String; begin Result := AsCurrency(<ds."QuotedPrice">); end; function GetInvoicePriceIncDiscountAsCurrency: String; begin Result := AsCurrency(GetInvoicePriceIncDiscount); end; function GetDiscountAsCurrency: String; begin if IsDiscount then Result := AsCurrency(GetDiscount) else Result := ''; end; function GetNetPriceIfDiscountAsCurrency: String; begin if IsDiscount then Result := AsCurrency(<ds."InvoicePrice">) else Result := ''; end; function GetDeliveryAsCurrency: String; begin Result := AsCurrency(<ds."InvoiceDelivery">); end; function GetNetAsCurrency: String; begin if IsRecharge then Result := AsCurrency(<ds."RechargeInvoiceNet">) else Result := AsCurrency(<ds."InvoiceNet">); end; function GetVATAsCurrency: String; begin if IsRecharge then Result := AsCurrency(<ds."VATRate"> * <ds."RechargeInvoiceNet"> / 100) else Result := AsCurrency(<ds."VATRate"> * <ds."InvoiceNet"> / 100); end; function GetTotalAsCurrency: String; begin if IsRecharge then Result := AsCurrency(<ds."RechargeInvoiceNet"> * ((<ds."VATRate"> / 100) + 1)) else Result := AsCurrency(<ds."InvoiceNet"> * ((<ds."VATRate"> / 100) + 1)); end; function GetExchangeRateMessage: String; begin if IsGBPCurrency then Result := '' else begin Result := 'This invoice was generated using the exchange rate ' + FormatFloat('#0.0000', GetCurrencyRate) + ' which was set at the time of '; if IsRecharge then Result := Result + 'invoicing.' else Result := Result + 'quotation.'; end; end; function GetLabel: String; var LLabel: String; // LLabel used because Result := Result + .. causes error begin if IsCustomerAccountsCopy or IsRechargeAccountsCopy then LLabel := 'Accounts Copy' else LLabel := ''; if <ds."IPL_CopyNo"> > 1 then LLabel := LLabel + IIf(LLabel = '', 'Copy', '') + ' ' + IntToStr(<ds."IPL_CopyNo">); Result := LLabel; end; procedure MasterData1OnBeforePrint(Sender: TfrxComponent); var LVisible: Boolean; begin // hide certain values if recharge invoice LVisible := not IsRecharge; mInvoicePrice.Visible := LVisible; mDiscountRate.Visible := LVisible; mDiscount.Visible := LVisible; mNetPriceIfDiscountTitle.Visible := LVisible; mNetPriceIfDiscount.Visible := LVisible; mDeliveryTitle.Visible := LVisible; mDelivery.Visible := LVisible; end; begin 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."InvoiceDate"]"/>
<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."CustomerOrderNo"]"/>
<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."JobID"]"/>
<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(<ds."VATIDNumber"> = '', '', '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."VATIDNumber"]"/>
<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."AccountNo"]"/>
<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."Description"]"/>
<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."NumberOff"]"/>
<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."ManufacturerName"]"/>
<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."ModelNumber"]"/>
<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."AdviceNoteNo"]"/>
<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."SerialNo"]"/>
<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."InvoiceText"]"/>
<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(<ds."DiscountRate"> < 0, 'Less Discount at ' + FloatToStr(-<ds."DiscountRate">) + '%', '')]"/>
<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(<ds."DiscountRate"> < 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(<ds."VATRate">) + '%']"/>
<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 & OE Claims with regard to the above must be notified to us within 7 days of the date of invoice. 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&