<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="5.4.6" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="40890,5673958333" ReportOptions.Description.Text="" ReportOptions.LastChange="44483,6593641088" ScriptLanguage="PascalScript" ScriptText.Text="procedure HideFields(VlrTag:integer);&#13;&#10;  procedure HideObjectBand(Band:TfrxBand; VlrTag:integer);&#13;&#10;    var i:integer;&#13;&#10;  begin&#13;&#10;    with Band do&#13;&#10;      for i:=0 to Objects.Count-1 do&#13;&#10;        if (Objects[i] is TfrxMemoView) and (TfrxMemoView(Objects[i]).Tag=VlrTag) then&#13;&#10;           TfrxMemoView(Objects[i]).Visible:=False;&#13;&#10;  end;&#13;&#10;begin&#13;&#10;  HideObjectBand(PH,VlrTag);&#13;&#10;  HideObjectBand(MD,VlrTag);&#13;&#10;  HideObjectBand(GF,VlrTag);&#13;&#10;  HideObjectBand(F,VlrTag);&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;{//Dados de teste&#13;&#10;  Set('CodEmpresa'   ,'1');&#13;&#10;  Set('Filtros'      ,'''Nada''');&#13;&#10;  Set('RelReferencia','''2L00''');&#13;&#10;  Set('Unidade'      ,'''''');&#13;&#10;  Set('CodGrupo'     ,'0');&#13;&#10;  Set('CodSubGrupo'  ,'0');&#13;&#10;  Set('CodMarca'     ,'0');&#13;&#10;  Set('CodSimilar'   ,'0');&#13;&#10;  Set('CodFornecedor','4');&#13;&#10;  Set('TipoCusto'    ,'1');&#13;&#10;  Set('CodPreco'     ,'1');&#13;&#10;  Set('CodEmpresa2'  ,'0');&#13;&#10;  Set('Situacao'     ,'2');&#13;&#10;  Set('PosEstoque'   ,'1');&#13;&#10;  Set('Ordem'        ,'1');&#13;&#10;  Set('ECommerce'    ,'2');&#13;&#10; }&#13;&#10;&#13;&#10;&#13;&#10;&#13;&#10;&#13;&#10;  QPrincipal.Open;&#13;&#10;  if QPrincipal.IsEmpty then&#13;&#10;  begin&#13;&#10;    CreateError('Não exitem registros para os filtros selecionados.');&#13;&#10;  end;&#13;&#10;&#13;&#10;  if PegaValorCampoTabela('cadcfg','CFG_ORCCON','')='False' then&#13;&#10;  begin&#13;&#10;    HideFields(1);&#13;&#10;  end;&#13;&#10;end.">
  <Datasets>
    <item DataSet="QPrincipal" DataSetName="QPrincipal"/>
    <item DataSet="QEmpresa" DataSetName="QEmpresa"/>
  </Datasets>
  <Variables>
    <item Name="CodEmpresa" Value="1"/>
    <item Name="Filtros" Value="'Preço: A VISTA - Situação: Ativos - Pos. Estoque: Diferente de Zero - Ordem: Descrição - '"/>
    <item Name="RelReferencia" Value="'2L00'"/>
    <item Name="Unidade" Value="''"/>
    <item Name="CodGrupo" Value="0"/>
    <item Name="CodSubGrupo" Value="0"/>
    <item Name="CodMarca" Value="0"/>
    <item Name="CodSimilar" Value="0"/>
    <item Name="CodFornecedor" Value="0"/>
    <item Name="TipoCusto" Value="0"/>
    <item Name="CodPreco" Value="1"/>
    <item Name="CodEmpresa2" Value="0"/>
    <item Name="Situacao" Value="1"/>
    <item Name="PosEstoque" Value="3"/>
    <item Name="Ordem" Value="0"/>
    <item Name="ECommerce" Value="2"/>
    <item Name="CSTRIB_01" Value="''"/>
    <item Name="CSTRIB_02" Value="''"/>
    <item Name="CSTRIB_03" Value="''"/>
    <item Name="CSTRIB_04" Value="''"/>
    <item Name="CSTRIB_05" Value="''"/>
    <item Name="CSTRIB_06" Value="''"/>
    <item Name="CSTRIB_07" Value="''"/>
    <item Name="CSTRIB_08" Value="''"/>
    <item Name="CSTRIB_09" Value="''"/>
    <item Name="CSTRIB_10" Value="''"/>
    <item Name="CSTPIS_01" Value="''"/>
    <item Name="CSTPIS_02" Value="''"/>
    <item Name="CSTPIS_03" Value="''"/>
    <item Name="CSTPIS_04" Value="''"/>
    <item Name="CSTPIS_05" Value="''"/>
    <item Name="CSTPIS_06" Value="''"/>
    <item Name="CSTPIS_07" Value="''"/>
    <item Name="CSTPIS_08" Value="''"/>
    <item Name="CSTPIS_09" Value="''"/>
    <item Name="CSTPIS_10" Value="''"/>
    <item Name="CSTCOF_01" Value="''"/>
    <item Name="CSTCOF_02" Value="''"/>
    <item Name="CSTCOF_03" Value="''"/>
    <item Name="CSTCOF_04" Value="''"/>
    <item Name="CSTCOF_05" Value="''"/>
    <item Name="CSTCOF_06" Value="''"/>
    <item Name="CSTCOF_07" Value="''"/>
    <item Name="CSTCOF_08" Value="''"/>
    <item Name="CSTCOF_09" Value="''"/>
    <item Name="CSTCOF_10" Value="''"/>
    <item Name="VI_MesAnterior" Value="0"/>
    <item Name="VI_AnoAnterior" Value="0"/>
  </Variables>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxADOQuery Name="QPrincipal" UserName="QPrincipal" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="declare @Unidade       varchar(02) = :Unidade       ,        &#13;&#10;        @CodGrupo      integer     = :CodGrupo      ,       &#13;&#10;        @CodSubGrupo   integer     = :CodSubGrupo   ,    &#13;&#10;        @CodMarca      integer     = :CodMarca      ,       &#13;&#10;        @CodSimilar    integer     = :CodSimilar    ,     &#13;&#10;        @CodFornecedor integer     = :CodFornecedor ,  &#13;&#10;        @TipoCusto     integer     = :TipoCusto     ,      &#13;&#10;        @CodPreco      integer     = :CodPreco      ,                          &#13;&#10;        @CodEmpresa    integer     = :CodEmpresa    ,     &#13;&#10;        @Situacao      integer     = :Situacao      ,                                 &#13;&#10;        @PosEstoque    integer     = :PosEstoque    ,     &#13;&#10;        @Ordem         integer     = :Ordem         ,&#13;&#10;        @ECommerce     integer     = :ECommerce     ,&#13;&#10;        @CSTRIB_01     varchar(03) = :CSTRIB_01     ,        &#13;&#10;        @CSTRIB_02     varchar(03) = :CSTRIB_02     ,                                           &#13;&#10;        @CSTRIB_03     varchar(03) = :CSTRIB_03     ,&#13;&#10;        @CSTRIB_04     varchar(03) = :CSTRIB_04     ,&#13;&#10;        @CSTRIB_05     varchar(03) = :CSTRIB_05     ,&#13;&#10;        @CSTRIB_06     varchar(03) = :CSTRIB_06     ,&#13;&#10;        @CSTRIB_07     varchar(03) = :CSTRIB_07     ,&#13;&#10;        @CSTRIB_08     varchar(03) = :CSTRIB_08     ,&#13;&#10;        @CSTRIB_09     varchar(03) = :CSTRIB_09     ,&#13;&#10;        @CSTRIB_10     varchar(03) = :CSTRIB_10     ,            &#13;&#10;        @CSTPIS_01     varchar(03) = :CSTPIS_01     ,        &#13;&#10;        @CSTPIS_02     varchar(03) = :CSTPIS_02     ,                                           &#13;&#10;        @CSTPIS_03     varchar(03) = :CSTPIS_03     ,&#13;&#10;        @CSTPIS_04     varchar(03) = :CSTPIS_04     ,&#13;&#10;        @CSTPIS_05     varchar(03) = :CSTPIS_05     ,&#13;&#10;        @CSTPIS_06     varchar(03) = :CSTPIS_06     ,&#13;&#10;        @CSTPIS_07     varchar(03) = :CSTPIS_07     ,&#13;&#10;        @CSTPIS_08     varchar(03) = :CSTPIS_08     ,&#13;&#10;        @CSTPIS_09     varchar(03) = :CSTPIS_09     ,&#13;&#10;        @CSTPIS_10     varchar(03) = :CSTPIS_10     ,&#13;&#10;        @CSTCOF_01     varchar(03) = :CSTCOF_01     ,        &#13;&#10;        @CSTCOF_02     varchar(03) = :CSTCOF_02     ,                                           &#13;&#10;        @CSTCOF_03     varchar(03) = :CSTCOF_03     ,&#13;&#10;        @CSTCOF_04     varchar(03) = :CSTCOF_04     ,&#13;&#10;        @CSTCOF_05     varchar(03) = :CSTCOF_05     ,&#13;&#10;        @CSTCOF_06     varchar(03) = :CSTCOF_06     ,&#13;&#10;        @CSTCOF_07     varchar(03) = :CSTCOF_07     ,&#13;&#10;        @CSTCOF_08     varchar(03) = :CSTCOF_08     ,&#13;&#10;        @CSTCOF_09     varchar(03) = :CSTCOF_09     ,&#13;&#10;        @CSTCOF_10     varchar(03) = :CSTCOF_10     ,&#13;&#10;        @VI_MesAnterior integer    = :VI_MesAnterior,&#13;&#10;        @VI_Anoanterior integer    = :VI_AnoAnterior                                                                                                &#13;&#10;        &#13;&#10;SELECT   &#13;&#10;CADITE.ITE_CODIGO, CADITE.ITE_DESCRI, CADITE.ITE_REFERE, CADITE.ITE_UNIDAD,         &#13;&#10;CADITE.ITE_CODGRU, CADITE.ITE_CODSUB, CADITE.ITE_CODMAR, CADITE.ITE_CODSIM, &#13;&#10;CADITE.ITE_CODFAB, CADITE.ITE_ATIVO_, CADITE.ITE_NFENCM, CADGRU.GRU_DESCRI, &#13;&#10;CADSUB.SUB_DESCRI, CADITE.ITE_CODGRU,&#13;&#10;&#13;&#10;case @TipoCusto &#13;&#10;  when 0 then MOVPRE.MPR_PREFIN &#13;&#10;  when 1 then CADITE.ITE_CUSBRU&#13;&#10;  when 2 then CADITE.ITE_CUSREA&#13;&#10;  when 3 then CADITE_SALDOS_MES.ITS_CUSBRU&#13;&#10;  when 4 then CADITE_SALDOS_MES.ITS_CUSLIQ&#13;&#10;end as MPR_PREFIN,&#13;&#10;&#13;&#10;(select min(cbr_codbar) &#13;&#10; from CADCBR &#13;&#10; where ITE_CODIGO = CBR_CODITE) as CBR_CODBAR, &#13;&#10;&#13;&#10;dbo.FN_Total_Saldos(@CodEmpresa, CADITE.ITE_CODIGO, @VI_MesAnterior, @VI_Anoanterior) as EST_SALDOS,&#13;&#10;&#13;&#10;&#13;&#10;sum(COALESCE(CADEST.EST_ESTMIN,0)) AS EST_ESTMIN,&#13;&#10;&#13;&#10;(select coalesce(SUM(FDO_QTDITE),0) &#13;&#10; from fatdor &#13;&#10; where FDO_CODITE = CADITE.ITE_CODIGO) as TotConsig,&#13;&#10;&#13;&#10;case @Ordem &#13;&#10; when 0 then CADITE.ITE_DESCRI&#13;&#10; when 1 then STUFF(cast(ITE_CODIGO AS varchar(10)), 1, 0, REPLICATE('0', 10 - LEN(cast(ITE_CODIGO AS varchar(10))))) &#13;&#10;end Ordem&#13;&#10;&#13;&#10;FROM CADITE  &#13;&#10;LEFT JOIN CADGRU ON ITE_CODGRU = GRU_CODIGO  &#13;&#10;LEFT OUTER JOIN CADSUB ON ITE_CODSUB = SUB_CODIGO  &#13;&#10;LEFT OUTER JOIN MOVPRE ON ITE_CODIGO = MPR_CODITE AND &#13;&#10;                          MPR_CODPRE = @CodPreco  &#13;&#10;LEFT OUTER JOIN FORITE ON ITE_CODIGO = FIT_CODITE  &#13;&#10;LEFT OUTER JOIN CADEST ON ITE_CODIGO = EST_CODITE &#13;&#10;LEFT JOIN CADITE_SALDOS_MES on ITS_CODITE = ITE_CODIGO and &#13;&#10;                               its_mesref = @vi_mesanterior and &#13;&#10;                               ITS_ANOREF = @vi_anoanterior and &#13;&#10;                               (@CodEmpresa = 0 or its_codemp = @CodEmpresa)&#13;&#10;&#13;&#10;WHERE ((CADITE.ITE_UNIDAD = @Unidade) or (@Unidade = ''))&#13;&#10;  AND ((ITE_CODGRU = @CodGrupo) or (@CodGrupo = 0))&#13;&#10;  AND ((ITE_CODSUB = @CodSubGrupo) or (@CodSubGrupo = 0))&#13;&#10;  AND ((ITE_CODMAR = @CodMarca) or (@CodMarca = 0))&#13;&#10;  AND ((ITE_CODSIM = @CodSimilar) or (@CodSimilar = 0))&#13;&#10;  AND ((@CodEmpresa = 0) or (EST_CODEMP = @CodEmpresa ))      &#13;&#10;  AND ((FIT_CODFOR = @CodFornecedor) or (@CodFornecedor = 0))&#13;&#10;  and ((ITE_ATIVO_ = @Situacao) or (@Situacao = 2))  &#13;&#10;  and (((@VI_Mesanterior = 0 and @PosEstoque = 2) or &#13;&#10;        (@VI_Mesanterior = 0 and (@PosEstoque = 0 and dbo.FN_Total_Saldos(@CodEmpresa, CADITE.ITE_CODIGO, @VI_MesAnterior, @VI_Anoanterior) &#62; 0)) or &#13;&#10;        (@VI_Mesanterior = 0 and (@PosEstoque = 1 and dbo.FN_Total_Saldos(@CodEmpresa, CADITE.ITE_CODIGO, @VI_MesAnterior, @VI_Anoanterior) &#60;= 0))&#13;&#10;       )&#13;&#10;       or&#13;&#10;       ((@VI_Mesanterior &#62; 0 and @PosEstoque = 2) or &#13;&#10;        (@VI_Mesanterior &#62; 0 and (@PosEstoque = 0 and dbo.FN_Total_Saldos(@CodEmpresa, CADITE.ITE_CODIGO, @VI_MesAnterior, @VI_Anoanterior) &#62; 0)) or &#13;&#10;        (@VI_Mesanterior &#62; 0 and (@PosEstoque = 1 and dbo.FN_Total_Saldos(@CodEmpresa, CADITE.ITE_CODIGO, @VI_MesAnterior, @VI_Anoanterior) &#60;= 0))&#13;&#10;       )&#13;&#10;        or&#13;&#10;       ( (@PosEstoque = 3 and dbo.FN_Total_Saldos(@CodEmpresa, CADITE.ITE_CODIGO, @VI_MesAnterior, @VI_Anoanterior) &#60;&#62; 0)&#13;&#10;       )           &#13;&#10;      )&#13;&#10;&#13;&#10;&#13;&#10;  and ((ITE_CSTRIB IN (@CSTRIB_01, @CSTRIB_02, @CSTRIB_03, @CSTRIB_04, @CSTRIB_05,  &#13;&#10;                       @CSTRIB_06, @CSTRIB_07, @CSTRIB_08, @CSTRIB_09, @CSTRIB_10)) or (@CSTRIB_01 = ''))&#13;&#10;  and ((ITE_CSTPIS IN (@CSTPIS_01, @CSTPIS_02, @CSTPIS_03, @CSTPIS_04, @CSTPIS_05,  &#13;&#10;                       @CSTPIS_06, @CSTPIS_07, @CSTPIS_08, @CSTPIS_09, @CSTPIS_10)) or (@CSTPIS_01 = ''))&#13;&#10;  and ((ITE_CSTCOF IN (@CSTCOF_01, @CSTCOF_02, @CSTCOF_03, @CSTCOF_04, @CSTCOF_05,  &#13;&#10;                       @CSTCOF_06, @CSTCOF_07, @CSTCOF_08, @CSTCOF_09, @CSTCOF_10)) or (@CSTCOF_01 = ''))                      &#13;&#10;  and (ITS_MESREF = @VI_MesAnterior or @VI_MesAnterior = 0)&#13;&#10;  and (ITS_ANOREF = @VI_AnoAnterior or @VI_AnoAnterior = 0)&#13;&#10;  &#13;&#10;group by CADITE.ITE_CODIGO, CADITE.ITE_DESCRI, CADITE.ITE_REFERE, CADITE.ITE_UNIDAD,         &#13;&#10;         CADITE.ITE_CODGRU, CADITE.ITE_CODSUB, CADITE.ITE_CODMAR, CADITE.ITE_CODSIM, &#13;&#10;         CADITE.ITE_CODFAB, CADITE.ITE_ATIVO_, CADITE.ITE_NFENCM, CADGRU.GRU_DESCRI, &#13;&#10;         CADSUB.SUB_DESCRI, CADITE.ITE_CODGRU, cadite_saldos_mes.ITS_SALDOS,&#13;&#10; &#13;&#10;case @TipoCusto &#13;&#10;  when 0 then MOVPRE.MPR_PREFIN &#13;&#10;  when 1 then CADITE.ITE_CUSBRU&#13;&#10;  when 2 then CADITE.ITE_CUSREA&#13;&#10;  when 3 then CADITE_SALDOS_MES.ITS_CUSBRU&#13;&#10;  when 4 then CADITE_SALDOS_MES.ITS_CUSLIQ&#13;&#10;end&#13;&#10; &#13;&#10;ORDER BY CADITE.ITE_CODGRU, ordem  " CommandTimeout="1800" LockType="ltReadOnly" PropData="[encoded data, 6782 characters]"/>
    <TfrxADOQuery Name="QEmpresa" UserName="QEmpresa" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="select emp_nomemp &#13;&#10;from cademp &#13;&#10;where EMP_CODIGO=:CodEmpresa" CommandTimeout="1800" LockType="ltReadOnly" PropData="05704C6566740380000470546F70024C0A506172616D657465727301010649204E616D653D22436F64456D7072657361222044617461547970653D226674496E7465676572222045787072657373696F6E3D22262336303B436F64456D7072657361262336323B220000"/>
  </TfrxDataPage>
  <TfrxReportPage Name="Posicao_Estoque" Font.Charset="0" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxReportTitle Name="ReportTitle4" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="71,81101386" Left="0" Top="18,89765" Width="1046,92981" Stretched="True">
      <TfrxMemoView Name="Mem_Filtros" Align="baWidth" Left="64,25201" Top="41,79527559" Width="982,6778" Height="30,23624" StretchMode="smMaxHeight" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[&#60;Filtros&#62;]"/>
      <TfrxMemoView Name="Memo32" Align="baLeft" Left="0" Top="41,79527559" Width="64,25201" Height="30,23624" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="Filtros:"/>
      <TfrxMemoView Name="Memo119" Align="baRight" Left="960,00062" Top="15,88976378" Width="86,92919" Height="15,11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[IIF(&#60;RelReferencia&#62;='','','(Ref.:'+&#60;RelReferencia&#62;+')')]"/>
      <TfrxMemoView Name="Memo_Empresa" Left="0" Top="0" Width="820,15801" Height="18,89765" Font.Charset="0" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[QEmpresa.&#34;emp_nomemp&#34;]"/>
      <TfrxMemoView Name="Memo118" Left="0" Top="18,8976378" Width="445,98454" Height="22,67718" Font.Charset="0" Font.Color="0" Font.Height="-19" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="Posição de Estoque"/>
      <TfrxMemoView Name="Memo33" Align="baRight" Left="850,39425" Top="0,32282" Width="196,53556" Height="15,11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Emissão: [DATE] [TIME]"/>
    </TfrxReportTitle>
    <TfrxPageHeader Name="PH" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" Height="37,79527559" Left="0" ParentFont="False" Top="113,3859" Width="1046,92981">
      <TfrxMemoView Name="Memo120" Align="baLeft" Left="56,69295" Top="0" Width="94,48825" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Cód.Barras"/>
      <TfrxMemoView Name="Memo121" Align="baLeft" Left="238,11039" Top="0" Width="147,40167" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Descrição e Referência"/>
      <TfrxMemoView Name="Memo123" Align="baLeft" Left="385,51206" Top="0" Width="26,45671" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Un"/>
      <TfrxMemoView Name="Memo125" Align="baLeft" Left="627,40198" Top="0" Width="79,37013" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Preço"/>
      <TfrxMemoView Name="Memo124" Align="baLeft" Left="411,96877" Top="0" Width="75,5906" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="N C M"/>
      <TfrxMemoView Name="Memo153" Tag="1" Align="baLeft" Left="797,48083" Top="0" Width="83,14966" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Consignado"/>
      <TfrxMemoView Name="Memo22" Align="baLeft" Left="487,55937" Top="0" Width="139,84261" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Sub.Grupo"/>
      <TfrxMemoView Name="Memo27" Align="baLeft" Left="706,77211" Top="0" Width="90,70872" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Estoque"/>
      <TfrxMemoView Name="Memo7" Align="baLeft" Left="151,1812" Top="0" Width="86,92919" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Cód. Fabricante"/>
      <TfrxMemoView Name="Memo1" Align="baLeft" Left="975,11874" Top="0" Width="83,14966" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Total R$"/>
      <TfrxMemoView Name="Memo3" Tag="1" Align="baLeft" Left="880,63049" Top="0" Width="94,48825" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Total Qtde"/>
      <TfrxMemoView Name="Memo4" Align="baLeft" Left="0" Top="0" Width="56,69295" Height="37,79527559" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Código"/>
    </TfrxPageHeader>
    <TfrxGroupHeader Name="GH" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="22,67718" Left="0" Top="211,65368" Width="1046,92981" Condition="QPrincipal.&#34;ITE_CODGRU&#34;">
      <TfrxMemoView Name="Memo126" Left="0" Top="0" Width="623,62245" Height="22,67718" Font.Charset="1" Font.Color="0" Font.Height="-15" Font.Name="Courier New" Font.Style="1" ParentFont="False" VAlign="vaCenter" Text="[QPrincipal.&#34;ITE_CODGRU&#34;] - [QPrincipal.&#34;GRU_DESCRI&#34;]"/>
    </TfrxGroupHeader>
    <TfrxPageFooter Name="PF" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="15,11812" Left="0" Top="430,86642" Width="1046,92981">
      <TfrxSysMemoView Name="SysMemo12" Align="baWidth" Left="0" Top="0" Width="1046,92981" Height="15,11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Courier New" Font.Style="0" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="[PAGE#]/[TOTALPAGES#]"/>
    </TfrxPageFooter>
    <TfrxMasterData Name="MD" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="15,49606055" Left="0" Top="257,00804" Width="1046,92981" ColumnWidth="0" ColumnGap="0" DataSet="QPrincipal" DataSetName="QPrincipal" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Mem_ITE_DESCRI_REFERE" Align="baLeft" Left="241,88992" Top="0" Width="143,62214" Height="15,11812" StretchMode="smMaxHeight" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[QPrincipal.&#34;ITE_DESCRI&#34;] [QPrincipal.&#34;ITE_REFERE&#34;]"/>
      <TfrxMemoView Name="Mem_ITE_UNIDAD" Align="baLeft" Left="385,51206" Top="0" Width="26,45671" Height="15,11812" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[QPrincipal.&#34;ITE_UNIDAD&#34;]"/>
      <TfrxMemoView Name="Mem_MPR_PREFIN" Align="baLeft" Left="631,18151" Top="0" Width="79,37013" Height="15,11812" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QPrincipal.&#34;MPR_PREFIN&#34;]"/>
      <TfrxMemoView Name="Mem_ITE_NFENCM" Align="baLeft" Left="411,96877" Top="0" Width="75,5906" Height="15,11812" DisplayFormat.FormatStr="%2.2n" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[QPrincipal.&#34;ITE_NFENCM&#34;]"/>
      <TfrxMemoView Name="Mem_Total" Align="baLeft" Left="978,89827" Top="0" Width="83,14966" Height="15,11812" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[&#60;QPrincipal.&#34;EST_SALDOS&#34;&#62;*&#60;QPrincipal.&#34;MPR_PREFIN&#34;&#62;]"/>
      <TfrxMemoView Name="Pos_Est_SubGrupo" Align="baLeft" Left="487,55937" Top="0" Width="143,62214" Height="15,11812" StretchMode="smMaxHeight" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[IIF(&#60;QPrincipal.&#34;ITE_CODSUB&#34;&#62;&#60;&#62;0,IntToStr(&#60;QPrincipal.&#34;ITE_CODSUB&#34;&#62;)+' - '+&#60;QPrincipal.&#34;SUB_DESCRI&#34;&#62;,'')]"/>
      <TfrxMemoView Name="Mem_EST_SALDOS" Align="baLeft" Left="710,55164" Top="0" Width="90,70872" Height="15,11812" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QPrincipal.&#34;EST_SALDOS&#34;]"/>
      <TfrxMemoView Name="Mem_CBR_CODBAR" Align="baLeft" Left="56,69295" Top="0" Width="98,26778" Height="15,11812" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[QPrincipal.&#34;CBR_CODBAR&#34;]"/>
      <TfrxMemoView Name="Mem_ITE_CODFAB" Align="baLeft" Left="154,96073" Top="0" Width="86,92919" Height="15,11812" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[QPrincipal.&#34;ITE_CODFAB&#34;]"/>
      <TfrxMemoView Name="Mem_TotConsig" Tag="1" Align="baLeft" Left="801,26036" Top="0" Width="83,14966" Height="15,11812" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QPrincipal.&#34;TotConsig&#34;]"/>
      <TfrxMemoView Name="Mem_Total_Qtde" Tag="1" Align="baLeft" Left="884,41002" Top="0" Width="94,48825" Height="15,11812" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[&#60;QPrincipal.&#34;EST_SALDOS&#34;&#62;+&#60;QPrincipal.&#34;TotConsig&#34;&#62;]"/>
      <TfrxMemoView Name="QPrincipalITE_CODIGO" Align="baLeft" Left="0" Top="0" Width="56,69295" Height="15,1181102362205" DataField="ITE_CODIGO" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[QPrincipal.&#34;ITE_CODIGO&#34;]"/>
    </TfrxMasterData>
    <TfrxGroupFooter Name="GF" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="18,89765" Left="0" Top="294,80334" Width="1046,92981">
      <TfrxMemoView Name="Memo30" Align="baWidth" Left="0" Top="0" Width="695,43352" Height="18,89765" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="Total Grupo "/>
      <TfrxSysMemoView Name="SysMemo4" Align="baRight" Left="963,78015" Top="0" Width="83,14966" Height="18,89765" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;QPrincipal.&#34;EST_SALDOS&#34;&#62;*&#60;QPrincipal.&#34;MPR_PREFIN&#34;&#62;,MD)]"/>
      <TfrxMemoView Name="Memo6" Tag="1" Align="baRight" Left="869,2919" Top="0" Width="94,48825" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="[Sum(&#60;QPrincipal.&#34;EST_SALDOS&#34;&#62;+&#60;QPrincipal.&#34;TotConsig&#34;&#62;,MD)]"/>
      <TfrxMemoView Name="Memo8" Tag="1" Align="baRight" Left="786,14224" Top="0" Width="83,14966" Height="18,89765" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="[Sum(&#60;QPrincipal.&#34;TotConsig&#34;&#62;,MD)]"/>
      <TfrxMemoView Name="Memo11" Align="baRight" Left="695,43352" Top="0" Width="90,70872" Height="18,89765" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="[Sum(&#60;QPrincipal.&#34;EST_SALDOS&#34;&#62;,MD)]"/>
    </TfrxGroupFooter>
    <TfrxFooter Name="F" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="34,01577" Left="0" Top="336,37817" Width="1046,92981">
      <TfrxMemoView Name="Memo19" Tag="1" Align="baRight" Left="653,85869" Top="12" Width="192,75603" Height="18,89765" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[Sum(&#60;QPrincipal.&#34;EST_SALDOS&#34;&#62;+&#60;QPrincipal.&#34;TotConsig&#34;&#62;,MD)]"/>
      <TfrxSysMemoView Name="SysMemo5" Align="baRight" Left="846,61472" Top="12" Width="200,31509" Height="18,89765" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;QPrincipal.&#34;EST_SALDOS&#34;&#62;*&#60;QPrincipal.&#34;MPR_PREFIN&#34;&#62;,MD)]"/>
      <TfrxMemoView Name="Memo5" Tag="1" Align="baRight" Left="415,7483" Top="12" Width="238,11039" Height="18,89765" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[Sum(&#60;QPrincipal.&#34;TotConsig&#34;&#62;,MD)]"/>
      <TfrxMemoView Name="Memo9" Align="baRight" Left="41,57483" Top="12" Width="120,94496" Height="18,89765" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" HAlign="haRight" ParentFont="False" Text="Total Geral "/>
      <TfrxMemoView Name="Memo10" Align="baRight" Left="162,51979" Top="12" Width="253,22851" Height="18,89765" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="1" HAlign="haRight" ParentFont="False" Text="[Sum(&#60;QPrincipal.&#34;EST_SALDOS&#34;&#62;,MD)]"/>
      <TfrxMemoView Name="Memo2" Align="baRight" Left="574,48856" Top="6" Width="472,44125" Height="3,77953" Font.Charset="0" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text=""/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
