ERPSeeker

Tabela SPARCPLANODESCPONTUAL

Desconto Financeiro por pontualidade na parcela do Plano de Pagamento pagamento
11campos2relacionamentos

Campos da tabela SPARCPLANODESCPONTUAL

11 campos no dicionário de dados do TOTVS RM.

11
CampoDescrição
CODCOLIGADA
smallint
não nulo
Código da Coligada
IDPERLET
int
não nulo
Identificador do Período Letivo
CODSERVICO
VARCHAR(10)
não nulo
Código do Serviço
CODPLANOPGTO
VARCHAR(10)
não nulo
Código do Plano de Pagamento
COTA
smallint
não nulo
Cota
PARCELA
smallint
não nulo
Parcela
IDDESCONTO
int
não nulo
Identificador do Desconto
RECCREATEDBY
VARCHAR(50)
Usuário criador do registro
RECCREATEDON
datetime
Data de criação do registro
RECMODIFIEDBY
VARCHAR(50)
Autor da última modificação no registro
RECMODIFIEDON
datetime
Data da última modificação no registro

SELECT de exemplo da tabela SPARCPLANODESCPONTUAL

Sintaxe SQL Server. Ajuste TOP/LIMIT conforme o banco.

SQL · SQL Server
SELECT TOP 100
  SPARCPLANODESCPONTUAL.CODCOLIGADA,
  SPARCPLANODESCPONTUAL.IDPERLET,
  SPARCPLANODESCPONTUAL.CODSERVICO,
  SPARCPLANODESCPONTUAL.CODPLANOPGTO,
  SPARCPLANODESCPONTUAL.COTA,
  SPARCPLANODESCPONTUAL.PARCELA,
  SPARCPLANODESCPONTUAL.IDDESCONTO,
  SPARCPLANODESCPONTUAL.RECCREATEDBY
FROM SPARCPLANODESCPONTUAL

Exemplo com JOIN

SELECT TOP 100
  *
FROM SPARCPLANODESCPONTUAL
INNER JOIN FDESCONTOPONTUAL
  ON SPARCPLANODESCPONTUAL.CODCOLIGADA = FDESCONTOPONTUAL.CODCOLIGADA
 AND SPARCPLANODESCPONTUAL.IDDESCONTO = FDESCONTOPONTUAL.IDDESCONTO

Relacionamentos da tabela SPARCPLANODESCPONTUAL

Tabelas ligadas a esta pelo dicionário de dados, com a condição de JOIN.

  • FDESCONTOPONTUALDesconto Financeiro por pontualidade no pagamento
    SPARCPLANODESCPONTUAL.CODCOLIGADA = FDESCONTOPONTUAL.CODCOLIGADA AND SPARCPLANODESCPONTUAL.IDDESCONTO = FDESCONTOPONTUAL.IDDESCONTO
  • SPARCPLANOParcelas do Plano de Pagamento
    SPARCPLANODESCPONTUAL.CODCOLIGADA = SPARCPLANO.CODCOLIGADA AND SPARCPLANODESCPONTUAL.IDPERLET = SPARCPLANO.IDPERLET AND SPARCPLANODESCPONTUAL.CODSERVICO = SPARCPLANO.CODSERVICO AND SPARCPLANODESCPONTUAL.CODPLANOPGTO = SPARCPLANO.CODPLANOPGTO AND SPARCPLANODESCPONTUAL.COTA = SPARCPLANO.COTA AND SPARCPLANODESCPONTUAL.PARCELA = SPARCPLANO.PARCELA

Tabelas próximas no índice do RM

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.