<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="2021.0.7" DotMatrixReport="False" EngineOptions.DoublePass="True" EngineOptions.NewSilentMode="simReThrow" IniFile="\Software\eStream\SQL Account\4\Fast Reports" PreviewOptions.Buttons="167935" PreviewOptions.Zoom="1" PreviewOptions.PictureCacheInFile="True" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="41631.3627038542" ReportOptions.Description.Text="Datamap=TdvSLIV&#13;&#10;GUID={F8FFD5ED-ADA9-40A6-884D-3E08D9BEF20F}" ReportOptions.Name="Sales Invoice 7 (GST 2)" ReportOptions.LastChange="43409.5374588889" ScriptLanguage="PascalScript" ScriptText.Text="const MaxInt = 2147483647;&#13;&#10;var lSQL : String;&#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;Document_Company.&#34;Remark&#34;&#62;) &#60;&#62; '' then&#13;&#10;    Result := &#60;Document_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('plEMailTpl');&#13;&#10;    Add('Document_Currency');&#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;Document_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;Document_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;procedure GetShareMsg;&#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('plShareMsg');&#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 GetShareText: string;&#13;&#10;begin&#13;&#10;  GetShareMsg;&#13;&#10;  Result := GetFldInfo(RichTextToPlainText(&#60;plShareMsg.&#34;Body&#34;&#62;))&#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):Variant;&#13;&#10;begin&#13;&#10;  if Trim(lFld) &#60;&#62; '' then&#13;&#10;    Result := lFld else&#13;&#10;    Result := 0.00;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetTotalB4Disc:Variant;&#13;&#10;var D : TfrxDataSet;&#13;&#10;    V : Variant;&#13;&#10;    s : string;&#13;&#10;begin&#13;&#10;  D := Report.GetDataSet('Document_Detail');&#13;&#10;  V := 0.00;&#13;&#10;  D.First;&#13;&#10;  While not D.Eof do begin&#13;&#10;    V := V + SimpleRoundTo(D.Value('Qty')*D.Value('UnitPrice'),-2);&#13;&#10;    D.Next;&#13;&#10;  end;&#13;&#10;  Result := V;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetDiscValue:Variant;&#13;&#10;var D : TfrxDataSet;&#13;&#10;    V : Variant;&#13;&#10;    s : string;&#13;&#10;begin&#13;&#10;  D := Report.GetDataSet('Document_Detail');&#13;&#10;  V := 0.00;&#13;&#10;  D.First;&#13;&#10;  While not D.Eof do begin&#13;&#10;    if D.Value('TaxInclusive') = 0 then&#13;&#10;      V := V + (D.Value('Amount') - SimpleRoundTo(D.Value('Qty')*D.Value('UnitPrice'),-2)) else&#13;&#10;      V := V + (D.Value('AmountWithTax') - SimpleRoundTo(D.Value('Qty')*D.Value('UnitPrice'),-2));&#13;&#10;    D.Next;&#13;&#10;  end;&#13;&#10;  Result := V + VarToFloatDef(&#60;pl_Disc.&#34;Amount&#34;&#62;);&#13;&#10;end;&#13;&#10;&#13;&#10;function GetTotal(const lFld:String):Variant;&#13;&#10;var D : TfrxDataSet;&#13;&#10;    V : Variant;&#13;&#10;    s : string;&#13;&#10;begin&#13;&#10;  D := Report.GetDataSet('Document_Detail');&#13;&#10;  V  := 0.00;&#13;&#10;  D.First;&#13;&#10;  While not D.Eof do begin&#13;&#10;    V := V + D.Value(lFld);&#13;&#10;    D.Next;&#13;&#10;  end;&#13;&#10;    Result := V;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetTotalTaxIncl(const lFld:String):Variant;&#13;&#10;var D : TfrxDataSet;&#13;&#10;    V : Variant;&#13;&#10;    s : string;&#13;&#10;begin&#13;&#10;  D := Report.GetDataSet('Document_Detail');&#13;&#10;  V  := 0.00;&#13;&#10;  D.First;&#13;&#10;  While not D.Eof do begin&#13;&#10;    if D.Value('TaxInclusive') = 1 then&#13;&#10;      V := V + D.Value(lFld);&#13;&#10;    D.Next;&#13;&#10;  end;&#13;&#10;    Result := V;&#13;&#10;end;&#13;&#10;&#13;&#10;function GetSN(const lCode:String):String;&#13;&#10;var D : TfrxDataSet;&#13;&#10;    s : string;&#13;&#10;    i : integer;&#13;&#10;begin&#13;&#10;  Result := '';&#13;&#10;  D := Report.GetDataSet('Document_SerialNumber');&#13;&#10;  i := 1;&#13;&#10;  s := '';&#13;&#10;  D.First;&#13;&#10;  While not D.Eof do begin&#13;&#10;    if Trim(D.DisplayText('Dtlkey')) = Trim(lCode) then begin&#13;&#10;      if i = 1 then&#13;&#10;        s := D.Value('SerialNumber') else&#13;&#10;        s := s + ', ' + D.Value('SerialNumber');&#13;&#10;    end;&#13;&#10;    inc(i);&#13;&#10;    D.Next;&#13;&#10;  end;&#13;&#10;  if Trim(s) &#60;&#62; '' then&#13;&#10;    Result := 'Serial No :- ' + s;&#13;&#10;end;&#13;&#10;&#13;&#10;function FormatSQLDate(D: TDateTime): String;&#13;&#10;var AFormat: string;&#13;&#10;begin&#13;&#10;  AFormat := 'dd mmm yyyy'; //'dd/mmm/yyyy' if can't&#13;&#10;  Result := QuotedStr(FormatDateTime(AFormat, D));&#13;&#10;//If yr output for TxQuery use below coding&#13;&#10;//  AFormat :='dd/mm/yyyy';&#13;&#10;//  Result := '#'+FormatDateTime(AFormat, D)+'#';&#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;         'ORDER BY B.SEQ';&#13;&#10;  AddDataSet('plEMailTpl', ['ReportName', 'Subject', 'Body', 'PDFPassWord', 'PDFFileName', 'CC', 'BCC'])&#13;&#10;  .GetDBData(SQL);&#13;&#10;&#13;&#10;  SQL := 'SELECT B.Description As ReportName, B.Description3 As Body '+&#13;&#10;         'FROM SL_QT A ' +&#13;&#10;         'INNER JOIN SL_QTDTL B ON (A.Dockey=B.Dockey) ' +&#13;&#10;         'WHERE A.DocNo=''WHATSAPP'' ' +&#13;&#10;         'ORDER BY B.SEQ';&#13;&#10;  AddDataSet('plShareMsg', ['ReportName', 'Body'])&#13;&#10;  .GetDBData(SQL);&#13;&#10;&#13;&#10;  SQL := 'SELECT DocKey, ItemCode, UOM, UnitPrice, Disc, MAX(Seq) Seq, Description, Description3, ' +&#13;&#10;		       'SUM(CAST(Qty AS REAL)) Qty, SUM(CAST(Amount AS REAL)) Amount, SUM(CAST(AmountWithTax AS REAL)) AmountWithTax,  '+&#13;&#10;         'SUM(CAST(LocalAmount AS REAL)) LocalAmount, SUM(CAST(LocalAmountWithTax AS REAL)) LocalAmountWithTax,  '+&#13;&#10;         'Tax, Sum(CAST(TaxAmt AS REAL)) TaxAmt, Sum(CAST(LocalTaxAmt AS REAL)) LocalTaxAmt ' +&#13;&#10;         'FROM Document_Detail ' +&#13;&#10;         'GROUP BY DocKey, ItemCode, UOM, UnitPrice, Disc, Tax ';&#13;&#10;  AddDataSet('MergeItemCode', ['Dockey', 'ItemCode', 'UOM', 'UnitPrice', 'Disc', 'Seq', 'Description',&#13;&#10;                               'Description3', 'LocalAmount', 'LocalAmountWithTax',&#13;&#10;                               'Qty', 'Amount', 'AmountWithTax', 'Tax', 'TaxAmt','LocalTaxAmt'])&#13;&#10;  .GetLocalData(SQL)&#13;&#10;  .SetDisplayFormat(['LocalAmount', 'LocalAmountWithTax', 'Amount', 'AmountWithTax',&#13;&#10;                     'TaxAmt','LocalTaxAmt'], &#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;)&#13;&#10;  .SetDisplayFormat(['Qty'],&#60;Option.&#34;StockQuantityDisplayFormat&#34;&#62;)&#13;&#10;  .SetDisplayFormat(['UnitPrice'],&#60;Option.&#34;StockPriceDisplayFormat&#34;&#62;)&#13;&#10;  .LinkTo('Main', 'Dockey', 'Dockey;Seq');&#13;&#10;&#13;&#10;  SQL := 'SELECT Dockey, Count(DISTINCT FromDocKey) Nos FROM Document_Detail ' +&#13;&#10;         'WHERE FromDocKey IS NOT NULL ' +&#13;&#10;         'GROUP BY Dockey';&#13;&#10;  AddDataSet('FromDocCount', ['Nos'])&#13;&#10;  .GetLocalData(SQL)&#13;&#10;  .LinkTo('Main', 'Dockey', 'Dockey');&#13;&#10;&#13;&#10;  SQL := 'SELECT Dockey, Amount, LocalAmount, Qty FROM Document_Detail ' +&#13;&#10;         'WHERE ItemCode=''RTN5Cents'' ';&#13;&#10;  AddDataSet('AdjRound', ['Dockey', 'Amount', 'LocalAmount', 'Qty'])&#13;&#10;  .GetLocalData(SQL)&#13;&#10;  .SetDisplayFormat(['Qty'],&#60;Option.&#34;StockQuantityDisplayFormat&#34;&#62;)&#13;&#10;  .SetDisplayFormat(['Amount, LocalAmount'],&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;)&#13;&#10;  .LinkTo('Main', 'Dockey', 'Dockey');&#13;&#10;&#13;&#10;  SQL := 'SELECT Dockey, SUM(CAST(Amount AS REAL)) Amount, SUM(CAST(LocalAmount AS REAL)) LocalAmount, '+&#13;&#10;         'SUM(CAST(Qty AS REAL)) Qty FROM Document_Detail ' +&#13;&#10;         'WHERE ItemCode LIKE ''DISC%'' ' +&#13;&#10;         'GROUP BY Dockey';&#13;&#10;  AddDataSet('pl_Disc', ['Dockey', 'Amount', 'LocalAmount', 'Qty'])&#13;&#10;  .GetLocalData(SQL)&#13;&#10;  .SetDisplayFormat(['Qty'],&#60;Option.&#34;StockQuantityDisplayFormat&#34;&#62;)&#13;&#10;  .SetDisplayFormat(['Amount, LocalAmount'],&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;)&#13;&#10;  .LinkTo('Main', 'Dockey', '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 - 60;&#13;&#10;&#13;&#10;  if &#60;Main.&#34;CurrencyCode&#34;&#62; = '----' then begin&#13;&#10;    MmGST1.Left := 432;&#13;&#10;    MmGST3.Left := 432;&#13;&#10;    MmRound.Left := 432;&#13;&#10;  end else begin&#13;&#10;    MmGST1.Left := 347.71676;&#13;&#10;    MmGST3.Left := 347.71676;&#13;&#10;    MmRound.Left := 347.71676;&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure DetailData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  DetailData1.Visible := (&#60;Option.&#34;MergeSameItemCode&#34;&#62; = False) and (&#60;Document_Detail.&#34;ItemCode&#34;&#62; &#60;&#62; 'RTN5Cents');&#13;&#10;  DetailData2.Visible := (&#60;Option.&#34;MergeSameItemCode&#34;&#62; = True) and (&#60;MergeItemCode.&#34;ItemCode&#34;&#62; &#60;&#62; 'RTN5Cents');&#13;&#10;  // For Print Count 20&#13;&#10;  //if TfrxDetailData(Sender).Visible and (&#60;Line#&#62; mod 20 = 1) and (&#60;Line#&#62; &#62; 1) then Engine.NewPage;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupHeader2OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var D, DD, FDN, FDD: String;&#13;&#10;begin&#13;&#10;   FDN:= &#60;Document_Detail.&#34;FromDocNo&#34;&#62;;&#13;&#10;   FDD:= &#60;Document_Detail.&#34;FromDocDate&#34;&#62;;&#13;&#10;   If Trim(FDN) &#60;&#62; '' then&#13;&#10;      D := 'From Doc No. : ' + FDN + ';   ' else&#13;&#10;      D := '';&#13;&#10;   If Trim(FDD) &#60;&#62; '0' Then&#13;&#10;      DD := 'From Doc Date : ' + FDD else&#13;&#10;      DD := '';&#13;&#10;  GroupHeader2.Visible := (VarToFloatDef(&#60;FromDocCount.&#34;Nos&#34;&#62;) &#62; 1) and (&#60;Option.&#34;MergeSameItemCode&#34;&#62; = False);&#13;&#10;  Document_DetailFromDocNo.Text := D + DD;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure DetailData1OnAfterCalcHeight(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;// Example Stop position on 9.5 inch * 96 = 912&#13;&#10;  if TfrxDetailData(Sender).Visible and (Engine.CurY + DetailData1.Height &#62;= 912) then Engine.NewPage;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure Page1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  ShiftRelative([MmDesc, RichDesc3, RichSN]);&#13;&#10;  ShiftRelative([MmDescM, RichDesc3M]);&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;  if &#60;Main.&#34;PrintCount&#34;&#62; &#60;&#62; 0 then begin&#13;&#10;    if MessageDlg ('Print Count is ' + IntToStr(&#60;Main.&#34;PrintCount&#34;&#62;)+#13 +&#13;&#10;                   'Print Duplicate Copy?', mtInformation, mbYes + mbNo, 0) =  mrYes then begin&#13;&#10;      MmDuplicate.Visible   := True;&#13;&#10;      MmDuplicate.Printable := True;&#13;&#10;    end;&#13;&#10;  end;&#13;&#10;end.">
  <Datasets>
    <item DataSet="Main" DataSetName="Main"/>
    <item DataSet="Document_Detail" DataSetName="Document_Detail"/>
    <item DataSet="Document_SerialNumber" DataSetName="Document_SerialNumber"/>
    <item DataSet="Parameter" DataSetName="Parameter"/>
    <item DataSet="Document_Agent" DataSetName="Document_Agent"/>
    <item DataSet="Document_Area" DataSetName="Document_Area"/>
    <item DataSet="Document_Project" DataSetName="Document_Project"/>
    <item DataSet="Document_StockGroup" DataSetName="Document_StockGroup"/>
    <item DataSet="Document_Location" DataSetName="Document_Location"/>
    <item DataSet="Document_Currency" DataSetName="Document_Currency"/>
    <item DataSet="Document_Terms" DataSetName="Document_Terms"/>
    <item DataSet="Document_ItemCompany" DataSetName="Document_ItemCompany"/>
    <item DataSet="Document_Company" DataSetName="Document_Company"/>
    <item DataSet="Document_CompanyBranch" DataSetName="Document_CompanyBranch"/>
    <item DataSet="Document_DocProject" DataSetName="Document_DocProject"/>
    <item DataSet="Document_CompanyCategory" DataSetName="Document_CompanyCategory"/>
    <item DataSet="Document_Shipper" DataSetName="Document_Shipper"/>
    <item DataSet="Option" DataSetName="Option"/>
    <item DataSet="Profile" DataSetName="Profile"/>
    <item DataSet="User" DataSetName="User"/>
  </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" HGuides.Text="" VGuides.Text="" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Arial" Font.Style="0" HGuides.Text="" VGuides.Text="" 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" Frame.Typ="0" LargeDesignHeight="True" MirrorMode="0" OnBeforePrint="Page1OnBeforePrint">
    <TfrxGroupFooter Name="GroupFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="239.69765" Left="0" Top="578.26809" Width="754.56048732" OnBeforePrint="GroupFooter1OnBeforePrint" Stretched="True">
      <TfrxMemoView Name="Memo13" AllowVectorExport="True" Left="9.6" Top="0" Width="489.6" Height="38.4" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" ParentFont="False" Text="[Document_Currency.&#34;Description&#34;] : [CurrencyToLangWord(&#60;Main.&#34;DocAmt&#34;&#62;, &#60;Profile.&#34;CurrencyLang&#34;&#62;)]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="MmGST3" AllowVectorExport="True" ShiftMode="smDontShift" Left="326.4" Top="77" Width="172.8" Height="19.2" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="15" Frame.Width="2" HAlign="haRight" ParentFont="False" Text="[IIF(&#60;Main.&#34;CurrencyCode&#34;&#62; &#60;&#62; '----','Total Payable (RM)','Total Payable')]"/>
      <TfrxMemoView Name="Label43" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="115.4" Width="192" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" ParentFont="False" Text="Payment Terms"/>
      <TfrxMemoView Name="DBText29" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="125" Width="192" Height="19.2" StretchMode="smActualHeight" DataField="Terms" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="[Main.&#34;Terms&#34;]"/>
      <TfrxMemoView Name="lbRef1" AllowVectorExport="True" ShiftMode="smDontShift" Left="201.6" Top="115.4" Width="240" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-8" Highlight.Font.Name="Tahoma" Highlight.Font.Style="0" Highlight.Condition="Trim(&#60;Main.&#34;DocRef1&#34;&#62;) = ''" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" Text="Ref 1 "/>
      <TfrxMemoView Name="DBText101" AllowVectorExport="True" ShiftMode="smDontShift" Left="441.6" Top="125" Width="297.6" Height="19.2" StretchMode="smActualHeight" DataField="DocRef2" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="[Main.&#34;DocRef2&#34;]"/>
      <TfrxMemoView Name="lbRef2" AllowVectorExport="True" ShiftMode="smDontShift" Left="441.6" Top="115.4" Width="297.6" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-8" Highlight.Font.Name="Tahoma" Highlight.Font.Style="0" Highlight.Condition="Trim(&#60;Main.&#34;DocRef2&#34;&#62;) = ''" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" Text="Ref 2 "/>
      <TfrxMemoView Name="DBText14" AllowVectorExport="True" ShiftMode="smDontShift" Left="201.6" Top="125" Width="240" Height="19.2" StretchMode="smActualHeight" DataField="DocRef1" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" ParentFont="False" Text="[Main.&#34;DocRef1&#34;]"/>
      <TfrxMemoView Name="VarPayAmt" AllowVectorExport="True" ShiftMode="smDontShift" Left="633.6" Top="77" Width="105.6" Height="19.2" StretchMode="smActualHeight" DataField="DocAmt" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-15" Font.Name="Tahoma" Font.Style="1" Frame.Typ="15" Frame.Width="2" HAlign="haRight" ParentFont="False" Text="[Main.&#34;DocAmt&#34;]"/>
      <TfrxMemoView Name="Label61" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="144.2" Width="729.6" Height="86.4" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Authorised Signature&#13;&#10;[Profile.&#34;CompanyName&#34;] ([Profile.&#34;RegisterNo&#34;])"/>
      <TfrxMemoView Name="Memo11" AllowVectorExport="True" ShiftMode="smDontShift" Left="499.2" Top="77" Width="96" Height="19.2" DataField="LocalDocAmt" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="14" Frame.Width="2" HAlign="haRight" Highlight.ApplyFont="False" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-13" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;Main.&#34;CurrencyCode&#34;&#62; = '----'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" Highlight.Visible="False" ParentFont="False" Text="[Main.&#34;LocalDocAmt&#34;]"/>
      <TfrxMemoView Name="Memo12" AllowVectorExport="True" ShiftMode="smDontShift" Left="499.2" Top="38.4" Width="96" Height="19.2" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="6" HAlign="haRight" Highlight.ApplyFont="False" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-13" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;Main.&#34;CurrencyCode&#34;&#62; = '----'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" Highlight.Visible="False" ParentFont="False" Text="[IIF((GetTotal('LocalAmount')- &#60;AdjRound.&#34;LocalAmount&#34;&#62;) &#60;&#62; 0, &#13;&#10;     FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;, &#13;&#10;     (GetTotal('LocalAmount')- &#60;AdjRound.&#34;LocalAmount&#34;&#62;)),'0.00')]"/>
      <TfrxMemoView Name="MmGST1" AllowVectorExport="True" ShiftMode="smDontShift" Left="326.4" Top="38.4" Width="172.8" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="7" HAlign="haRight" ParentFont="False" Text="[IIF(&#60;Main.&#34;CurrencyCode&#34;&#62; &#60;&#62; '----','Total (RM)','Total')]"/>
      <TfrxMemoView Name="Memo4" AllowVectorExport="True" Left="633.6" Top="0" Width="105.6" Height="19.2" StretchMode="smActualHeight" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="[FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;, &#13;&#10;  (GetTotalB4Disc - VarToFloatDef(&#60;AdjRound.&#34;Amount&#34;&#62;) - VarToFloatDef(&#60;pl_Disc.&#34;Amount&#34;&#62;)))]"/>
      <TfrxMemoView Name="Memo5" AllowVectorExport="True" Left="633.6" Top="19.2" Width="105.6" Height="19.2" StretchMode="smActualHeight" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="[IIF(GetDiscValue &#60;&#62; 0, &#13;&#10;     FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;, &#13;&#10;     GetDiscValue),'0.00')]"/>
      <TfrxMemoView Name="Memo6" AllowVectorExport="True" Left="499.2" Top="19.2" Width="134.4" Height="19.2" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" Frame.Width="2" HAlign="haRight" ParentFont="False" Text="- Discount"/>
      <TfrxMemoView Name="Memo7" AllowVectorExport="True" ShiftMode="smDontShift" Left="633.6" Top="38.4" Width="105.6" Height="19.2" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[IIF((GetTotal('Amount')- &#60;AdjRound.&#34;Amount&#34;&#62;) &#60;&#62; 0, &#13;&#10;     FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;, &#13;&#10;     (GetTotal('Amount')- &#60;AdjRound.&#34;Amount&#34;&#62;)),'0.00')]"/>
      <TfrxMemoView Name="Memo2" AllowVectorExport="True" Left="499.2" Top="0" Width="134.4" Height="19.2" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" Frame.Width="2" Frame.TopLine.Width="1" HAlign="haRight" ParentFont="False" Text="Gross"/>
      <TfrxMemoView Name="Memo3" AllowVectorExport="True" ShiftMode="smDontShift" Left="499.2" Top="57.8" Width="96" Height="19.2" DataSetName="AdjRound" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="2" HAlign="haRight" Highlight.ApplyFont="False" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-13" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;Main.&#34;CurrencyCode&#34;&#62; = '----'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" Highlight.Visible="False" ParentFont="False" Text="[IIF(&#60;AdjRound.&#34;LocalAmount&#34;&#62; &#60;&#62; 0, &#13;&#10;     FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;, &#13;&#10;     &#60;AdjRound.&#34;LocalAmount&#34;&#62;),'0.00')]"/>
      <TfrxMemoView Name="MmRound" AllowVectorExport="True" ShiftMode="smDontShift" Left="326.4" Top="57.8" Width="172.8" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="3" HAlign="haRight" ParentFont="False" Text="[IIF(&#60;Main.&#34;CurrencyCode&#34;&#62; &#60;&#62; '----','Rounding Adjustment (RM)','Rounding Adjustment')]"/>
      <TfrxMemoView Name="Memo14" AllowVectorExport="True" ShiftMode="smDontShift" Left="633.6" Top="57.8" Width="105.6" Height="19.2" DataSetName="AdjRound" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[IIF(&#60;AdjRound.&#34;Amount&#34;&#62; &#60;&#62; 0, &#13;&#10;     FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;, &#13;&#10;     &#60;AdjRound.&#34;Amount&#34;&#62;),'0.00')]"/>
    </TfrxGroupFooter>
    <TfrxMasterData Name="MasterData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="0" Left="0" Top="389.29159" Width="754.56048732" ColumnWidth="0" ColumnGap="0" DataSet="Main" DataSetName="Main" RowCount="0" Stretched="True"/>
    <TfrxDetailData Name="DetailData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Height="30.53859" Left="0" ParentFont="False" Top="449.76407" Width="754.56048732" OnAfterCalcHeight="DetailData1OnAfterCalcHeight" OnBeforePrint="DetailData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="Document_Detail" DataSetName="Document_Detail" Filter="Copy(&#60;Document_Detail.&#34;ItemCode&#34;&#62;, 1, 4) &#60;&#62; 'DISC'" RowCount="0" Stretched="True">
      <TfrxSysMemoView Name="SysMemo1" AllowVectorExport="True" Left="9.6" Top="0" Width="28.8" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[LINE#]"/>
      <TfrxMemoView Name="Document_DetailQty" AllowVectorExport="True" Left="499.2" Top="0" Width="38.4" Height="9.6" StretchMode="smActualHeight" AllowExpressions="False" DataField="Qty" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[Document_Detail.&#34;Qty&#34;]"/>
      <TfrxMemoView Name="Document_DetailUnitPrice" AllowVectorExport="True" Left="576" Top="0" Width="76.8" Height="9.6" StretchMode="smActualHeight" AllowExpressions="False" DataField="UnitPrice" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[Document_Detail.&#34;UnitPrice&#34;]"/>
      <TfrxMemoView Name="Document_DetailUOM" AllowVectorExport="True" Left="537.6" Top="0" Width="38.4" Height="9.6" StretchMode="smActualHeight" AllowExpressions="False" DataField="UOM" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[Document_Detail.&#34;UOM&#34;]"/>
      <TfrxMemoView Name="Document_DetailAmountWithTax" AllowVectorExport="True" Left="652.8" Top="0" Width="86.4" Height="9.6" StretchMode="smActualHeight" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;, &#13;&#10; SimpleRoundTo(&#60;Document_Detail.&#34;Qty&#34;&#62;*&#60;Document_Detail.&#34;UnitPrice&#34;&#62;,-2))]"/>
      <TfrxMemoView Name="Memo16" AllowVectorExport="True" Left="38.4" Top="0" Width="76.8" Height="9.6" StretchMode="smActualHeight" AllowExpressions="False" DataField="ItemCode" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[Document_Detail.&#34;ItemCode&#34;]"/>
      <TfrxRichView Name="RichDesc3" AllowVectorExport="True" Left="115.2" Top="9.6" Width="384" Height="9.6" StretchMode="smActualHeight" Frame.Typ="0" GapX="2" GapY="0" PropData="0852696368456469740AED0000007B5C727466315C616E73695C616E7369637067313235325C64656666305C6E6F7569636F6D7061745C6465666C616E67313033337B5C666F6E7474626C7B5C66305C666E696C5C666368617273657430205461686F6D613B7D7D0D0A7B5C636F6C6F7274626C203B5C726564305C677265656E305C626C7565303B7D0D0A7B5C2A5C67656E657261746F722052696368656432302031302E302E31393034317D5C766965776B696E64345C756331200D0A5C706172645C6366315C66305C66733138205B446F63756D656E745F44657461696C2E224465736372697074696F6E33225D5C7061720D0A7D0D0A00"/>
      <TfrxMemoView Name="MmDesc" AllowVectorExport="True" Left="115.2" Top="0" Width="384" Height="9.6" StretchMode="smActualHeight" AllowExpressions="False" DataField="Description" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" GapY="0" ParentFont="False" Text="[Document_Detail.&#34;Description&#34;]"/>
      <TfrxRichView Name="RichSN" AllowVectorExport="True" Left="115.2" Top="19.2" Width="384" Height="9.6" StretchMode="smActualHeight" Frame.Typ="0" GapX="2" GapY="0" PropData="0852696368456469740AF00000007B5C727466315C616E73695C616E7369637067313235325C64656666305C6E6F7569636F6D7061745C6465666C616E67313033337B5C666F6E7474626C7B5C66305C666E696C5C666368617273657430205461686F6D613B7D7D0D0A7B5C636F6C6F7274626C203B5C726564305C677265656E305C626C7565303B7D0D0A7B5C2A5C67656E657261746F722052696368656432302031302E302E31393034317D5C766965776B696E64345C756331200D0A5C706172645C6366315C66305C66733138205B476574534E283C446F63756D656E745F44657461696C2E2244746C4B6579223E295D5C7061720D0A7D0D0A00"/>
    </TfrxDetailData>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" Height="28.8" Left="0" ParentFont="False" Top="876.85096" Width="754.56048732"/>
    <TfrxDetailData Name="DetailData2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Height="28.8" Left="0" ParentFont="False" Top="525.35467" Width="754.56048732" OnAfterCalcHeight="DetailData1OnAfterCalcHeight" OnBeforePrint="DetailData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSetName="MergeItemCode" Filter="Copy(&#60;MergeItemCode.&#34;ItemCode&#34;&#62;, 1, 4) &#60;&#62; 'DISC'" RowCount="0" Stretched="True">
      <TfrxSysMemoView Name="SysMemo2" AllowVectorExport="True" Left="9.6" Top="0" Width="28.8" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[LINE#]"/>
      <TfrxMemoView Name="Memo17" AllowVectorExport="True" Left="499.2" Top="0" Width="38.4" Height="9.6" StretchMode="smActualHeight" DataField="Qty" DataSetName="MergeItemCode" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[MergeItemCode.&#34;Qty&#34;]"/>
      <TfrxMemoView Name="Memo26" AllowVectorExport="True" Left="576" Top="0" Width="76.8" Height="9.6" StretchMode="smActualHeight" DataField="UnitPrice" DataSetName="MergeItemCode" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[MergeItemCode.&#34;UnitPrice&#34;]"/>
      <TfrxMemoView Name="Memo27" AllowVectorExport="True" Left="537.6" Top="0" Width="38.4" Height="9.6" StretchMode="smActualHeight" DataField="UOM" DataSetName="MergeItemCode" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[MergeItemCode.&#34;UOM&#34;]"/>
      <TfrxMemoView Name="Memo29" AllowVectorExport="True" Left="652.8" Top="0" Width="86.4" Height="9.6" StretchMode="smActualHeight" DataSetName="MergeItemCode" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[FormatFloat(&#60;Option.&#34;AccountingValueDisplayFormat&#34;&#62;, SimpleRoundTo(&#60;MergeItemCode.&#34;Qty&#34;&#62;*&#60;MergeItemCode.&#34;UnitPrice&#34;&#62;,-2))]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo1" AllowVectorExport="True" Left="38.4" Top="0" Width="76.8" Height="9.6" StretchMode="smActualHeight" AllowExpressions="False" DataField="ItemCode" DataSetName="MergeItemCode" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[MergeItemCode.&#34;ItemCode&#34;]"/>
      <TfrxRichView Name="RichDesc3M" AllowVectorExport="True" Left="115.2" Top="9.6" Width="384" Height="9.6" StretchMode="smActualHeight" Frame.Typ="0" GapX="2" GapY="0" PropData="0852696368456469740AEB0000007B5C727466315C616E73695C616E7369637067313235325C64656666305C6E6F7569636F6D7061745C6465666C616E67313033337B5C666F6E7474626C7B5C66305C666E696C5C666368617273657430205461686F6D613B7D7D0D0A7B5C636F6C6F7274626C203B5C726564305C677265656E305C626C7565303B7D0D0A7B5C2A5C67656E657261746F722052696368656432302031302E302E31393034317D5C766965776B696E64345C756331200D0A5C706172645C6366315C66305C66733138205B4D657267654974656D436F64652E224465736372697074696F6E33225D5C7061720D0A7D0D0A00"/>
      <TfrxMemoView Name="MmDescM" AllowVectorExport="True" Left="115.2" Top="0" Width="384" Height="9.6" StretchMode="smActualHeight" DataField="Description" DataSetName="MergeItemCode" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" GapY="0" ParentFont="False" Text="[MergeItemCode.&#34;Description&#34;]"/>
    </TfrxDetailData>
    <TfrxGroupHeader Name="GroupHeader2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="13.37953" Left="0" Top="411.96877" Width="754.56048732" OnBeforePrint="GroupHeader2OnBeforePrint" Condition="Document_Detail.&#34;FromDocNo&#34;" Stretched="True">
      <TfrxMemoView Name="Document_DetailFromDocNo" AllowVectorExport="True" Left="9.6" Top="0" Width="729.6" Height="9.6" StretchMode="smActualHeight" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="4" Frame.Typ="0" ParentFont="False" WordWrap="False" Text="From Doc No.: [Document_Detail.&#34;FromDocNo&#34;];    From Doc Date : [Document_Detail.&#34;FromDocDate&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="0" Left="0" Top="502.67749" Width="754.56048732" Stretched="True"/>
    <TfrxGroupHeader Name="GroupHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="347.41441" Left="0" Top="18.89765" Width="754.56048732" Condition="Main.&#34;DocNo&#34;" ReprintOnNewPage="True" ResetPageNumbers="True" StartNewPage="True">
      <TfrxMemoView Name="Memo19" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="144" Width="393.6" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-9" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" HideZeros="True" ParentFont="False" VAlign="vaCenter" Text="Billing Address"/>
      <TfrxMemoView Name="Memo21" AllowVectorExport="True" ShiftMode="smDontShift" Left="403.2" Top="144" Width="336" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-9" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" HideZeros="True" ParentFont="False" VAlign="vaCenter" Text="Delivery Address"/>
      <TfrxMemoView Name="Memo22" AllowVectorExport="True" ShiftMode="smDontShift" Left="403.2" Top="163.2" Width="336" Height="19.2" StretchMode="smActualHeight" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="1" Frame.Typ="0" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-13" Highlight.Font.Name="Tahoma" Highlight.Font.Style="0" Highlight.Condition="&#60;Main.&#34;BranchName&#34;&#62; = 'BILLING'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" Text="[Main.&#34;BranchName&#34;]"/>
      <TfrxMemoView Name="Memo23" AllowVectorExport="True" ShiftMode="smDontShift" Left="403.2" Top="268.8" Width="38.4" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="Tel"/>
      <TfrxMemoView Name="Memo24" AllowVectorExport="True" ShiftMode="smDontShift" Left="403.2" Top="288" Width="38.4" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="Fax"/>
      <TfrxMemoView Name="Memo25" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="163.2" Width="393.6" Height="19.2" StretchMode="smActualHeight" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="[Main.&#34;CompanyName&#34;]"/>
      <TfrxMemoView Name="Memo28" AllowVectorExport="True" ShiftMode="smDontShift" Left="115.2" Top="307.2" Width="86.4" Height="9.6" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" ParentFont="False" VAlign="vaCenter" Text="Sales Executive"/>
      <TfrxMemoView Name="Memo30" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="307.2" Width="105.6" Height="9.6" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" ParentFont="False" VAlign="vaCenter" Text="Customer Account"/>
      <TfrxMemoView Name="Memo31" AllowVectorExport="True" ShiftMode="smDontShift" Left="201.6" Top="307.2" Width="57.6" Height="9.6" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-13" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;Main.&#34;CurrencyCode&#34;&#62; = '----'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="Currency Rate"/>
      <TfrxMemoView Name="Memo32" AllowVectorExport="True" ShiftMode="smDontShift" Left="432" Top="307.2" Width="67.2" Height="9.6" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" ParentFont="False" VAlign="vaCenter" Text="Name"/>
      <TfrxMemoView Name="Memo33" AllowVectorExport="True" ShiftMode="smDontShift" Left="576" Top="307.2" Width="76.8" Height="9.6" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="5" Frame.LeftLine.Width="2" Frame.TopLine.Width="2" ParentFont="False" VAlign="vaCenter" Text="Doc No."/>
      <TfrxMemoView Name="Memo34" AllowVectorExport="True" ShiftMode="smDontShift" Left="652.8" Top="307.2" Width="86.4" Height="9.6" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="6" Frame.TopLine.Width="2" Frame.RightLine.Width="2" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Date"/>
      <TfrxMemoView Name="Memo35" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="336" Width="28.8" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="No"/>
      <TfrxMemoView Name="Memo36" AllowVectorExport="True" ShiftMode="smDontShift" Left="115.2" Top="336" Width="384" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="Description"/>
      <TfrxMemoView Name="Memo37" AllowVectorExport="True" ShiftMode="smDontShift" Left="499.2" Top="336" Width="76.8" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Qty"/>
      <TfrxMemoView Name="Label37" AllowVectorExport="True" ShiftMode="smDontShift" Left="38.4" Top="336" Width="76.8" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="Item Code"/>
      <TfrxMemoView Name="Memo38" AllowVectorExport="True" ShiftMode="smDontShift" Left="576" Top="336" Width="76.8" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Price/Unit"/>
      <TfrxMemoView Name="Memo39" AllowVectorExport="True" ShiftMode="smDontShift" Left="652.8" Top="336" Width="86.4" Height="9.6" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Sub Total ([Document_Currency.&#34;Symbol&#34;]) "/>
      <TfrxMemoView Name="Memo40" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="316.8" Width="105.6" Height="19.2" StretchMode="smActualHeight" DataField="Code" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="[Main.&#34;Code&#34;]"/>
      <TfrxMemoView Name="Memo41" AllowVectorExport="True" ShiftMode="smDontShift" Left="576" Top="316.8" Width="76.8" Height="19.2" StretchMode="smActualHeight" DataField="DocNo" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Typ="9" Frame.LeftLine.Width="2" Frame.BottomLine.Width="2" ParentFont="False" Text="[Main.&#34;DocNo&#34;]"/>
      <TfrxMemoView Name="Memo42" AllowVectorExport="True" ShiftMode="smDontShift" Left="201.6" Top="316.8" Width="57.6" Height="19.2" StretchMode="smActualHeight" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Typ="8" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-13" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;Main.&#34;CurrencyCode&#34;&#62; = '----'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" Text="[Main.&#34;CurrencyRate&#34;]"/>
      <TfrxMemoView Name="Memo43" AllowVectorExport="True" ShiftMode="smDontShift" Left="652.8" Top="316.8" Width="86.4" Height="19.2" StretchMode="smActualHeight" DataField="DocDate" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Typ="10" Frame.RightLine.Width="2" Frame.BottomLine.Width="2" HAlign="haRight" ParentFont="False" Text="[Main.&#34;DocDate&#34;]"/>
      <TfrxMemoView Name="Memo44" AllowVectorExport="True" ShiftMode="smDontShift" Left="432" Top="316.8" Width="67.2" Height="19.2" StretchMode="smActualHeight" DataField="Code" DataSet="User" DataSetName="User" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="[User.&#34;Code&#34;]"/>
      <TfrxMemoView Name="Memo45" AllowVectorExport="True" ShiftMode="smDontShift" Left="115.2" Top="316.8" Width="86.4" Height="19.2" StretchMode="smActualHeight" DataField="Agent" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="[Main.&#34;Agent&#34;]"/>
      <TfrxMemoView Name="Memo46" AllowVectorExport="True" ShiftMode="smDontShift" Left="499.2" Top="307.2" Width="76.8" Height="9.6" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" ParentFont="False" VAlign="vaCenter" Text="Page No "/>
      <TfrxMemoView Name="Memo47" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="268.8" Width="28.8" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="Tel"/>
      <TfrxMemoView Name="Memo48" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="288" Width="28.8" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="Fax"/>
      <TfrxMemoView Name="Memo49" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="249.6" Width="28.8" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="Attn"/>
      <TfrxMemoView Name="Memo50" AllowVectorExport="True" ShiftMode="smDontShift" Left="38.4" Top="249.6" Width="364.8" Height="19.2" StretchMode="smActualHeight" DataField="Attention" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[Main.&#34;Attention&#34;]"/>
      <TfrxMemoView Name="Memo51" AllowVectorExport="True" ShiftMode="smDontShift" Left="403.2" Top="249.6" Width="38.4" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="Attn"/>
      <TfrxMemoView Name="Memo52" AllowVectorExport="True" ShiftMode="smDontShift" Left="441.6" Top="249.6" Width="297.6" Height="19.2" StretchMode="smActualHeight" DataField="DAttention" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[Main.&#34;DAttention&#34;]"/>
      <TfrxMemoView Name="Memo53" AllowVectorExport="True" ShiftMode="smDontShift" Left="441.6" Top="268.8" Width="297.6" Height="19.2" StretchMode="smActualHeight" DataField="DPhone1" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[Main.&#34;DPhone1&#34;]"/>
      <TfrxMemoView Name="Memo54" AllowVectorExport="True" ShiftMode="smDontShift" Left="441.6" Top="288" Width="297.6" Height="19.2" StretchMode="smActualHeight" DataField="DFax1" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[Main.&#34;DFax1&#34;]"/>
      <TfrxPictureView Name="Picture1" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="9.6" Width="105.6" Height="105.6" DataField="Logo" DataSet="Profile" DataSetName="Profile" Frame.Typ="0" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
      <TfrxRichView Name="Rich1" AllowVectorExport="True" ShiftMode="smDontShift" Left="115.2" Top="9.6" Width="624" Height="105.6" AllowExpressions="False" DataField="Note" DataSet="Profile" DataSetName="Profile" Frame.Typ="0" GapX="2" GapY="1" PropData="0852696368456469740AA60000007B5C727466315C616E73695C616E7369637067313235325C64656666305C6E6F7569636F6D7061745C6465666C616E67313033337B5C666F6E7474626C7B5C66305C666E696C5C666368617273657430205461686F6D613B7D7D0D0A7B5C2A5C67656E657261746F722052696368656432302031302E302E31393034317D5C766965776B696E64345C756331200D0A5C706172645C66305C667331365C7061720D0A7D0D0A00"/>
      <TfrxMemoView Name="Memo55" AllowVectorExport="True" ShiftMode="smDontShift" Left="38.4" Top="268.8" Width="364.8" Height="19.2" StretchMode="smActualHeight" DataField="Phone1" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[Main.&#34;Phone1&#34;]"/>
      <TfrxMemoView Name="Memo56" AllowVectorExport="True" ShiftMode="smDontShift" Left="38.4" Top="288" Width="364.8" Height="19.2" StretchMode="smActualHeight" DataField="Fax1" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[Main.&#34;Fax1&#34;]"/>
      <TfrxMemoView Name="Memo57" AllowVectorExport="True" ShiftMode="smDontShift" Left="259.2" Top="307.2" Width="79.68" Height="9.6" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-8" Highlight.Font.Name="Tahoma" Highlight.Font.Style="0" Highlight.Condition="(VarToFloatDef(&#60;FromDocCount.&#34;Nos&#34;&#62;) &#62; 1) or (VarToFloatDef(&#60;Document_Detail.&#34;FromDocDate&#34;&#62;) = 0)" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="From Doc Date"/>
      <TfrxMemoView Name="Memo58" AllowVectorExport="True" ShiftMode="smDontShift" Left="339" Top="307.2" Width="94.08" Height="9.6" Font.Charset="1" Font.Color="0" Font.Height="-8" Font.Name="Tahoma" Font.Style="0" Frame.Typ="4" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-8" Highlight.Font.Name="Tahoma" Highlight.Font.Style="0" Highlight.Condition="(VarToFloatDef(&#60;FromDocCount.&#34;Nos&#34;&#62;) &#62; 1) or (VarToFloatDef(&#60;Document_Detail.&#34;FromDocDate&#34;&#62;) = 0)" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="From Doc No"/>
      <TfrxMemoView Name="Memo59" AllowVectorExport="True" ShiftMode="smDontShift" Left="259.2" Top="316.8" Width="79.68" Height="19.2" StretchMode="smActualHeight" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Typ="8" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-12" Highlight.Font.Name="Tahoma" Highlight.Font.Style="0" Highlight.Condition="(VarToFloatDef(&#60;FromDocCount.&#34;Nos&#34;&#62;) &#62; 1) or (VarToFloatDef(&#60;Document_Detail.&#34;FromDocDate&#34;&#62;) = 0)" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" Text="[Document_Detail.&#34;FromDocDate&#34;]"/>
      <TfrxMemoView Name="Memo60" AllowVectorExport="True" ShiftMode="smDontShift" Left="339" Top="316.8" Width="94.08" Height="19.2" StretchMode="smActualHeight" DataSet="Document_Detail" DataSetName="Document_Detail" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Typ="8" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="16777215" Highlight.Font.Height="-12" Highlight.Font.Name="Tahoma" Highlight.Font.Style="0" Highlight.Condition="(VarToFloatDef(&#60;FromDocCount.&#34;Nos&#34;&#62;) &#62; 1) or (VarToFloatDef(&#60;Document_Detail.&#34;FromDocDate&#34;&#62;) = 0)" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" Text="[Document_Detail.&#34;FromDocNo&#34;]"/>
      <TfrxSysMemoView Name="SysMemo3" AllowVectorExport="True" ShiftMode="smDontShift" Left="499.2" Top="316.8" Width="76.8" Height="19.2" StretchMode="smActualHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="[PAGE] of [TOTALPAGES]"/>
      <TfrxMemoView Name="Memo65" AllowVectorExport="True" ShiftMode="smDontShift" Left="403.2" Top="182.4" Width="336" Height="67.2" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[Main.&#34;DAddress1&#34;]&#13;&#10;[Main.&#34;DAddress2&#34;]&#13;&#10;[Main.&#34;DAddress3&#34;]&#13;&#10;[Main.&#34;DAddress4&#34;]"/>
      <TfrxMemoView Name="Memo66" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="182.4" Width="393.6" Height="67.2" DataSet="Main" DataSetName="Main" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[Main.&#34;Address1&#34;]&#13;&#10;[Main.&#34;Address2&#34;]&#13;&#10;[Main.&#34;Address3&#34;]&#13;&#10;[Main.&#34;Address4&#34;]"/>
      <TfrxMemoView Name="MmDuplicate" AllowVectorExport="True" ShiftMode="smDontShift" Left="585.6" Top="115.2" Width="153.6" Height="28.8" Visible="False" Visibility="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Tahoma" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="Duplicate Copy"/>
      <TfrxMemoView Name="Memo61" AllowVectorExport="True" ShiftMode="smDontShift" Left="9.6" Top="115.8" Width="249.6" Height="28.8" Font.Charset="1" Font.Color="-16777208" Font.Height="-21" Font.Name="Tahoma" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="Invoice"/>
    </TfrxGroupHeader>
  </TfrxReportPage>
</TfrxReport>
