<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="5.6.8" DotMatrixReport="False" EngineOptions.DoublePass="True" EngineOptions.NewSilentMode="simReThrow" IniFile="\Software\eStream\SQL Account\4\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PreviewOptions.PictureCacheInFile="True" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="41631.3627038542" ReportOptions.Description.Text="Datamap=TdvARStatement&#13;&#10;GUID={ADA8C17E-CA10-4F46-AC84-0ED8210DE2B8}" ReportOptions.Name="Cust Statement 12 Mths 1" ReportOptions.LastChange="43200.4309322569" ScriptLanguage="PascalScript" ScriptText.Text="const MaxInt = 2147483647;&#13;&#10;var lSQL : String;&#13;&#10;    APDBal : Extended;&#13;&#10;&#13;&#10;function StringReplace(const S, OldPattern, NewPattern: string;&#13;&#10;  iReplaceAll: boolean=true; iIgnoreCase :boolean=true): string;&#13;&#10;var&#13;&#10;  SearchStr, Patt, NewStr: string;&#13;&#10;  Offset: Integer;&#13;&#10;begin&#13;&#10;// Usage StringReplace(&#60;Main.&#34;DOB&#34;&#62;,'/','')&#13;&#10;  if iIgnoreCase then begin&#13;&#10;    SearchStr := UpperCase(S);&#13;&#10;    Patt := UpperCase(OldPattern);&#13;&#10;  end else begin&#13;&#10;    SearchStr := S;&#13;&#10;    Patt := OldPattern;&#13;&#10;  end;&#13;&#10;  NewStr := S;&#13;&#10;  Result := '';&#13;&#10;  while SearchStr &#60;&#62; '' do begin&#13;&#10;    Offset := Pos(Patt, SearchStr);&#13;&#10;    if Offset = 0 then begin&#13;&#10;      Result := Result + NewStr;&#13;&#10;      Break;&#13;&#10;    end;&#13;&#10;    Result := Result + Copy(NewStr, 1, Offset - 1) + NewPattern;&#13;&#10;    NewStr := Copy(NewStr, Offset + Length(OldPattern), MaxInt);&#13;&#10;    if not iReplaceAll then begin&#13;&#10;      Result := Result + NewStr;&#13;&#10;      Break;&#13;&#10;    end;&#13;&#10;    SearchStr := Copy(SearchStr, Offset + Length(Patt), MaxInt);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure GetEMailTpl;&#13;&#10;var D  : TfrxDataSet;&#13;&#10;   lFN : String;&#13;&#10;begin&#13;&#10;  lFN := Trim(Report.ReportOptions.Name);&#13;&#10;  lFN := StringReplace(lFN,'.fr3','');&#13;&#10;  D := Report.GetDataSet('plEMailTpl');&#13;&#10;  D.First;&#13;&#10;  While not D.Eof do begin&#13;&#10;    if Trim(D.Value('ReportName')) = lFN then&#13;&#10;      Break;&#13;&#10;    D.Next;&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetPassword:String;&#13;&#10;begin&#13;&#10;  if Trim(&#60;Company.&#34;Remark&#34;&#62;) &#60;&#62; '' then&#13;&#10;    Result := &#60;Company.&#34;Remark&#34;&#62; else&#13;&#10;    Result := &#60;plEMailTpl.&#34;PDFPassWord&#34;&#62;;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetFldInfo(const AStr:String):String;&#13;&#10;var D : TfrxDataSet;&#13;&#10;    nStr : String;&#13;&#10;    lSL,lPL : TStringList;&#13;&#10;    i, j : integer;&#13;&#10;begin&#13;&#10;  nStr := AStr;&#13;&#10;  lSL := TStringList.Create;&#13;&#10;  lPL := TStringList.Create;&#13;&#10;  with lPL do begin //Available Pipeline&#13;&#10;    Add('Main');&#13;&#10;    Add('Profile');&#13;&#10;    Add('Parameter');&#13;&#10;    Add('plEMailTpl');&#13;&#10;    Add('Company');&#13;&#10;    Add('CompanyBranch');&#13;&#10;  end;&#13;&#10;  try&#13;&#10;    for j:=0 to lPL.Count -1 do begin&#13;&#10;      D := Report.GetDataSet(lPL[j]);&#13;&#10;      D.GetFieldList(lSL);&#13;&#10;      for i:=0 to lSL.Count -1 do begin&#13;&#10;        if D.IsBlobField(lSL[i]) then&#13;&#10;          nStr := StringReplace(nStr, '&#60;'+ lPL[j] + '.' + lSL[i] + '&#62;',D.Value(lSL[i])) else&#13;&#10;         nStr := StringReplace(nStr, '&#60;'+ lPL[j] + '.' + lSL[i] + '&#62;',D.DisplayText(lSL[i]));&#13;&#10;      end;&#13;&#10;    end;&#13;&#10;    Result := nStr;&#13;&#10;  finally&#13;&#10;    lSL.Free;&#13;&#10;    lPL.Free;&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;//For E-Mail Client (Batch)&#13;&#10;procedure OnGetEmailSettings(EmailSettings: TStrings);&#13;&#10;var vEmail, vName: Variant;&#13;&#10;begin&#13;&#10;  GetEMailTpl;&#13;&#10;  vEmail := Trim(&#60;CompanyBranch.&#34;Email&#34;&#62;);&#13;&#10;  vName := Trim(&#60;Main.&#34;CompanyName&#34;&#62;);&#13;&#10;&#13;&#10;  if (vName &#60;&#62; '' ) and (vEmail &#60;&#62; '') then begin&#13;&#10;    EmailSettings.Values['Recipients'] := vEmail;&#13;&#10;    EmailSettings.Values['CC']         := &#60;plEMailTpl.&#34;CC&#34;&#62;;&#13;&#10;    EmailSettings.Values['BCC']        := &#60;plEMailTpl.&#34;BCC&#34;&#62;;&#13;&#10;    EmailSettings.Values['Subject']    := GetFldInfo(&#60;plEMailTpl.&#34;Subject&#34;&#62;);&#13;&#10;    EmailSettings.Values['Body']       := GetFldInfo(RichTextToPlainText(&#60;plEMailTpl.&#34;Body&#34;&#62;));&#13;&#10;    if Trim(&#60;plEMailTpl.&#34;PDFFileName&#34;&#62;) &#60;&#62; '' then&#13;&#10;      EmailSettings.Values['FileName']    := GetFldInfo(&#60;plEMailTpl.&#34;PDFFileName&#34;&#62;);&#13;&#10;    if Trim(GetPassword) &#60;&#62; '' then&#13;&#10;      EmailSettings.Values['PDFPassword'] := GetPassword;&#13;&#10;  end;&#13;&#10;  //ID uses for display on progress dialog&#13;&#10;  EmailSettings.Values['ID']        := vName;&#13;&#10;end;&#13;&#10;&#13;&#10;//For E-Mail (Native)&#13;&#10;function SQL_Email_GetInfo(Info: Integer): string;&#13;&#10;var vEmail, vName: Variant;&#13;&#10;begin&#13;&#10;  GetEMailTpl;&#13;&#10;  Result := '';&#13;&#10;  vEmail := Trim(&#60;CompanyBranch.&#34;Email&#34;&#62;);&#13;&#10;  vName := Trim(&#60;Main.&#34;CompanyName&#34;&#62;);&#13;&#10;&#13;&#10;  if (vName &#60;&#62; '' ) and (vEmail &#60;&#62; '') then begin&#13;&#10;    case Info of&#13;&#10;      SQL_Email_Address: Result := vEmail;&#13;&#10;      SQL_Email_Subject: Result := GetFldInfo(&#60;plEMailTpl.&#34;Subject&#34;&#62;);&#13;&#10;      SQL_Email_Content: Result := GetFldInfo(RichTextToPlainText(&#60;plEMailTpl.&#34;Body&#34;&#62;));&#13;&#10;    end;&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;function StrToFloatDef(const lFld:Variant):string;&#13;&#10;begin&#13;&#10;  if Trim(lFld) &#60;&#62; '' then&#13;&#10;    Result := lFld else&#13;&#10;    Result := '0';&#13;&#10;end;&#13;&#10;&#13;&#10;function VarToFloatDef(const lFld:Variant):Double;&#13;&#10;begin&#13;&#10;  if Trim(lFld) &#60;&#62; '' then&#13;&#10;    Result := lFld else&#13;&#10;    Result := 0;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure SetUp;&#13;&#10;var SQL : String;&#13;&#10;begin&#13;&#10;  SQL := 'SELECT B.Description As ReportName, B.Description2 As Subject, B.Description3 As Body, '+&#13;&#10;         'A.Address1 As CC, A.Address2 As BCC, B.Remark1 As PDFPassWord, B.Remark2 As PDFFileName ' +&#13;&#10;         'FROM SL_QT A ' +&#13;&#10;         'INNER JOIN SL_QTDTL B ON (A.Dockey=B.Dockey) ' +&#13;&#10;         'WHERE A.DocNo=''EMAIL'' ';&#13;&#10;  AddDataSet('plEMailTpl', ['ReportName', 'Subject', 'Body', 'PDFPassWord', 'PDFFileName', 'CC', 'BCC'])&#13;&#10;  .GetDBData(SQL);&#13;&#10;&#13;&#10;  SQL := 'SELECT Code, Count(CAST(DR AS REAL)) Nos, SUM(CAST(DR AS REAL)) DR FROM Document '+&#13;&#10;         'WHERE DR &#60;&#62; 0 '+&#13;&#10;         'AND DR IS NOT NULL  '+&#13;&#10;         'GROUP BY Code ';&#13;&#10;  AddDataSet('pl_DR', ['Code', 'Nos', 'DR'])&#13;&#10;  .GetLocalData(SQL)&#13;&#10;  .SetDisplayFormat(['DR'], &#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;)&#13;&#10;  .LinkTo('Main', 'Code', 'Code');&#13;&#10;&#13;&#10;  SQL := 'SELECT Code, Count(CAST(CR AS REAL)) Nos, SUM(CAST(CR AS REAL)) CR FROM Document '+&#13;&#10;         'WHERE CR &#60;&#62; 0 '+&#13;&#10;         'AND CR IS NOT NULL  '+&#13;&#10;         'GROUP BY Code ';&#13;&#10;  AddDataSet('pl_CR', ['Code', 'Nos', 'CR'])&#13;&#10;  .GetLocalData(SQL)&#13;&#10;  .SetDisplayFormat(['CR'], &#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;)&#13;&#10;  .LinkTo('Main', 'Code', 'Code');&#13;&#10;&#13;&#10;  SQL := 'SELECT Dockey, Code, DocType, COUNT(DocNo) Nos, Sum(CAST(KOAmt AS REAL)) KOAmt FROM DocumentKnockOff '+&#13;&#10;         'GROUP BY Code, DocType, Dockey';&#13;&#10;  AddDataSet('pl_ST', ['Code', 'DocType', 'KOAmt', 'Nos'])&#13;&#10;  .GetLocalData(SQL)&#13;&#10;  .SetDisplayFormat(['KOAmt'], &#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;)&#13;&#10;  .LinkTo('Document', 'Code;DocType;DocKey', 'Code;DocType;DocKey');&#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if Engine.FreeSpace &#60; (GroupFooter1.Height + PageFooter1.Height + 30) then Engine.NewPage;&#13;&#10;    Engine.CurY := Engine.PageHeight - GroupFooter1.Height - PageFooter1.Height - 30;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure MmSTOnBeforePrint(Sender: TfrxComponent);&#13;&#10;var i : integer;&#13;&#10;begin&#13;&#10;  i := CompareText(&#60;pl_ST.&#34;KOAmt&#34;&#62;, &#60;Document.&#34;Orig_DocAmt&#34;&#62;);&#13;&#10;  MmST.Text := '';&#13;&#10;  if ((&#60;Document.&#34;DocType&#34;&#62; = 'IV') or&#13;&#10;     (&#60;Document.&#34;DocType&#34;&#62; = 'DN')) and (VarToFloatDef(&#60;pl_ST.&#34;KOAmt&#34;&#62;) &#60;&#62; 0) then begin&#13;&#10;    if i = 0 then&#13;&#10;      MmST.Text := '*' else&#13;&#10;      MmST.Text := 'P';&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure DocumentDocNoOnAfterData(Sender: TfrxComponent);&#13;&#10;var i: integer;&#13;&#10;begin&#13;&#10;  for i := TfrxMemoView(Sender).Lines.Count - 1 downto 0 do&#13;&#10;  begin&#13;&#10;    if TfrxMemoView(Sender).Lines.Strings[i] = '' then&#13;&#10;      TfrxMemoView(Sender).Memo.Delete(i);&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure MmBalOnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  APDBal := APDBal + VarToFloatDef(&#60;PDCheque.&#34;TotalKOAmt&#34;&#62;) + VarToFloatDef(&#60;PDCheque.&#34;Unapplied&#34;&#62;);&#13;&#10;  MmBal.Text := FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;,APDBal);&#13;&#10;end;&#13;&#10;&#13;&#10;procedure Header1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  APDBal := 0;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure MmDescOnAfterData(Sender: TfrxComponent);&#13;&#10;var i : Extended;&#13;&#10;begin&#13;&#10;  i := 0;&#13;&#10;  if (VarToFloatDef(&#60;pl_ST.&#34;Nos&#34;&#62;) &#60;&#62; 0) and (SubReport2.Visible) then&#13;&#10;    i := TfrxMemoView(Sender).CalcHeight;&#13;&#10;&#13;&#10;  SubReport2.Top := i;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure _ShowDetail_(Detail: Boolean);&#13;&#10;begin&#13;&#10;  SubReport2.Visible   := Detail;&#13;&#10;  SubReport2.Printable := Detail;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure AgingOnAfterData(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if Trim(TfrxMemoView(Sender).Text) ='' then&#13;&#10;    TfrxMemoView(Sender).Text := '-';&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.">
  <Datasets>
    <item DataSet="Main" DataSetName="Main"/>
    <item DataSet="Document" DataSetName="Document"/>
    <item DataSet="DocumentKnockOff" DataSetName="DocumentKnockOff"/>
    <item DataSet="Parameter" DataSetName="Parameter"/>
    <item DataSet="AgingHeader" DataSetName="AgingHeader"/>
    <item DataSet="Aging" DataSetName="Aging"/>
    <item DataSet="PDCheque" DataSetName="PDCheque"/>
    <item DataSet="Company" DataSetName="Company"/>
    <item DataSet="CompanyBranch" DataSetName="CompanyBranch"/>
    <item DataSet="Agent" DataSetName="Agent"/>
    <item DataSet="Area" DataSetName="Area"/>
    <item DataSet="Currency" DataSetName="Currency"/>
    <item DataSet="ControlAccount" DataSetName="ControlAccount"/>
    <item DataSet="CompanyCategory" DataSetName="CompanyCategory"/>
    <item DataSet="DocProject" DataSetName="DocProject"/>
    <item DataSet="Option" DataSetName="Option"/>
    <item DataSet="Profile" DataSetName="Profile"/>
    <item DataSet="User" DataSetName="User"/>
    <item DataSetName="plEMailTpl"/>
    <item DataSetName="pl_DR"/>
    <item DataSetName="pl_CR"/>
    <item DataSetName="pl_ST"/>
  </Datasets>
  <Variables>
    <item Name=" RBVariables"/>
    <item Name="ReportVarFromDocDate" Value="''"/>
    <item Name="ReportVarFromDocNo" Value="''"/>
    <item Name="ReportvSerialNo" Value="''"/>
    <item Name="ReportVariable4" Value="''"/>
    <item Name="ReportMemo13" Value="''"/>
    <item Name="ReportVarDeposit" Value="''"/>
    <item Name="ReportVarPayAmt" Value="''"/>
    <item Name="ReportVariable3" Value="''"/>
  </Variables>
  <TfrxDataPage Name="DataPage1" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" PaperWidth="215.9" PaperHeight="279.4" PaperSize="1" LeftMargin="9.906" RightMargin="6.35" TopMargin="6.35" BottomMargin="0" ColumnWidth="0" ColumnPositions.Text="" DataSetName="plSQL_2" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxGroupHeader Name="GroupHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="334.1181262" Left="0" Top="18.89765" Width="754.56048732" Condition="Main.&#34;Code&#34;" ReprintOnNewPage="True" ResetPageNumbers="True" StartNewPage="True" Stretched="True">
      <TfrxMemoView Name="Label1" ShiftMode="smDontShift" Left="502.48104744" Top="136.40197114" Width="233.1213112" Height="25.59875669" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Tahoma" Font.Style="0" Frame.Typ="15" HAlign="haCenter" ParentFont="False" Text="Statement of Account"/>
      <TfrxLineView Name="Line1" ShiftMode="smDontShift" Left="9.6" Top="124.99947212" Width="739.2" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line2" ShiftMode="smDontShift" Left="9.6" Top="270.00177695" Width="731.64094" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Label17" ShiftMode="smDontShift" Left="128.40094682" Top="273" Width="93.91753477" Height="19.2000062" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Sales Executive"/>
      <TfrxMemoView Name="Label21" ShiftMode="smDontShift" Left="243.45671" Top="273" Width="60.15876041" Height="19.2000062" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Currency"/>
      <TfrxMemoView Name="Label23" ShiftMode="smDontShift" Left="356.60153626" Top="273" Width="49.11875328" Height="19.2000062" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Name"/>
      <TfrxMemoView Name="Label25" ShiftMode="smDontShift" Left="578.28123587" Top="273" Width="61.23970599" Height="19.2000062" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Terms"/>
      <TfrxMemoView Name="Label27" ShiftMode="smDontShift" Left="709.52360784" Top="273" Width="26.0787508" Height="19.2000062" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Date"/>
      <TfrxLineView Name="Line4" ShiftMode="smDontShift" Left="9.6" Top="305.00054294" Width="731.64094" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Label29" ShiftMode="smDontShift" Left="12.60094682" Top="312.8" Width="32.57953" Height="13.3795362" StretchMode="smActualHeight" AutoWidth="True" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="Date"/>
      <TfrxMemoView Name="Label31" ShiftMode="smDontShift" Left="128.40094682" Top="312.8" Width="71.78081516" Height="13.3795362" StretchMode="smActualHeight" AutoWidth="True" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="Reference"/>
      <TfrxMemoView Name="Label33" ShiftMode="smDontShift" Left="243.45671" Top="312.8" Width="169.7007978" Height="13.3795362" StretchMode="smActualHeight" AutoWidth="True" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="Transaction Description"/>
      <TfrxMemoView Name="Label37" ShiftMode="smDontShift" Left="475.00124021" Top="312.8" Width="53.37828979" Height="13.3795362" StretchMode="smActualHeight" AutoWidth="True" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Debit"/>
      <TfrxMemoView Name="Label41" ShiftMode="smDontShift" Left="564.28123587" Top="312.8" Width="60.09829413" Height="13.3795362" StretchMode="smActualHeight" AutoWidth="True" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Credit"/>
      <TfrxMemoView Name="DBText24" ShiftMode="smDontShift" Left="578.28123587" Top="288.99937912" Width="74.52099301" Height="14.4000093" StretchMode="smActualHeight" DataField="CreditTerm" DataSet="Company" DataSetName="Company" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[Company.&#34;CreditTerm&#34;]"/>
      <TfrxMemoView Name="DBText27" ShiftMode="smDontShift" Left="243.45671" Top="288.99937912" Width="60.15876041" Height="14.4000093" StretchMode="smActualHeight" DataField="Symbol" DataSet="Currency" DataSetName="Currency" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[Currency.&#34;Symbol&#34;]"/>
      <TfrxMemoView Name="DBText28" ShiftMode="smDontShift" Left="641.68103814" Top="288.99937912" Width="93.9213205" Height="14.4000093" StretchMode="smActualHeight" DataField="StatementDate" DataSet="Parameter" DataSetName="Parameter" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[Parameter.&#34;StatementDate&#34;]"/>
      <TfrxMemoView Name="DBText34" ShiftMode="smDontShift" Left="356.60153626" Top="288.99937912" Width="63.99878149" Height="14.4000093" StretchMode="smActualHeight" DataField="Code" DataSet="User" DataSetName="User" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[User.&#34;Code&#34;]"/>
      <TfrxMemoView Name="DBText35" ShiftMode="smDontShift" Left="128.40094682" Top="288.99937912" Width="98.23754376" Height="14.4000093" StretchMode="smActualHeight" DataField="Agent" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[Main.&#34;Agent&#34;]"/>
      <TfrxMemoView Name="Label67" ShiftMode="smDontShift" Left="475.00124021" Top="273" Width="51.20128051" Height="19.2000062" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Page No "/>
      <TfrxPictureView Name="DBImage3" ShiftMode="smDontShift" Left="12.60094682" Top="12.00000775" Width="96.000062" Height="96.000062" DataField="Logo" DataSet="Profile" DataSetName="Profile" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
      <TfrxRichView Name="DBRichText2" ShiftMode="smDontShift" Left="115.60447791" Top="12.00000775" Width="547.2003534" Height="96.99785792" AllowExpressions="False" DataField="Note" DataSet="Profile" DataSetName="Profile" GapX="2" GapY="1" PropData="0852696368456469740AA60000007B5C727466315C616E73695C616E7369637067313235325C64656666305C6E6F7569636F6D7061745C6465666C616E67313033337B5C666F6E7474626C7B5C66305C666E696C5C666368617273657430205461686F6D613B7D7D0D0A7B5C2A5C67656E657261746F722052696368656432302031302E302E31363239397D5C766965776B696E64345C756331200D0A5C706172645C66305C667331365C7061720D0A7D0D0A00"/>
      <TfrxMemoView Name="Memo4" ShiftMode="smDontShift" Left="668.54500451" Top="312.8" Width="61.83688413" Height="13.3795362" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Balance"/>
      <TfrxSysMemoView Name="SysMmPage" ShiftMode="smDontShift" Left="475.00124021" Top="288.99937912" Width="57.6" Height="14.4000093" StretchMode="smActualHeight" AutoWidth="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[PAGE] of [TOTALPAGES]"/>
      <TfrxMemoView Name="Memo5" ShiftMode="smDontShift" Left="12.60094682" Top="273" Width="83.52004154" Height="19.2000062" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Attention"/>
      <TfrxMemoView Name="Memo6" ShiftMode="smDontShift" Left="12.60094682" Top="288.99937912" Width="113.0456865" Height="14.4000093" StretchMode="smActualHeight" DataField="Attention" DataSet="CompanyBranch" DataSetName="CompanyBranch" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" WordWrap="False" Text="[CompanyBranch.&#34;Attention&#34;]"/>
      <TfrxMemoView Name="Memo7" ShiftMode="smDontShift" Left="601.20235864" Top="162" Width="134.4" Height="28.8" AutoWidth="True" DataField="DR" DataSetName="pl_DR" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="2" GapX="10" HAlign="haRight" ParentFont="False" VAlign="vaBottom" Text="[pl_DR.&#34;DR&#34;]"/>
      <TfrxMemoView Name="Memo9" ShiftMode="smDontShift" Left="601.20235864" Top="190.2" Width="134.4" Height="19.2" AutoWidth="True" DataField="CR" DataSetName="pl_CR" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="2" GapX="10" HAlign="haRight" ParentFont="False" Text="[pl_CR.&#34;CR&#34;]"/>
      <TfrxMemoView Name="Memo10" ShiftMode="smDontShift" Left="502.48104744" Top="162" Width="115.2" Height="28.8" AutoWidth="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" Frame.Typ="1" GapX="10" ParentFont="False" VAlign="vaBottom" Text="Total Debit ([VarToFloatDef(&#60;pl_DR.&#34;Nos&#34;&#62;)])"/>
      <TfrxMemoView Name="Memo11" ShiftMode="smDontShift" Left="502.48104744" Top="190.2" Width="115.2" Height="19.2" AutoWidth="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" Frame.Typ="1" GapX="10" ParentFont="False" VAlign="vaBottom" Text="Total Credit ([VarToFloatDef(&#60;pl_CR.&#34;Nos&#34;&#62;)])"/>
      <TfrxMemoView Name="Memo12" ShiftMode="smDontShift" Left="502.48104744" Top="209" Width="115.2" Height="28.8" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" Frame.Typ="9" GapX="10" ParentFont="False" VAlign="vaCenter" Text="Closing Balance"/>
      <TfrxMemoView Name="Memo13" ShiftMode="smDontShift" Left="601.20235864" Top="209" Width="134.4" Height="28.8" DataField="Balance" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" Frame.Typ="10" GapX="10" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[Main.&#34;Balance&#34;]"/>
      <TfrxLineView Name="Line3" ShiftMode="smDontShift" Left="508.8" Top="213.4" Width="220.8" Height="0" Color="0" Frame.Typ="4" Frame.Width="1.5"/>
      <TfrxMemoView Name="DBText9" ShiftMode="smDontShift" Left="15.11812" Top="151.88291982" Width="61.4173625" Height="15.99875049" StretchMode="smActualHeight" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Customer"/>
      <TfrxMemoView Name="DBText23" ShiftMode="smDontShift" Left="15.11812" Top="136.06308" Width="53.1023965" Height="14.4000093" StretchMode="smActualHeight" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="A/C No. "/>
      <TfrxMemoView Name="lbIVTel" ShiftMode="smDontShift" Left="15.11812" Top="230.46723352" Width="25.31907147" Height="15.99875049" StretchMode="smActualHeight" AutoWidth="True" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Tel"/>
      <TfrxMemoView Name="lbIVFax" ShiftMode="smDontShift" Left="15.11812" Top="247.46755946" Width="28.04033307" Height="15.99875049" StretchMode="smActualHeight" AutoWidth="True" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Fax"/>
      <TfrxMemoView Name="DBText15" ShiftMode="smDontShift" Left="81.37013" Top="230.46723352" Width="357.60023095" Height="15.99875049" StretchMode="smActualHeight" AutoWidth="True" DataSet="CompanyBranch" DataSetName="CompanyBranch" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=": [CompanyBranch.&#34;Phone1&#34;]"/>
      <TfrxMemoView Name="DBText17" ShiftMode="smDontShift" Left="81.37013" Top="247.46755946" Width="356.87834072" Height="15.99875049" StretchMode="smActualHeight" AutoWidth="True" DataSet="CompanyBranch" DataSetName="CompanyBranch" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=": [CompanyBranch.&#34;Fax1&#34;]"/>
      <TfrxMemoView Name="DBText10" ShiftMode="smDontShift" Left="81.37013" Top="169.86547982" Width="360.0002325" Height="63.99875049" StretchMode="smActualHeight" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=": [CompanyBranch.&#34;Address1&#34;]&#13;&#10;  [CompanyBranch.&#34;Address2&#34;]&#13;&#10;  [CompanyBranch.&#34;Address3&#34;]&#13;&#10;  [CompanyBranch.&#34;Address4&#34;]">
        <Formats>
          <item/>
          <item/>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo20" ShiftMode="smDontShift" Left="81.37013" Top="136.06308" Width="359.2443265" Height="14.4000093" StretchMode="smActualHeight" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=": [Main.&#34;Code&#34;]"/>
      <TfrxMemoView Name="Memo39" ShiftMode="smDontShift" Left="81.37013" Top="151.88291982" Width="360.0002325" Height="15.99875049" StretchMode="smActualHeight" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=": [Main.&#34;CompanyName&#34;]"/>
      <TfrxMemoView Name="Memo40" ShiftMode="smDontShift" Left="15.11812" Top="169.86547982" Width="55.55531147" Height="15.99875049" StretchMode="smActualHeight" AutoWidth="True" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Address"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="172.8" Left="0" Top="536.69326" Width="754.56048732" OnBeforePrint="GroupFooter1OnBeforePrint" Stretched="True">
      <TfrxLineView Name="Line5" ShiftMode="smDontShift" Left="9.6" Top="2.0016297" Width="731.64094" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Label61" ShiftMode="smDontShift" Left="34.24189252" Top="133.2016917" Width="678.56130748" Height="28.8000062" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="We shall be grateful if you will let us have payment as soon as possible. Any discrepancy in this statement must be reported to us in writing within 10 days.">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo1" ShiftMode="smDontShift" Left="19.2" Top="5" Width="520.60004606" Height="34.00065188" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[Currency.&#34;Description&#34;] : [CurrencyToEngWord(&#60;Main.&#34;Balance&#34;&#62;)] ONLY">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="MainBalance" ShiftMode="smDontShift" Left="621.00235864" Top="5" Width="105.6" Height="19.2" DataField="Balance" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[Main.&#34;Balance&#34;]"/>
      <TfrxMemoView Name="CurrencySymbol" ShiftMode="smDontShift" Left="537.6" Top="5" Width="76.8" Height="19.2" DataSet="Currency" DataSetName="Currency" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[Currency.&#34;Symbol&#34;] :"/>
      <TfrxMemoView Name="AgingHeaderC1" ShiftMode="smDontShift" Left="55.2" Top="48" Width="105.6" Height="19.2" DataField="C1" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C1&#34;]"/>
      <TfrxMemoView Name="AgingHeaderC2" ShiftMode="smDontShift" Left="160.96" Top="48" Width="105.6" Height="19.2" DataField="C2" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C2&#34;]"/>
      <TfrxMemoView Name="AgingHeaderC3" ShiftMode="smDontShift" Left="266.72" Top="48" Width="105.6" Height="19.2" DataField="C3" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C3&#34;]"/>
      <TfrxMemoView Name="AgingHeaderC4" ShiftMode="smDontShift" Left="372.48" Top="48" Width="105.6" Height="19.2" DataField="C4" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C4&#34;]"/>
      <TfrxMemoView Name="AgingHeaderC5" ShiftMode="smDontShift" Left="478.24" Top="48" Width="105.6" Height="19.2" DataField="C5" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C5&#34;]"/>
      <TfrxMemoView Name="AgingHeaderC6" ShiftMode="smDontShift" Left="584" Top="48" Width="105.6" Height="19.2" DataField="C6" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="7" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C6&#34;]"/>
      <TfrxMemoView Name="Memo2" ShiftMode="smDontShift" Left="55.2" Top="67.8" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C1" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C1&#34;]"/>
      <TfrxMemoView Name="Memo8" ShiftMode="smDontShift" Left="160.96" Top="67.8" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C2" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C2&#34;]"/>
      <TfrxMemoView Name="Memo14" ShiftMode="smDontShift" Left="266.72" Top="67.8" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C3" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C3&#34;]"/>
      <TfrxMemoView Name="Memo15" ShiftMode="smDontShift" Left="372.48" Top="67.8" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C4" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C4&#34;]"/>
      <TfrxMemoView Name="Memo16" ShiftMode="smDontShift" Left="478.24" Top="67.8" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C5" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C5&#34;]"/>
      <TfrxMemoView Name="Memo17" ShiftMode="smDontShift" Left="584" Top="67.8" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C6" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="7" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C6&#34;]"/>
      <TfrxMemoView Name="Memo26" ShiftMode="smDontShift" Left="55.2" Top="87.4" Width="105.6" Height="19.2" DataField="C7" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C7&#34;]"/>
      <TfrxMemoView Name="Memo27" ShiftMode="smDontShift" Left="160.96" Top="87.4" Width="105.6" Height="19.2" DataField="C8" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C8&#34;]"/>
      <TfrxMemoView Name="Memo28" ShiftMode="smDontShift" Left="266.72" Top="87.4" Width="105.6" Height="19.2" DataField="C9" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C9&#34;]"/>
      <TfrxMemoView Name="Memo29" ShiftMode="smDontShift" Left="372.48" Top="87.4" Width="105.6" Height="19.2" DataField="C10" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C10&#34;]"/>
      <TfrxMemoView Name="Memo30" ShiftMode="smDontShift" Left="478.24" Top="87.4" Width="105.6" Height="19.2" DataField="C11" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C11&#34;]"/>
      <TfrxMemoView Name="Memo31" ShiftMode="smDontShift" Left="584" Top="87.4" Width="105.6" Height="19.2" DataField="C12" DataSet="AgingHeader" DataSetName="AgingHeader" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="7" GapX="5" HAlign="haRight" ParentFont="False" Text="[AgingHeader.&#34;C12&#34;]"/>
      <TfrxMemoView Name="Memo32" ShiftMode="smDontShift" Left="55.2" Top="107.2" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C7" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="13" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C7&#34;]"/>
      <TfrxMemoView Name="Memo33" ShiftMode="smDontShift" Left="160.96" Top="107.2" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C8" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="13" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C8&#34;]"/>
      <TfrxMemoView Name="Memo34" ShiftMode="smDontShift" Left="266.72" Top="107.2" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C9" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="13" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C9&#34;]"/>
      <TfrxMemoView Name="Memo35" ShiftMode="smDontShift" Left="372.48" Top="107.2" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C10" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="13" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C10&#34;]"/>
      <TfrxMemoView Name="Memo36" ShiftMode="smDontShift" Left="478.24" Top="107.2" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C11" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="13" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C11&#34;]"/>
      <TfrxMemoView Name="Memo37" ShiftMode="smDontShift" Left="584" Top="107.2" Width="105.6" Height="19.2" OnAfterData="AgingOnAfterData" DataField="C12" DataSet="Aging" DataSetName="Aging" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" Frame.Typ="15" GapX="5" HAlign="haRight" ParentFont="False" Text="[Aging.&#34;C12&#34;]"/>
    </TfrxGroupFooter>
    <TfrxMasterData Name="MasterData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="0" Left="0" Top="419.52783" Width="754.56048732" ColumnWidth="0" ColumnGap="0" DataSet="Main" DataSetName="Main" RowCount="0" Stretched="True"/>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" Height="28.8" Left="0" ParentFont="False" Top="771.02412" Width="754.56048732"/>
    <TfrxGroupHeader Name="GroupHeader2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="0" Left="0" Top="374.17347" Width="754.56048732" Condition="Main.&#34;Code&#34;" ResetPageNumbers="True" StartNewPage="True" Stretched="True"/>
    <TfrxDetailData Name="DetailData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="19.2" Left="0" Top="442.20501" Width="754.56048732" ColumnWidth="0" ColumnGap="0" DataSet="Document" DataSetName="Document" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo3" Left="621.00235864" Top="0" Width="105.6" Height="9.6" StretchMode="smActualHeight" AllowExpressions="False" DataField="Balance" DataSet="Document" DataSetName="Document" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" GapY="0.5" HAlign="haRight" ParentFont="False" Text="[Document.&#34;Balance&#34;]"/>
      <TfrxMemoView Name="MmDesc" ShiftMode="smDontShift" Left="243.45671" Top="0" Width="180.54799" Height="9.6" OnAfterData="MmDescOnAfterData" StretchMode="smActualHeight" DataSet="Document" DataSetName="Document" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="0.5" ParentFont="False" Text="[IIF(&#60;Document.&#34;Description&#34;&#62; ='Balance b/d','Balance b/f',&#60;Document.&#34;Description&#34;&#62;)]"/>
      <TfrxMemoView Name="DocumentDocNo" Left="128.40094682" Top="0" Width="94.26141" Height="9.6" OnAfterData="DocumentDocNoOnAfterData" StretchMode="smActualHeight" DataSet="Document" DataSetName="Document" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="0.5" ParentFont="False" WordWrap="False" Text="[Document.&#34;DocNo&#34;]&#13;&#10;[Document.&#34;RefNo&#34;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="MmST" Left="727.8" Top="0" Width="9.6" Height="9.6" OnBeforePrint="MmSTOnBeforePrint" StretchMode="smActualHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapY="0.5" HAlign="haCenter" ParentFont="False" Text=""/>
      <TfrxMemoView Name="DocumentCR" Left="524.6" Top="0" Width="96" Height="9.6" StretchMode="smActualHeight" DataField="CR" DataSet="Document" DataSetName="Document" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" GapY="0.5" HAlign="haRight" HideZeros="True" ParentFont="False" Text="[Document.&#34;CR&#34;]"/>
      <TfrxMemoView Name="DocumentDR" Left="428.6" Top="0" Width="96" Height="9.6" StretchMode="smActualHeight" DataField="DR" DataSet="Document" DataSetName="Document" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" GapY="0.5" HAlign="haRight" HideZeros="True" ParentFont="False" Text="[Document.&#34;DR&#34;]"/>
      <TfrxMemoView Name="DocumentTransDate" Left="12.60094682" Top="0" Width="67.2" Height="9.6" StretchMode="smActualHeight" DataField="TransDate" DataSet="Document" DataSetName="Document" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="0.5" ParentFont="False" Text="[Document.&#34;TransDate&#34;]"/>
      <TfrxSubreport Name="Subreport2" Left="128.40094682" Top="1" Width="92.22047" Height="9.6" Visible="False" Page="Page3"/>
      <TfrxMemoView Name="Memo38" Left="95.69295" Top="0" Width="30.23624" Height="18.89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[Document.&#34;DocType&#34;]"/>
    </TfrxDetailData>
    <TfrxGroupHeader Name="GroupHeader3" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="0" Left="0" Top="396.85065" Width="754.56048732" Condition="Main.&#34;Code&#34;" Stretched="True"/>
    <TfrxGroupFooter Name="GroupFooter2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="28.8" Left="0" Top="483.77984" Width="754.56048732">
      <TfrxSubreport Name="Subreport1" Left="9.6" Top="0" Width="96" Height="19.2" Page="Page2"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
  <TfrxReportPage Name="Page2" PaperWidth="215.9" PaperHeight="279.4" PaperSize="1" LeftMargin="9.906" RightMargin="6.35" TopMargin="6.35" BottomMargin="0" ColumnWidth="0" ColumnPositions.Text="" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxMasterData Name="MasterData3" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="28.8" Left="0" Top="105.6" Width="754.56048732" ColumnWidth="0" ColumnGap="0" DataSet="PDCheque" DataSetName="PDCheque" RowCount="0" Stretched="True">
      <TfrxMemoView Name="PDChequePostDate" Left="59.2" Top="0" Width="76.8" Height="9.6" StretchMode="smActualHeight" DataField="PostDate" DataSet="PDCheque" DataSetName="PDCheque" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="0.5" ParentFont="False" Text="[PDCheque.&#34;PostDate&#34;]"/>
      <TfrxMemoView Name="PDChequeChequeNumber" Left="152.4" Top="0" Width="144" Height="9.6" StretchMode="smActualHeight" DataField="ChequeNumber" DataSet="PDCheque" DataSetName="PDCheque" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="0.5" ParentFont="False" Text="[PDCheque.&#34;ChequeNumber&#34;]"/>
      <TfrxMemoView Name="PDChequeDocNo" Left="296.4" Top="0" Width="115.2" Height="9.6" StretchMode="smActualHeight" DataField="DocNo" DataSet="PDCheque" DataSetName="PDCheque" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="0.5" ParentFont="False" Text="[PDCheque.&#34;DocNo&#34;]"/>
      <TfrxMemoView Name="PDChequeDocAmt" Left="452.8" Top="0" Width="105.6" Height="9.6" StretchMode="smActualHeight" DataSet="PDCheque" DataSetName="PDCheque" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" GapY="0.5" HAlign="haRight" ParentFont="False" Text="[FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;,VarToFloatDef(&#60;PDCheque.&#34;TotalKOAmt&#34;&#62;) + VarToFloatDef(&#60;PDCheque.&#34;Unapplied&#34;&#62;))]"/>
      <TfrxMemoView Name="MmBal" Left="568" Top="0" Width="105.6" Height="9.6" OnBeforePrint="MmBalOnBeforePrint" StretchMode="smActualHeight" DataSet="PDCheque" DataSetName="PDCheque" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Trebuchet MS" Font.Style="0" GapY="0.5" HAlign="haRight" ParentFont="False" Text="[FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;,VarToFloatDef(&#60;PDCheque.&#34;TotalKOAmt&#34;&#62;) + VarToFloatDef(&#60;PDCheque.&#34;Unapplied&#34;&#62;))]"/>
    </TfrxMasterData>
    <TfrxHeader Name="Header1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="67.2" Left="0" Top="19.2" Width="754.56048732" OnBeforePrint="Header1OnBeforePrint" Stretched="True">
      <TfrxMemoView Name="Memo18" Left="59.2" Top="26.2" Width="297.6" Height="19.2" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="Post Dated Cheque Received "/>
      <TfrxMemoView Name="Memo19" Left="59.2" Top="47" Width="96" Height="19.2" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Date"/>
      <TfrxMemoView Name="Memo21" Left="152.4" Top="47" Width="144" Height="19.2" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="Cheque Number"/>
      <TfrxMemoView Name="Memo22" Left="296.4" Top="47" Width="153.6" Height="19.2" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="OR No."/>
      <TfrxMemoView Name="Memo23" Left="443.2" Top="47" Width="115.2" Height="19.2" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Amount"/>
      <TfrxMemoView Name="Memo24" Left="558.4" Top="47" Width="115.2" Height="19.2" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Balance"/>
    </TfrxHeader>
  </TfrxReportPage>
  <TfrxReportPage Name="Page3" PaperWidth="215.9" PaperHeight="279.4" PaperSize="1" LeftMargin="9.906" RightMargin="6.35" TopMargin="6.35" BottomMargin="0" ColumnWidth="0" ColumnPositions.Text="" Frame.Typ="8" LargeDesignHeight="True" HGuides.Text="" VGuides.Text="">
    <TfrxMasterData Name="MasterData2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="19.2" Left="0" Top="19.2" Width="754.56048732" ColumnWidth="0" ColumnGap="0" DataSet="DocumentKnockOff" DataSetName="DocumentKnockOff" RowCount="0" Stretched="True">
      <TfrxMemoView Name="DocumentKnockOffDocNo" Left="28.8" Top="0" Width="76.8" Height="9.6" StretchMode="smActualHeight" DataField="DocNo" DataSet="DocumentKnockOff" DataSetName="DocumentKnockOff" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapY="0.5" ParentFont="False" Text="[DocumentKnockOff.&#34;DocNo&#34;]"/>
      <TfrxMemoView Name="DocumentKnockOffTransDate" Left="124.8" Top="0" Width="76.8" Height="9.6" StretchMode="smActualHeight" DataField="TransDate" DataSet="DocumentKnockOff" DataSetName="DocumentKnockOff" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapY="0.5" ParentFont="False" Text="[DocumentKnockOff.&#34;TransDate&#34;]"/>
      <TfrxMemoView Name="DocumentKnockOffKOAmt" Left="230.4" Top="0" Width="76.8" Height="9.6" StretchMode="smActualHeight" DataField="KOAmt" DataSet="DocumentKnockOff" DataSetName="DocumentKnockOff" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapY="0.5" HAlign="haRight" ParentFont="False" Text="[DocumentKnockOff.&#34;KOAmt&#34;]"/>
      <TfrxMemoView Name="Memo25" Left="9.6" Top="0" Width="9.6" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="0.5" ParentFont="False" Text="*"/>
    </TfrxMasterData>
  </TfrxReportPage>
</TfrxReport>
