ATUALIZA_DADOSIMPNOTA
Fonte: Scripts/ATUALIZA_DADOSIMPNOTA.sql
Fonte: Scripts/ATUALIZA_DADOSIMPNOTA.sql
Fonte: Scripts/ATUALIZA_IMPOSTONOTADEVOL.sql
Fonte: Scripts/ATUALIZA_NOTAPEDIDOORIGEMDEST.sql
Fonte: Scripts/ATUALIZA_PEDIDONOTA.sql
Fonte: Scripts/ATUALIZA_PEDIDOROMANEIO.sql
Fonte: Scripts/CALCULA_COMISSAO.sql
Fonte: Scripts/CALCULA_IMPOSTONOTA.sql
Fonte: Scripts/CALCULA_IMPOSTOPEDIDO.sql
Fonte: Scripts/CALCULAIMPOSTOPEDIDOV2.sql
Fonte: Scripts/CALCULA_IMPOSTOPEDIDOTOTAL.sql
Fonte: Scripts/CALCULA_JUROMORA.sql
Calcula juros de mora e multa por atraso de um titulo financeiro. Suporta juro simples, composto e taxa fixa. Considera tolerancia de dias, carencia do cliente e baixas parciais anteriores. Usar quando a pergunta pedir calculo de juros, enc
Fonte: Scripts/CALCULA_VALORADICIONALNOTA.sql
Fonte: Scripts/CALCULA_VALORITEMNOTA.sql
Fonte: Scripts/CALENDARIO.sql
Fonte: Scripts/CANCELA_CONTAS.sql
Fonte: Scripts/CANCELA_NOTAFISCAL.sql
Fonte: Scripts/CONTABILIZA_REPARCELAMENTO.sql
Fonte: Scripts/GERA_CHAVEACESSONFE.sql
Fonte: Scripts/GERA_CONTROLEENTREGAPEDIDO.sql
Fonte: Scripts/GERA_ESTOQUE.sql
Fonte: Scripts/GERA_INTEGRACAO.sql
Fonte: Scripts/GERA_JUNCAOCONTAS.sql
Fonte: Scripts/GERA_NOTAFISCALPEDIDO.sql
Fonte: Scripts/GERA_NOTAPEDIDO.sql
Fonte: Scripts/GERA_SEQUENCIA.sql
Fonte: Scripts/GRAVA_CONTAS.sql
Fonte: Scripts/GRAVA_NOTACTB.sql
Fonte: Scripts/LANCAMENTO_COMPOSTO.sql
Fonte: Scripts/PARCELA_FINANCIAMENTO.sql
Fonte: Scripts/PROCESSA_REPARCELAMENTO.sql
Fonte: Scripts/REPROCESSA_CONTASPESSOA.sql
Fonte: Scripts/RETORNA_BAIXACONTAS.sql
Retorna dados cadastrais completos de uma pessoa: nome, CPF/CNPJ, endereco completo, telefones, e-mail, inscricao estadual/municipal, vendedor, regiao e area comercial. Usar quando a pergunta pedir dados cadastrais detalhados, ficha do clie
RETORNA_DADOSCHEQUE (Stored Procedure)
RETORNA_ENDERECO (Stored Procedure)
Verifica se um titulo financeiro possui titulos filhos gerados por operacoes com cheque. Retorna indicador 'S' se existir vinculo. CRITICO em agregacoes (SUM, COUNT): usar WHERE COC.O_ST_TEMFILHO IS NULL para excluir contas-pai e evitar dup
Fonte: Scripts/RETORNA_LOCAISARMAZENAGEM.sql
RETORNA_MAIORPARCELACONTAS (Stored Procedure)
RETORNA_MAXDATASALDOCAIXA (Stored Procedure)
Fonte: Scripts/RETORNA_SALDOCC.sql
Fonte: Scripts/RETORNA_SALDOCONTAFINANCJUROS.sql
RETORNATIPOPESSOARESTRITA (Stored Procedure)
Fonte: Scripts/VALIDA_CODIGOBARRA.sql
Fonte: Scripts/VALIDA_CONTABILIDADE.sql