Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTUnder review

F241CTB

User Function F241CTB()

Decides tax accounting in a payment batch; official example returning .F.

F241CTBFINA241LP 530ExecBlock
01 · OVERVIEW

Overview

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.

02 · SYNTAX

Syntax

User Function F241CTB()

Parameters

Entry point context
UndocumentedContext to confirm

The 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.

Return value

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)

03 · PRACTICAL EXAMPLE

Prevent the automatic LP 530 call in the documented scenario

#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 lPostAccounting
Expected result

Returns .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.

BEST PRACTICES
  • The TDN page lists Advanced Protheus 7.10 and Microsiga Protheus 8.11. The support article states all versions; this does not replace testing on the target release and patch.
  • The example returns .F. unconditionally. Define which operations should follow this accounting rule before adopting it.
  • Test generation and cancellation separately, checking payables, accounting entries and any later accounting processing.
  • The references do not establish commit timing or show that the entry point disables other routines or accounting entries.
  • The TDN documentation and official example image were read in full; no code was compiled or executed.

Related content

REFERENCES
  1. TOTVS. F241CTB - Títulos gerados de impostos. TDN. Accessed on 2026-10-23.
  2. TOTVS. FINA241 - Não gerar contabilização online na rotina Borderô de Pagamentos com Impostos. Central de Atendimento. Accessed on 2026-10-23.
  3. 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
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha