PARAMIXB[1] / nValorPosition documented by TDN: Amount. (Ref. 1)
AdvPL GuideUser Function F290CON()Replaces the payment term screen and returns the invoice due-date schedule.
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.
User Function F290CON()PARAMIXB[1] / nValorPosition documented by TDN: Amount. (Ref. 1)
PARAMIXB[2] / cCondicaoPosition documented by TDN: Payment term. (Ref. 1)
PARAMIXB[3] / cMarcaPosition documented by TDN: Mark. (Ref. 1)
PARAMIXB[4] / nBasePccPosition documented by TDN: PCC base. (Ref. 1)
PARAMIXB[5] / nPisFatPosition documented by TDN: PIS. (Ref. 1)
PARAMIXB[6] / nCofFatPosition documented by TDN: COFINS. (Ref. 1)
PARAMIXB[7] / nCslFatPosition documented by TDN: CSLL. (Ref. 1)
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)
#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 aDueDatesProposes generating the due-date schedule from the received term without displaying the standard payment term screen. Not yet compiled or run in Protheus.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.