Entry point contextThe official syntax and example declare no formal arguments. These references describe no PARAMIXB contract; the example does not depend on it. Private context, aliases and exact transaction position remain unconfirmed.
AdvPL GuideUser Function F241CTB()Decides tax accounting in a payment batch; official example returning .F.
F241CTB, in source FINA241.PRW, decides whether tax payables associated with Law 10,925 are accounted for when generating the payment batch. (TOTVS, n.d., ref. 1) A support article uses a .F. return to prevent the automatic LP 530-Baixas call in this scenario. (TOTVS, n.d., ref. 2) The P12.2210 community listing shows lContabil receiving the return in FA241BORDE and FA241CANC. (Universo do Desenvolvedor, 2023, ref. 3) That second context does not automatically extend the official example scope. GitHub searches located no useful implementation; the example below is a commented adaptation of TOTVS material.
User Function F241CTB()Entry point contextThe official syntax and example declare no formal arguments. These references describe no PARAMIXB contract; the example does not depend on it. Private context, aliases and exact transaction position remain unconfirmed.
Logical: .T. permits the documented accounting; .F. prevents it. The support article uses .F. to avoid calling LP 530. (TOTVS, n.d., refs. 1–2)
#Include "Protheus.ch"
User Function F241CTB()
// Commented adaptation of the official TOTVS example (ref. 2).
// Applies to the accounting decision described for tax payment batch generation.
Local lPostAccounting := .F.
// The return disables the accounting controlled by this entry point.
Return lPostAccountingReturns .F. on every call. In the article scenario, prevents the automatic LP 530 call; this does not mean cancelling tax payable generation. Documented result, without Protheus compilation or execution.
© 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.