Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTUnder review

F290CON

User Function F290CON()

Replaces the payment term screen and returns the invoice due-date schedule.

F290CONFINA290PARAMIXBCondicaoaVenc
01 · OVERVIEW

Overview

Runs after confirming the payable invoice screen. If F290CON exists, the payment term screen is not displayed: the entry point supplies the due-date schedule. The specific page identifies FINA290, SIGAFIN and Brazil. (TOTVS, ref. 1) The P12.2210 community listing shows the call in FA290AUT with seven context values and assigns its return to aVenc. (Ref. 2) GitHub searches found no useful implementation.

02 · SYNTAX

Syntax

User Function F290CON()

Parameters

PARAMIXB[1] / nValor
NumericExecution context

Position documented by TDN: Amount. (Ref. 1)

PARAMIXB[2] / cCondicao
CharacterExecution context

Position documented by TDN: Payment term. (Ref. 1)

PARAMIXB[3] / cMarca
CharacterExecution context

Position documented by TDN: Mark. (Ref. 1)

PARAMIXB[4] / nBasePcc
NumericExecution context

Position documented by TDN: PCC base. (Ref. 1)

PARAMIXB[5] / nPisFat
NumericExecution context

Position documented by TDN: PIS. (Ref. 1)

PARAMIXB[6] / nCofFat
NumericExecution context

Position documented by TDN: COFINS. (Ref. 1)

PARAMIXB[7] / nCslFat
NumericExecution context

Position documented by TDN: CSLL. (Ref. 1)

Return value

Array containing the due-date schedule. The official example obtains it with Condicao(nValor, cCondicao, 0) and returns it to the caller. The page does not detail each entry’s internal layout; do not invent positions or additional formats without checking the function and release contract. (Ref. 1)

03 · PRACTICAL EXAMPLE

Commented adaptation of the official example

#Include "Protheus.ch"

User Function F290CON()
    // Adapted from the TOTVS F290CON example (ref. 1).
    // Uses received amount and term; keeps the example third argument 0.
    Local nAmount := PARAMIXB[1]
    Local cPaymentTerm := PARAMIXB[2]
    Local aDueDates := Condicao(nAmount, cPaymentTerm, 0)

    // Returns the schedule produced by Condicao, not a logical value.
Return aDueDates
Expected result

Proposes generating the due-date schedule from the received term without displaying the standard payment term screen. Not yet compiled or run in Protheus.

BEST PRACTICES
  • Entry point presence changes the screen flow: do not implement an empty function expecting the standard payment term behavior to remain automatically.
  • The official example uses only positions 1 and 2. This does not establish that the mark or PCC values are unnecessary for every customization.
  • Do not return all of PARAMIXB, .T., .F. or NIL instead of the due-date schedule. The documented return is an array.
  • The third Condicao argument, 0, is retained from the official example; this page does not assign an unconfirmed base-date meaning or other semantics to it.
  • Editorial test plan: compare the standard flow with the entry point, check installment totals and dates, and test operational payment terms, including PCC scenarios.
  • Preserve the work context and verify behavior in the target release and patch. The Brazil scope does not establish support for other localizations.
  • Under review: specific documentation read in full and example adapted. No Protheus compilation or execution; internal return layout and transaction position unconfirmed.

Related content

REFERENCES
  1. TOTVS. F290CON - Confirmação de tela de fatura. TDN. Accessed on 2026-10-23.
  2. EURAI. Pontos de Entrada P12.2210 - Parte 2. Universo do Desenvolvedor, 2023. Accessed on 2026-10-23.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR

Was this content helpful?

👍 Like 0👎 Dislike 0

Sign in to rate this article.

0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha