GP080FIM

PE apos fechamento de folha (GPEA080). Trigger pra integracao contabil, geracao GFIP.

Assinatura: User Function GP080FIM() --> NIL

Retorna: NIL

Modulo: SIGAGPE  ·  Rotina: GPEA080  ·  Momento: Pos-fechamento folha

Parametros (PARAMIXB)

Este PE nao recebe parametros via PARAMIXB. A tabela alvo ja esta posicionada quando o PE dispara — opere via (ALIAS)->CAMPO.

Retorno

NIL

Pegadinhas

Quando usar

Exemplo (template)

User Function GP080FIM()
    // Operacao ja gravada — trigger pra acoes pos-evento

    Begin Sequence
        // Logica custom apos gravacao
        // Exemplos: notificar, sincronizar, gerar log
        FwLogger():Info("GP080FIM disparado", {;
            "filial": cFilAnt,                                ;
            "user":   RetCodUsr()                             ;
        })
    Recover
        FwLogger():Error("Falha em GP080FIM: " + ErrorBlock())
    End Sequence

Return

Cuidados gerais

Tabelas afetadas

Veja tambem

Veja também