PARAMIXB[1]System default payment batch date received in PARAMIXB[1]. This is entry point context, not a formal argument in the user function signature. (TOTVS, 2024, ref. 1)
AdvPL GuideUser Function F241DTBOR() as dateChanges the tax payment batch date using the documented PARAMIXB[1] context.
F241DTBOR belongs to FINA241 and replaces the tax payment batch date. It receives the system default date in PARAMIXB[1] and returns a custom date. (TOTVS, 2024, ref. 1) The community listing places the call in FA241BORDE. (Universo do Desenvolvedor, 2023, ref. 2) The official example uses Date() + 3, rather than adding three days to the received date. GitHub searches located no useful implementation. The TDN page was read in full.
User Function F241DTBOR() as datePARAMIXB[1]System default payment batch date received in PARAMIXB[1]. This is entry point context, not a formal argument in the user function signature. (TOTVS, 2024, ref. 1)
Custom date that replaces the payment batch date. (TOTVS, 2024, ref. 1)
#Include "TOTVS.CH"
User Function F241DTBOR() as date
// Adapted from the TDN example; comments and local name are editorial.
// Initialization reads the documented context, which is overwritten below.
Local dBatchDate := PARAMIXB[1] as date
FWAlertInfo("F241DTBOR entry point")
// Keep the official example rule: use Date(), not the received date.
dBatchDate := Date() + 3
Return dBatchDateDisplays a message and returns Date() + 3. The initially received date is overwritten. This is expected by reading the code; it was neither compiled nor executed 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.