AgPack_Confirmar_Chamado_Orcamento.php:            $sIns = "insert into FIN_Titulos (jTipo,pCedente,sDescricao,tVenc,nVenc,sDoc,iNrPrest,iPrest,pInc) values (0,$pCLI,'$sCLI','$dVencVal',$nValParc,$pPId,$iNrPrest,$i,$psLogin)";
CanalWeb_RelFinanceiro.php:           from FIN_Titulos a      join CUP                       b on a.pCedente = b.pPId and b.iVer = b.iVAt
CanalWeb_RelFinanceiro.php:                              left join FIN_Titulos_CContabil     e on e.pTFin    = a.pPId and e.iVer = e.iVAt
CargaAcordos_CCustos.php:      $sSql   = "select pPId from FIN_Titulos where iVer = iVAt and lExc = 0 and jTipo=1 and pAcordo=$pAcordo order by pPId";
CargaAcordos_CCustos.php:          $sSql = "update FIN_Titulos_CCusto set nValP=$nValP where pTFin = $pTFin and lExc=0 and iver=ivat and pCCusto=$pCCusto ;";
CargaFin_TitulosCedenteSacado.php:   $sSql = "select pPId,pCedente,pSacado from FIN_Titulos where lExc=0 and iVer=iVAt and jTipo=1" ;
CargaFin_TitulosCedenteSacado.php:     $pFin_Titulos  = $aLin[0];
CargaFin_TitulosCedenteSacado.php:     $sSql = "update Fin_Titulos set pCedente=$pCedente,pSacado=$pSacado where pPId = $pFin_Titulos and jTipo=1 and lExc=0 and iver=ivat";
CargaLotes_PreNF_Itens_Lotes.php:   $sSql = "select pPId,pCedente,pSacado from FIN_Titulos where lExc=0 and iVer=iVAt and jTipo=1" ;
CargaLotes_PreNF_Itens_Lotes.php:     $pFin_Titulos  = $aLin[0];
CargaLotes_PreNF_Itens_Lotes.php:     $sSql = "update Fin_Titulos set pCedente=$pCedente,pSacado=$pSacado where pPId = $pFin_Titulos and jTipo=1 and lExc=0 and iver=ivat";
CargaMovCCCUP.php:   $sSql = "select pPId,jTipo,pCedente from FIN_Titulos where iver=ivat and lExc=0";
Carga_tEnvCnab.php:   $sSql = "update FIN_TITULOS set tEnvCnab='$tInc' where pPId=$pFin and iver=ivat";
CNAB400_Bradesco.php:                from Fin_Titulos    a,
CNAB400_Bradesco.php:               $sUpd = "update FIN_Titulos set tEnvCnab='now' where pPId=".$sLin[0]." and iVer=iVAt";
CNAB400_Itau.php:                from Fin_Titulos    a,
CNAB400_Itau.php:               $sUpd = "update FIN_Titulos set tEnvCnab='now' where pPId=".$sLin[0]." and iVer=iVAt";
CNAB400_Santander.php:                from Fin_Titulos    a,
CNAB400_Santander.php:               $sUpd = "update FIN_Titulos set tEnvCnab='now' where pPId=".$sLin[0]." and iVer = iVAt";
Comercial_BloquearClientes.php:              from FIN_Titulos a,
EDI_CISP_280_TQ.php:               $sUpd = "update FIN_Titulos set tEnvCnab='now' where PPID=$sLin[0] and iver=ivat";
EDI_Nemag.php:               $sUpd = "update FIN_Titulos set tEnvCnab='now' where pPId=".$sLin[0]." and iVer=iVAt";
FIN_AgendarContaEmQuestao.php:   $sSql   = "select tPgmto,tCanc from FIN_Titulos where pPId=$pDoc and iVer=iVAt";
FIN_AgendarContaEmQuestao.php:               $lOk = flNovaVersaoRegistro($hDb,'FIN_Titulos',$pDoc);
FIN_AgendarContaEmQuestao.php:               $sSql = "update FIN_Titulos set tAgend='$dAge',pAgend=$psLogin,pInc=$psLogin,tInc='now' where pPId=$pDoc and iVer=iVAt";
FIN_CancelarContaEmQuestao.php:   $sSql   = "select tPgmto,tCanc from FIN_Titulos where pPId=$pDoc and iVer=iVAt";
FIN_CancelarContaEmQuestao.php:               $lOk = flNovaVersaoRegistro($hDb,'FIN_Titulos',$pDoc);
FIN_CancelarContaEmQuestao.php:               $sSql = "update FIN_Titulos set tDescanc='null',pDescanc=0,sDescMotivo='',tCanc='now',pCanc=$psLogin,sVer='Cancelamento do Ttulo',sMotivo='$sTxt',pInc=$psLogin,tInc='now' where pPId=$pDoc and iVer=iVAt";
FIN_CargaAcordos_CCustos.php:      $sSqlTit = "select pPId from FIN_Titulos where iVer = iVAt and lExc = 0 and pAcordo=$pTFin order by pPId";
FIN_CargaAcordos_CCustos.php:             $sSql = "update FIN_Titulos_CCusto set nValP=$nValP where pTFin = $pTit and lExc=0 and iver=ivat and pCCusto=$pCCusto ;";
FIN_CargaAcordos_ContasContabil.php:      $sSqlTit = "select pPId from FIN_Titulos where iVer = iVAt and lExc = 0 and pAcordo=$pTFin order by pPId";
FIN_CargaAcordos_ContasContabil.php:             $sSql = "update FIN_Titulos_CContabil set pCPla=$pCPla where pTFin = $pTit and lExc=0 and iver=ivat;";
FIN_Comissao_Fechamento.php:               $sTab   = 'Fin_Titulos';
FIN_Comissao_Fechamento.php:                  $sSql   = 'select GEN_ID(Fin_Titulos, 0) from RDB$DATABASE';
FIN_Comissao_Fechamento.php:fpc_append($sEcoTxt,"Fin_Titulos - gen_id = $pMax");
FIN_Comissao_Fechamento.php:                  $sSql  = "select max (pPId) from Fin_Titulos where pPId>=$pMax-100 and pIn0=$psLogin and iVer=iVAt";
FIN_Comissao_Fechamento.php:fpc_append($sEcoTxt,"Fin_Titulos - max    = $sSql");
FIN_Comissao_Fechamento.php:fpc_append($sEcoTxt,"Fin_Titulos - pTFin  = $pTFin");
FIN_Comissao_Fechamento.php:                  $sSql = "insert into FIN_Titulos_CCusto (pCCusto,fCCusto,pTFin,fTFin,nValPCCus,nValMCCus) values ($pCCusto,$fCCusto,$pTFin,1,$nRatCCusto,$nValCCusto)";
FIN_Comissao_Fechamento.php:fpc_append($sEcoTxt,"insert into FIN_Titulos_CCusto = $sSql");
FIN_Comissao_Fechamento.php:                  $sSql = "insert into FIN_Titulos_CContabil (pCPla,fCPla,pTFin,fTFin,lDeb,nValPCContC,nValMCContC,nValPCContD,nValMCContD) values ($pCPla,$fCPla,$pTFin,1,$lDeb,$nRatCredCPla,$nValCredCPla,$nRatDebCPla,$nValDebCPla)";
FIN_Comissao_Fechamento.php:fpc_append($sEcoTxt,'insert FIN_Titulos_CContabil = '.$sSql);
FIN_ConfirmarTransfCC.php:         $sSql = "update FIN_Titulos set lPrevisao=0,lPgmto=1,nPgmto=$nVenc,tPgmto='$tAge',sVer=sVer||'-Confirmao da Transferencia por $sUserName' where pTransf=$pTransf and iVer=iVAt";
FIN_ConfirmarTransfCC.php://         $sSql = "update FIN_Titulos set lPrevisao=0,lPgmto=1,nPgmto=$nVenc,tPgmto='$tAge',sVer='Confirmao da Transferencia' where pTransf=$pTransf and iVer=iVAt";
FIN_ConfirmarTransfCC.php:            $sSql    = "select pPId from FIN_Titulos where pTransf=$pTransf and iVer=iVAt and jTipo=0";
FIN_ConfirmarTransfCC.php:            $sSql    = "select pPId from FIN_Titulos where pTransf=$pTransf and iVer=iVAt and jTipo=1";
FIN_DescancelarContaEmQuestao.php:   $sSql   = "select tCanc,tDescanc from FIN_Titulos where pPId=$pDoc and iVer=iVAt";
FIN_DescancelarContaEmQuestao.php:               $lOk = flNovaVersaoRegistro($hDb,'FIN_Titulos',$pDoc);
FIN_DescancelarContaEmQuestao.php:               $sSql = "update FIN_Titulos set tCanc='null',pCanc=0,sMotivo='',tDescanc='now',pDescanc=$psLogin,sVer='Descancelamento do Ttulo',sDescMotivo='$sTxt',pInc=$psLogin,tInc='now' where pPId=$pDoc and iVer=iVAt";
FIN_GastosOrcamentos.php:             from FIN_Titulos            a,
FIN_GastosOrcamentos.php:                  FIN_Titulos_CContabil  b,
FIN_GastosOrcamentos.php:                                                       left join FIN_Titulos            a  on a.tCanc is null  
FIN_GastosOrcamentos.php:                                                       left join FIN_Titulos_CContabil  b  on b.pCPla = c.pPId 
FIN_ImprimirEasy.php:                from  FIN_Titulos a  left join CUP     b  on a.pCedente = b.pPId and b.iVer = b.iVAt
FIN_ImprimirEasy.php:      $sQry2 = "select sum(a.nVenc),sum(a.nPgmto) from FIN_Titulos a where  a.iVer = a.iVAt and a.lExc=0 $sWhr";
FIN_ImprimirEasy.php:      $sQry2 = "select extract(month from a.tPgmto),extract(year from a.tPgmto),sum(a.jTipo*a.nPgmto),sum((1-a.jTipo)*a.nPgmto) from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr group by 1,2 order by 2,1";
FIN_ImprimirEasy.php:      $sQry2 = "select sum(a.jTipo*a.nVenc) ,sum((1-a.jTipo)*a.nVenc)  from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr";
FIN_ImprimirEasy.php:      $sQry2 = "select sum(a.jTipo*a.nPgmto),sum((1-a.jTipo)*a.nPgmto) from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr";
FIN_ImprimirEasy.php:      $sQry  = "select extract(month from a.tVenc)  ,extract(year from a.tVenc) ,sum(a.jTipo*a.nVenc) ,sum((1-a.jTipo)*a.nVenc),0,0 from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr group by 1,2 order by 2,1";
FIN_ImprimirEasy.php:                from  FIN_Titulos a left join FIN_Titulos_CCusto b on b.pTFin   = a.pPId and b.iVer = b.iVAt
FIN_ImprimirEasy.php:                from  FIN_Titulos a left join FIN_Titulos_CContabil b on b.pTFin   = a.pPId and b.iVer = b.iVAt
FIN_ImprimirEasy.php:                from  FIN_Titulos a left join FIN_Titulos_CC        b on b.pTFin   = a.pPId and b.iVer = b.iVAt
FIN_Imprimir.php:                from  FIN_Titulos a  left join CUP     b  on a.pCedente = b.pPId and b.iVer = b.iVAt
FIN_Imprimir.php:      $sQry2 = "select sum(a.nVenc),sum(a.nPgmto) from FIN_Titulos a where  a.iVer = a.iVAt and a.lExc=0 $sWhr";
FIN_Imprimir.php:      $sQry2 = "select extract(month from a.tPgmto),extract(year from a.tPgmto),sum(a.jTipo*a.nPgmto),sum((1-a.jTipo)*a.nPgmto) from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr group by 1,2 order by 2,1";
FIN_Imprimir.php:      $sQry2 = "select sum(a.jTipo*a.nVenc) ,sum((1-a.jTipo)*a.nVenc)  from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr";
FIN_Imprimir.php:      $sQry2 = "select sum(a.jTipo*a.nPgmto),sum((1-a.jTipo)*a.nPgmto) from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr";
FIN_Imprimir.php:      $sQry  = "select extract(month from a.tVenc)  ,extract(year from a.tVenc) ,sum(a.jTipo*a.nVenc) ,sum((1-a.jTipo)*a.nVenc),0,0 from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr group by 1,2 order by 2,1";
FIN_Imprimir.php:                from  FIN_Titulos a left join FIN_Titulos_CCusto b on b.pTFin   = a.pPId and b.iVer = b.iVAt
FIN_Imprimir.php:                from  FIN_Titulos a left join FIN_Titulos_CContabil b on b.pTFin   = a.pPId and b.iVer = b.iVAt
FIN_Imprimir.php:                from  FIN_Titulos a left join FIN_Titulos_CC        b on b.pTFin   = a.pPId and b.iVer = b.iVAt
FIN_Imprimir_Spazio.php:             from  FIN_Titulos a  left join CUP     b  on a.pCedente = b.pPId and b.iVer = b.iVAt
FIN_LancarTitulosAPartirDoAcordo.php:         $sIns = fsArrToInsert('FIN_Titulos',$aIns);
FIN_LancarTitulosAPartirDoAcordo.php:         $sSql = "select max(pPId) from FIN_Titulos where tInc>'$tOntem' and pInc=$psLogin";
FIN_LancarTitulosAPartirDoAcordo.php:            $sIns = fsArrToInsert('FIN_Titulos_CCusto',$aIns);
FIN_LancarTitulosAPartirDoAcordo.php:            $sIns = fsArrToInsert('FIN_Titulos_CC',$aIns);
FIN_LancarTitulosAPartirDoAcordo.php:            $sIns = fsArrToInsert('FIN_Titulos_CContabil',$aIns);
FIN_LiberarPagEmRestricao.php:   $sSql   = "select tLibRestr,tRestr,lPrevisao from FIN_Titulos where pPId=$pDoc and iVer=iVAt";
FIN_LiberarPagEmRestricao.php:                  $sSql = "update FIN_Titulos set tLibRestr='now',pLibRestr=$psLogin where pPId=$pDoc and iVer=iVAt";
FIN_LOGFretes_Fechamento.php:               $sTab   = 'Fin_Titulos';
FIN_LOGFretes_Fechamento.php:                  $sSql   = 'select GEN_ID(Fin_Titulos, 0) from RDB$DATABASE';
FIN_LOGFretes_Fechamento.php:fpc_append($sEcoTxt,"Fin_Titulos - gen_id = $pMax");
FIN_LOGFretes_Fechamento.php:                  $sSql  = "select max (pPId) from Fin_Titulos where pPId>=$pMax-100 and pIn0=$psLogin and iVer=iVAt";
FIN_LOGFretes_Fechamento.php:fpc_append($sEcoTxt,"Fin_Titulos - max    = $sSql");
FIN_LOGFretes_Fechamento.php:fpc_append($sEcoTxt,"Fin_Titulos - pTFin  = $pTFin");
FIN_LOGFretes_Fechamento.php:                  $sSql = "insert into FIN_Titulos_CCusto (pCCusto,fCCusto,pTFin,fTFin,nValPCCus,nValMCCus) values ($pCCusto,$fCCusto,$pTFin,1,$nRatCCusto,$nValCCusto)";
FIN_LOGFretes_Fechamento.php:fpc_append($sEcoTxt,"insert into FIN_Titulos_CCusto = $sSql");
FIN_LOGFretes_Fechamento.php:                  $sSql = "insert into FIN_Titulos_CContabil (pCPla,fCPla,pTFin,fTFin,lDeb,nValPCContC,nValMCContC,nValPCContD,nValMCContD) values ($pCPla,$fCPla,$pTFin,1,$lDeb,$nRatCredCPla,$nValCredCPla,$nRatDebCPla,$nValDebCPla)";
FIN_LOGFretes_Fechamento.php:fpc_append($sEcoTxt,'insert FIN_Titulos_CContabil = '.$sSql);
FIN_QuitarContaEmQuestao_MT.php:   // Query Capa FIN_Titulos
FIN_QuitarContaEmQuestao_MT.php:   $sSql       = "select lPgmto,sDoc,jTipo,nPgmto,iPrest,iNrPrest,pCedente,pSacado,sDescricao,pCC,pOrdem,fOrdem,pPreNF,fPreNF,pContr,fContr,tCanc,iVer,tPgmto,tRestr,tLibRestr,pComissao from FIN_Titulos where pPId = $sId and iVer=iVAt";
FIN_QuitarContaEmQuestao_MT.php:         $sTab = 'FIN_Titulos';
FIN_QuitarContaEmQuestao_MT.php:         $sSql = fsArrToUpdate('FIN_Titulos',$aUpd,"pPId=$sId and iVer=iVAt");
FIN_QuitarContaEmQuestao_TQ.php:   // Query Capa FIN_Titulos
FIN_QuitarContaEmQuestao_TQ.php:   $sSql       = "select lPgmto,sDoc,jTipo,nPgmto,iPrest,iNrPrest,pCedente,pSacado,sDescricao,pCC,pOrdem,fOrdem,pPreNF,fPreNF,pContr,fContr,tCanc,iVer,tPgmto,tRestr,tLibRestr,pComissao from FIN_Titulos where pPId = $sId and iVer=iVAt";
FIN_QuitarContaEmQuestao_TQ.php:         $sTab = 'FIN_Titulos';
FIN_QuitarContaEmQuestao_TQ.php:         $sSql = fsArrToUpdate('FIN_Titulos',$aUpd,"pPId=$sId and iVer=iVAt");
FIN_QuitarContasCNAB400_TQ.php:      // Query Capa FIN_Titulos
FIN_QuitarContasCNAB400_TQ.php:                           FIN_Titulos     b
FIN_QuitarContasCNAB400_TQ.php:               $sTab = 'FIN_Titulos';
FIN_QuitarContasCNAB400_TQ.php:               $sSql   = fsArrToUpdate('FIN_Titulos',$aUpd,"pPId=$pTitDaVez and iVer=iVAt");
FIN_QuitarContasMarcadas_CNAB400_TQ-NAOUSADO.php:      // Query Capa FIN_Titulos
FIN_QuitarContasMarcadas_CNAB400_TQ-NAOUSADO.php:                        from FIN_Titulos 
FIN_QuitarContasMarcadas_CNAB400_TQ-NAOUSADO.php:                        from FIN_Titulos 
FIN_QuitarContasMarcadas_CNAB400_TQ-NAOUSADO.php:            $sTab = 'FIN_Titulos';
FIN_QuitarContasMarcadas_CNAB400_TQ-NAOUSADO.php:            $sSql   = fsArrToUpdate('FIN_Titulos',$aUpd,"pPId=$pTitDaVez and iVer=iVAt");
FIN_QuitarContasMarcadas_MT.php:      // Query Capa FIN_Titulos
FIN_QuitarContasMarcadas_MT.php:      $sSql       = "select pPId,sDoc,jTipo,nVenc,iPrest,iNrPrest,pCedente,pSacado,sDescricao,pCC,pOrdem,fOrdem,pPreNF,fPreNF,pContr,fContr,tCanc,iVer,tRestr,tLibRestr,tPgmto,lPgmto,pComissao from FIN_Titulos where pPId in ($psMarcados) and iVer=iVAt and lPrevisao=0 and tPgmto is null and pCapa=0";
FIN_QuitarContasMarcadas_MT.php:               $sTab = 'FIN_Titulos';
FIN_QuitarContasMarcadas_MT.php:               $sSql   = fsArrToUpdate('FIN_Titulos',$aUpd,"pPId=$pTitDaVez and iVer=iVAt");
FIN_QuitarContasMarcadas_TQ.php:      // Query Capa FIN_Titulos
FIN_QuitarContasMarcadas_TQ.php:                        from FIN_Titulos 
FIN_QuitarContasMarcadas_TQ.php:                        from FIN_Titulos 
FIN_QuitarContasMarcadas_TQ.php:               $sTab = 'FIN_Titulos';
FIN_QuitarContasMarcadas_TQ.php:               $sSql   = fsArrToUpdate('FIN_Titulos',$aUpd,"pPId=$pTitDaVez and iVer=iVAt");
FIN_RateioImcomp_CCusto.php:            from FIN_Titulos_CCusto    a,
FIN_RateioImcomp_CCusto.php:                 FIN_Titulos           b,
FIN_RateioImcomp_PlanosContas.php:               from FIN_Titulos_CContabil a,
FIN_RateioImcomp_PlanosContas.php:                    FIN_Titulos           b,
FIN_Rel_FluxoCaixa.php:               from FIN_Titulos a
FIN_Rel_FluxoCaixa.php:               from FIN_Titulos a
FIN_Rel_FluxoCaixa.php:               from FIN_Titulos a
FIN_Rel_FluxoCaixa.php:               from FIN_Titulos a
FIN_Rel_FluxoCaixa_versaoA.php:            from FIN_Titulos a
FIN_Rel_FluxoCaixa_versaoA.php:            from FIN_Titulos a
FIN_Rel_Padrao2.php:                from  FIN_Titulos a  left join CUP     b  on a.pCedente = b.pPId and b.iVer = b.iVAt
FIN_Rel_Padrao2.php:                from  FIN_Titulos a  left join CUP     b  on a.pCedente = b.pPId and b.iVer = b.iVAt
FIN_Rel_Padrao2.php:                from FIN_Titulos
FIN_Rel_Padrao2.php:                    FIN_Titulos i
FIN_Rel_Padrao2.php:                     from  FIN_Titulos_CCusto a,
FIN_Rel_Padrao2.php:                     from  FIN_Titulos_CContabil a,
FIN_Rel_Padrao_TQ.php:                from  FIN_Titulos a  left join CUP     b  on a.pCedente = b.pPId and b.iVer = b.iVAt
FIN_Rel_Padrao_TQ.php:                from FIN_Titulos
FIN_Rel_Padrao_TQ.php:                     from  FIN_Titulos_CCusto a,
FIN_Rel_Padrao_TQ.php:                     from  FIN_Titulos_CContabil a,
FIN_Rel_Saldos_Titulos.php:                from  FIN_Titulos a  left join CUP     b  on a.pCedente = b.pPId and b.iVer = b.iVAt
FIN_Rel_Saldos_Titulos.php:                from  FIN_Titulos a  left join CUP     b  on a.pCedente = b.pPId and b.iVer = b.iVAt
FIN_Rel_Saldos_Titulos.php:                from FIN_Titulos a
FIN_Rel_Saldos_Titulos.php:                    FIN_Titulos i
FIN_Rel_Saldos_Titulos.php:                     from  FIN_Titulos_CCusto a,
FIN_Rel_Saldos_Titulos.php:                     from  FIN_Titulos_CContabil a,
FIN_SomaMarcados.php:   $sSql    = "select sum(nVenc) from FIN_Titulos where pPid in ($sMarcados) and iVer=iVAt";
FIN_Titulos_Boletos.php:   $sSqlMsg   = "select pPId,pCC,pTipoCob from Fin_Titulos where iVer = iVAt and pPId in ($sMarcados) and lExc=0";
FIN_Titulos_Boletos.php:      // Query  que le Fin_titulos
FIN_Titulos_Boletos.php:                from Fin_Titulos    a       join CUP            b   on a.pCedente = b.pPId  and b.iVer = a.fCedente 
FIN_Titulos_Boletos.php:            $sSql = "update FIN_Titulos set tEnvBol='now',pEnvBol=$psLogin where pPId=".$aLin[strtoupper("iNrControl")]." and iVer=iVAt";
NA_Liberar.php:                  $sSql = "update FIN_Titulos set tLibRestr='now', pLibRestr=$psLogin where pOrdem=$pNADoc and iVer=iVAt and lPrevisao=1";
NA_Ordens.php:         $sSql = "select pPId from FIN_Titulos where pPreNF=$pPreNF and iVer=iVAt and lExc=0 and tRestr is not null and tLibRestr is null";
NA_RFiFiFi.php:         $sSql = "select pPId from FIN_Titulos where pPreNF=$pPreNF and iVer=iVAt and lExc=0 and tRestr is not null and tLibRestr is null";
NFCapa_ConfirmarII.php:                        $sTab     = 'FIN_Titulos';
NFCapa_ConfirmarII.php:                           fpc_append($sEcoTxt,"insert FIN_Titulos = $sIns");
NFCapa_ConfirmarII.php:      $sSql = "select tPgmto from Fin_Titulos where pNFe=$pDoc and iVer = iVAt";
NFCapa_ConfirmarII.php:      fpc_append($sEcoTxt,"Sql Fin_Titulos = $sSql");
NFCapa_ConfirmarII.php:               $sSql = "delete from FIN_Titulos where pNFe=$pNF and iIde_nNF=$iIde_nNF";
NFCapa_ConfirmarII.php:               fpc_append($sEcoTxt,"Delete FIN_Titulos = $sSql");
OEnt_Cancelar_RFiFiFi.php:               $sSql = "select pPId from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1 and iVer=iVAt";
OEnt_Cancelar_RFiFiFi.php:                     $sSql    = "delete from FIN_Titulos_CCusto where pTFin=$pTmpFin";
OEnt_Cancelar_RFiFiFi.php:                     $sSql    = "delete from FIN_Titulos_CContabil where pTFin=$pTmpFin";
OEnt_Cancelar_RFiFiFi.php:                  $sSql = "delete from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1";
OEnt_Cancelar_RFiFiFi.php:               $sSql = "select pPId from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1 and iVer=iVAt";
OEnt_Cancelar_RFiFiFi.php:                     $sSql    = "delete from FIN_Titulos_CCusto where pTFin=$pTmpFin";
OEnt_Cancelar_RFiFiFi.php:                     $sSql    = "delete from FIN_Titulos_CContabil where pTFin=$pTmpFin";
OEnt_Cancelar_RFiFiFi.php:                  $sSql = "delete from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1";
OEnt_Confirmar_RFinanceiro.php:   Para cada uma  a) inserir em Fin_Titulos
OEnt_Confirmar_RFinanceiro.php:         $sSql = "select pPId from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1 and iVer=iVAt";
OEnt_Confirmar_RFinanceiro.php:               $sSql    = "delete from FIN_Titulos_CCusto where pTFin=$pTmpFin";
OEnt_Confirmar_RFinanceiro.php:               $sSql    = "delete from FIN_Titulos_CContabil where pTFin=$pTmpFin";
OEnt_Confirmar_RFinanceiro.php:            $sSql = "delete from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1";
OEnt_Confirmar_RFinanceiro.php:            $sTab     = 'FIN_Titulos';
OEnt_Confirmar_RFinanceiro.php:               fpc_append($sEcoTxt,"insert FIN_Titulos = $sSql");
OEnt_Confirmar_RFinanceiro.php:               $sSql  = "select max(pPId) from FIN_Titulos where pPId>=$pMax and pInc=$psLogin and iVer=iVAt";
OEnt_Confirmar_RFinanceiro.php:               // SOA FIN_Titulos - CCusto
OEnt_Confirmar_RFinanceiro.php:                     $sSql = "insert into FIN_Titulos_CCusto (sVer,pInc,pCCusto,fCCusto,pTFin,fTFin,nValPCCus,nValMCCus) values ('$sEcoTxt',$psLogin,$pCCusto,$fCCusto,$pTFin,1,$nRatCCusto,$nValCCusto)";
OEnt_Confirmar_RFinanceiro.php:                     fpc_append($sEcoTxt,"insert into FIN_Titulos_CCusto = $sSql");
OEnt_Confirmar_RFinanceiro.php:               // SOA FIN_Titulos - CContabil
OEnt_Confirmar_RFinanceiro.php:                     $sSql = "insert into FIN_Titulos_CContabil (sVer,pInc,pCPla,fCPla,pTFin,fTFin,lDeb,nValPCContC,nValMCContC,nValPCContD,nValMCContD) values ('$sEcoTxt',$psLogin,$pCPla,$fCPla,$pTFin,1,$lDeb,$nRatCredCPla,$nValCredCPla,$nRatDebCPla,$nValDebCPla)";
OEnt_Confirmar_RFinanceiro.php:                     fpc_append($sEcoTxt,"insert FIN_Titulos_CContabil = $sSql");
OEnt_Confirmar_RFinanceiro_TQ.php:   Para cada uma  a) inserir em Fin_Titulos
OEnt_Confirmar_RFinanceiro_TQ.php:         $sSql = "select pPId from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1 and iVer=iVAt";
OEnt_Confirmar_RFinanceiro_TQ.php:               $sSql    = "delete from FIN_Titulos_CCusto where pTFin=$pTmpFin";
OEnt_Confirmar_RFinanceiro_TQ.php:               $sSql    = "delete from FIN_Titulos_CContabil where pTFin=$pTmpFin";
OEnt_Confirmar_RFinanceiro_TQ.php:            $sSql = "delete from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1";
OEnt_Confirmar_RFinanceiro_TQ.php:            $sTab     = 'FIN_Titulos';
OEnt_Confirmar_RFinanceiro_TQ.php:               fpc_append($sEcoTxt,"insert FIN_Titulos = $sSql");
OEnt_Confirmar_RFinanceiro_TQ.php:               $sSql  = "select max(pPId) from FIN_Titulos where pPId>=$pMax and pInc=$psLogin and iVer=iVAt";
OEnt_Confirmar_RFinanceiro_TQ.php:               // SOA FIN_Titulos - CCusto
OEnt_Confirmar_RFinanceiro_TQ.php:                     $sSql = "insert into FIN_Titulos_CCusto (sVer,pInc,pCCusto,fCCusto,pTFin,fTFin,nValPCCus,nValMCCus) values ('$sEcoTxt',$psLogin,$pCCusto,$fCCusto,$pTFin,1,$nRatCCusto,$nValCCusto)";
OEnt_Confirmar_RFinanceiro_TQ.php:                     fpc_append($sEcoTxt,"insert into FIN_Titulos_CCusto = $sSql");
OEnt_Confirmar_RFinanceiro_TQ.php:               // SOA FIN_Titulos - CContabil
OEnt_Confirmar_RFinanceiro_TQ.php:                     $sSql = "insert into FIN_Titulos_CContabil (sVer,pInc,pCPla,fCPla,pTFin,fTFin,lDeb,nValPCContC,nValMCContC,nValPCContD,nValMCContD) values ('$sEcoTxt',$psLogin,$pCPla,$fCPla,$pTFin,1,$lDeb,$nRatCredCPla,$nValCredCPla,$nRatDebCPla,$nValDebCPla)";
OEnt_Confirmar_RFinanceiro_TQ.php:                     fpc_append($sEcoTxt,"insert FIN_Titulos_CContabil = $sSql");
OSa_Cancelar.php:               $sSql = "select pPId from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1 and iVer=iVAt";
OSa_Cancelar.php:                     $sSql    = "delete from FIN_Titulos_CCusto where pTFin=$pTmpFin";
OSa_Cancelar.php:                     $sSql    = "delete from FIN_Titulos_CContabil where pTFin=$pTmpFin";
OSa_Cancelar.php:                  $sSql = "delete from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1";
OSa_Cancelar.php:               $sSql = "select pPId from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1 and iVer=iVAt";
OSa_Cancelar.php:                     $sSql    = "delete from FIN_Titulos_CCusto where pTFin=$pTmpFin";
OSa_Cancelar.php:                     $sSql    = "delete from FIN_Titulos_CContabil where pTFin=$pTmpFin";
OSa_Cancelar.php:                  $sSql = "delete from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1";
OS_Confirmar1_Functions.php:                   FIN_Titulos b,
OS_Confirmar1_Functions.php:              from Ordens      a    join FIN_Titulos b on a.pEmi    = b.pCedente   and b.iVer=b.iVAt and b.lExc=0  and b.tPgmto is     null and b.jTipo = 0
OS_Confirmar1_Functions.php:                        $sSql = "select pPId,pContr,tVenc from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1 and iVer=iVAt";
OS_Confirmar1_Functions.php:                              $sSql = "delete from FIN_Titulos_CCusto where pTFin=$pTmpFin";
OS_Confirmar1_Functions.php:                              $sSql = "delete from FIN_Titulos_CContabil where pTFin=$pTmpFin";
OS_Confirmar1_Functions.php:                        $sSql = "delete from FIN_Titulos where pOrdem=$pOrdem and lPrevisao=1";
OS_Confirmar1_Functions.php:   $sTab   = 'FIN_Titulos';
OS_Confirmar1_Functions.php:   fpc_append($sEcoTxt,"insert FIN_Titulos = $sSql");
OS_Confirmar1_Functions.php:      $sSql  = "select max(pPId) from FIN_Titulos where pPId>=$pMax and pInc=$psLogin and iVer=iVAt";
OS_Confirmar1_Functions.php:               fpc_append($sEcoTxt,"insert FIN_Titulos_Detalhes = $sSql");
OS_Confirmar1_Functions.php:            fpc_append($sEcoTxt,"insert FIN_Titulos_Detalhes = $sSql");
OS_Confirmar1_Functions.php:      // SOA FIN_Titulos - CCusto
OS_Confirmar1_Functions.php:            $sSql = "insert into FIN_Titulos_CCusto (sVer,pCCusto,fCCusto,pTFin,fTFin,nValPCCus,nValMCCus) values ('$sEcoTxt',$pCCusto,$fCCusto,$pTFin,1,$nRatCCusto,$nValCCusto)";
OS_Confirmar1_Functions.php:            fpc_append($sEcoTxt,"insert into FIN_Titulos_CCusto = $sSql");
OS_Confirmar1_Functions.php:      // SOA FIN_Titulos - CC - NAO TEM NA ORDEM
OS_Confirmar1_Functions.php:      // SOA FIN_Titulos - CContabil
OS_Confirmar1_Functions.php:            $sSql = "insert into FIN_Titulos_CContabil (sVer,pCPla,fCPla,pTFin,fTFin,lDeb,nValPCContC,nValMCContC,nValPCContD,nValMCContD) values ('$sEcoTxt',$pCPla,$fCPla,$pTFin,1,$lDeb,$nRatCredCPla,$nValCredCPla,$nRatDebCPla,$nValDebCPla)";
OS_Confirmar1_Functions.php:            fpc_append($sEcoTxt,"insert FIN_Titulos_CContabil = $sSql");
OS_Confirmar1_Functions.php:            fpc_append($sEcoTxt,"insert FIN_Titulos_CContabil = $aLin[5], $nRatDebCPla");
OS_Confirmar1_Functions.php:            $sSql = "select pPId from FIN_Titulos where pOrdem=$pDoc and iVer=iVAt and lExc=0 and tRestr is not null and tLibRestr is null";
PreNF_NFCapa_SAIDA.php:               // FIN_Titulos - PreNF
PreNF_NFCapa_SAIDA.php:               $sSql   = fsArrToInsert('FIN_Titulos',$aIns);
PreNF_NFCapa_SAIDA.php:               fpc_append($sEcoTxt,"insert FIN_Titulos = $sSql");
PreNF_NFCapa_SAIDA.php:               $sSql   = 'select GEN_ID(FIN_Titulos, 0) from RDB$DATABASE';
PreNF_NFCapa_SAIDA.php:               $sSql  = "select max(pPId) from FIN_Titulos where pPId>=$pMax and pInc=$ppLogin and iVer=iVAt";
PreNF_NFCapa_SAIDA.php:               // SOA FIN_Titulos - CCusto - PreNF
PreNF_NFCapa_SAIDA.php:                     $sSql = "insert into FIN_Titulos_CCusto (sVer,pCCusto,fCCusto,pTFin,fTFin,nValPCCus,nValMCCus) values ('$sEcoTxt',$pCCusto,$fCCusto,$pTFin,1,$nRatCCusto,$nValCCusto)";
PreNF_NFCapa_SAIDA.php:                     fpc_append($sEcoTxt,"insert into FIN_Titulos_CCusto = $sSql");
PreNF_NFCapa_SAIDA.php:               // SOA FIN_Titulos - CContabil - PreNF
PreNF_NFCapa_SAIDA.php:                     $sSql = "insert into FIN_Titulos_CContabil (sVer,pCPla,fCPla,pTFin,fTFin,lDeb,nValPCContC,nValMCContC,nValPCContD,nValMCContD) values ('$sEcoTxt',$pCPla,$fCPla,$pTFin,1,$lDeb,$nRatCredCPla,$nValCredCPla,$nRatDebCPla,$nValDebCPla)";
PreNF_NFCapa_SAIDA.php:                     fpc_append($sEcoTxt,"insert FIN_Titulos_CContabil = $sSql");
PreNF_NFCapa_SAIDA.php:         $sSql = "select pPId from FIN_Titulos where pPreNF=$ppPreNF and tPgmto is null and iVer=iVAt and lPrevisao=0";
PreNF_NFCapa_SAIDA.php:               $sSql    = "update FIN_Titulos_CCusto set lExc=1 where pTFin=$pTmpFin and iVer=iVAt";
PreNF_NFCapa_SAIDA.php:               $sSql    = "update FIN_Titulos_CContabil set lExc=1 where pTFin=$pTmpFin and iVer=iVAt";
PreNF_NFCapa_SAIDA.php:            $sSql = "update FIN_Titulos set lExc=1 where pPreNF=$ppPreNF and lPrevisao=0 and iVer=iVAt and tPgmto is null";
PreNF_NFCapa_SAIDA.php:            $sTxt = count($aDb)>0 ? $aDb[0][0] : '';   // NFCapa->sMotivoCan = varchar(500) e FIN_Titulos->sMotivo = varchar(2500)
PreNF_NFCapa_SAIDA.php://            $sSql = "update FIN_Titulos set tPreNFCanc='now',pPreNFCanc=$ppLogin  where pPreNF=$ppPreNF and tPgmto is not null and iVer=iVAt and lPrevisao=0";
PreNF_NFCapa_SAIDA.php://            $sSql = "update FIN_Titulos set tDescanc='null',pDescanc=0,sDescMotivo='',tCanc='now',pCanc=$psLogin,sVer='Cancelamento do Ttulo',sMotivo='$sTxt' ,pInc=$psLogin where pPId=$pDoc and iVer=iVAt";
PreNF_NFCapa_SAIDA.php:            $sSql = "update FIN_Titulos set tPreNFCanc='now',pPreNFCanc=$ppLogin,tCanc='now',pCanc=$ppLogin,sMotivo='$sTxt' where pPreNF=$ppPreNF and iVer=iVAt and lPrevisao=0";
PreNF_NFCapa_SAIDA.php:         $sSql = "select pPId from FIN_Titulos where pOrdem=$ppOrdem and lPrevisao=1 and iVer=iVAt";
PreNF_NFCapa_SAIDA.php:               $sSql    = "delete from FIN_Titulos_CCusto where pTFin=$pTmpFin";
PreNF_NFCapa_SAIDA.php:               $sSql    = "delete from FIN_Titulos_CContabil where pTFin=$pTmpFin";
PreNF_NFCapa_SAIDA.php:            $sSql = "delete from FIN_Titulos where pOrdem=$ppOrdem and lPrevisao=1";
PreNF_NFCapa_SAIDA.php://            $sSql = "update FIN_Titulos set lExc=1 where pOrdem=$ppOrdem and lPrevisao=1";
PreNF_NFCapa_SAIDA.php:                        // FIN_Titulos - Previsao
PreNF_NFCapa_SAIDA.php:                        $sSql   = fsArrToInsert('FIN_Titulos',$aIns);
PreNF_NFCapa_SAIDA.php:                        fpc_append($sEcoTxt,"insert FIN_Titulos = $sSql");
PreNF_NFCapa_SAIDA.php:                        $sSql   = 'select GEN_ID(FIN_Titulos, 0) from RDB$DATABASE';
PreNF_NFCapa_SAIDA.php:                        $sSql  = "select max(pPId) from FIN_Titulos where pPId>=$pMax and pInc=$ppLogin and iVer=iVAt";
PreNF_NFCapa_SAIDA.php:                        // SOA FIN_Titulos - CCusto - Previsao
PreNF_NFCapa_SAIDA.php:                              $sSql = "insert into FIN_Titulos_CCusto (sVer,pCCusto,fCCusto,pTFin,fTFin,nValPCCus,nValMCCus) values ('$sEcoTxt',$pCCusto,$fCCusto,$pTFin,1,$nRatCCusto,$nValCCusto)";
PreNF_NFCapa_SAIDA.php:                              fpc_append($sEcoTxt,"insert into FIN_Titulos_CCusto = $sSql");
PreNF_NFCapa_SAIDA.php:                        // SOA FIN_Titulos - CContabil - Previsao
PreNF_NFCapa_SAIDA.php:                              $sSql = "insert into FIN_Titulos_CContabil (sVer,pCPla,fCPla,pTFin,fTFin,lDeb,nValPCContC,nValMCContC,nValPCContD,nValMCContD) values ('$sEcoTxt',$pCPla,$fCPla,$pTFin,1,$lDeb,$nRatCredCPla,$nValCredCPla,$nRatDebCPla,$nValDebCPla)";
PreNF_NFCapa_SAIDA.php:                              fpc_append($sEcoTxt,"insert FIN_Titulos_CContabil = $sSql");
PreNF_NFCapa_SAIDA.php:             from Fin_Titulos    a
PreNF_NFCapa_SAIDA.php:             from Fin_Titulos    a,
PreNF_NFCapa_SAIDA.php:         $sSql = "update FIN_Titulos set tEnvBol='now',pEnvBol=$psLogin where pPId=".$aLinBol[strtoupper("iNrControl")]." and iVer=iVAt";
RAFinanceiro.php:                         --m.pPId            fin_pFIN_Titulos_CCusto,
RAFinanceiro.php:                         --o.pPId            fin_pFIN_Titulos_CContCred,
RAFinanceiro.php:                         0                 fin_pFIN_Titulos_CCusto,
RAFinanceiro.php:                         0                 fin_pFIN_Titulos_CContCred,
RAFinanceiro.php:                  from FIN_Titulos a left join TOper                  d on a.pTOper    = d.pPId and d.iVer = d.iVAt
RAFinanceiro.php:--                                     left join FIN_Titulos_CCusto     m on m.pTFin     = a.pPId and m.iVer = m.iVAt and m.lExc = 0
RAFinanceiro.php:--                                     left join FIN_Titulos_CContabil  o on o.pTFin     = a.pPId and o.iVer = o.iVAt and a.jTipo=o.lDeb and ((o.lDeb=0 and o.NVALPCCONTC>0) or (o.lDeb=1 and o.NVALPCCONTD>0)) and o.lExc = 0 $sWCConta
RAFinanceiro.php:                         m.pPId            fin_pFIN_Titulos_CCusto,
RAFinanceiro.php:                         --o.pPId            fin_pFIN_Titulos_CContCred,
RAFinanceiro.php:                         0                 fin_pFIN_Titulos_CContCred,
RAFinanceiro.php:                  from FIN_Titulos a left join TOper                  d on a.pTOper    = d.pPId and d.iVer = d.iVAt
RAFinanceiro.php:                                          join FIN_Titulos_CCusto     m on m.pTFin     = a.pPId and m.iVer = m.iVAt and m.lExc = 0
RAFinanceiro.php:--                                     left join FIN_Titulos_CContabil  o on o.pTFin     = a.pPId and o.iVer = o.iVAt and a.jTipo=o.lDeb and ((o.lDeb=0 and o.NVALPCCONTC>0) or (o.lDeb=1 and o.NVALPCCONTD>0)) and o.lExc = 0 $sWCConta
RAFinanceiro.php:--                         m.pPId            fin_pFIN_Titulos_CCusto,
RAFinanceiro.php:                         0                 fin_pFIN_Titulos_CCusto,
RAFinanceiro.php:                         o.pPId            fin_pFIN_Titulos_CContCred,
RAFinanceiro.php:                  from FIN_Titulos a left join TOper                  d on a.pTOper    = d.pPId and d.iVer = d.iVAt
RAFinanceiro.php:                                     --left join FIN_Titulos_CCusto     m on m.pTFin     = a.pPId and m.iVer = m.iVAt and m.lExc = 0
RAFinanceiro.php:                                          join FIN_Titulos_CContabil  o on o.pTFin     = a.pPId and o.iVer = o.iVAt and a.jTipo=o.lDeb and ((o.lDeb=0 and o.NVALPCCONTC>0) or (o.lDeb=1 and o.NVALPCCONTD>0)) and o.lExc = 0 $sWCConta
RAFinanceiro.php:     $aRA[$i][36] = $aRAL[36]  ; // pFIN_Titulos_CCusto
RAFinanceiro.php:     $aRA[$i][43] = $aRAL[43]  ; // pFIN_Titulos_CContCred
RAFinanceiro.php:     $aAI[$pj][36] = $paReg[36]  ; // pFIN_Titulos_CCusto
RAFinanceiro.php:     $aAI[$pj][43] = $paReg[43]  ; // pFIN_Titulos_CContCred
RAFinanceiro.php:      $aCon[$pj][36] = $aR[36]  ; // pFIN_Titulos_CCusto
RAFinanceiro.php:      $aCon[$pj][43] = $aR[43]  ; // pFIN_Titulos_CContCred
Security_Chamado_Financeiro.php:               $sSql = fsArrToInsert('FIN_Titulos',$aIns);
Security_Faturamento_Financeiro.php:               $sTab   = 'Fin_Titulos';
Security_FIN_Imprimir.php:                from  FIN_Titulos a  left join CUP     b  on a.pCedente = b.pPId and b.iVer = b.iVAt
Security_FIN_Imprimir.php:      $sQry2 = "select sum(a.nVenc),sum(a.nPgmto) from FIN_Titulos a where  a.iVer = a.iVAt and a.lExc=0 $sWhr";
Security_FIN_Imprimir.php:      $sQry2 = "select extract(month from a.tPgmto),extract(year from a.tPgmto),sum(a.jTipo*a.nPgmto),sum((1-a.jTipo)*a.nPgmto) from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr group by 1,2 order by 2,1";
Security_FIN_Imprimir.php:      $sQry2 = "select sum(a.jTipo*a.nVenc) ,sum((1-a.jTipo)*a.nVenc)  from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr";
Security_FIN_Imprimir.php:      $sQry2 = "select sum(a.jTipo*a.nPgmto),sum((1-a.jTipo)*a.nPgmto) from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr";
Security_FIN_Imprimir.php:      $sQry  = "select extract(month from a.tVenc)  ,extract(year from a.tVenc) ,sum(a.jTipo*a.nVenc) ,sum((1-a.jTipo)*a.nVenc),0,0 from Fin_Titulos a where a.iVer=a.iVAt and a.lExc=0 $sWhr group by 1,2 order by 2,1";
Security_FIN_Imprimir.php:                from  FIN_Titulos a left join FIN_Titulos_CCusto b on b.pTFin   = a.pPId and b.iVer = b.iVAt
Security_FIN_Imprimir.php:                from  FIN_Titulos a left join FIN_Titulos_CContabil b on b.pTFin   = a.pPId and b.iVer = b.iVAt
Security_FIN_Imprimir.php:                from  FIN_Titulos a left join FIN_Titulos_CC        b on b.pTFin   = a.pPId and b.iVer = b.iVAt
Security_FIN_Titulos_Imprimir.php:         from FIN_Titulos a left join CUP         b on a.pCedente = b.pPId and b.iVer = b.iVAt
Security_Rec_Faturamento_Cancelar.php:   $sSql     = "select tCanc,tPgmto from FIN_Titulos where pNFe=$pDoc and iVer=iVAt and lExc=0";
Security_Rec_Faturamento_Cancelar.php:            $sSql = "update FIN_Titulos set lExc=1 where pNFe=$pDoc and iVer=iVAt";
Security_Rec_Financeiro.php:         $sTab     = 'FIN_Titulos';
Security_RFis_Financeiro.php:         $sTab     = 'FIN_Titulos';
spazio_Festa_Cancelar.php:      $sSqlUTit = "update Fin_Titulos set lExc=1 where pFesta=$pDoc and iVer=iVAt and tPgmto is not null";
