01. GENERAL DATA

Product:

Product Line:

Protheus Line

Segment:

Technology

Module:

TOTVS Backoffice (Protheus Line) - Managerial Accounting (SIGACTB)

Function:

CTBXCTB

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46829

02. DESCRIPTION

The entry point CTBCTASU is used to define the generation of the code for a superior ledger account, being triggered by the function CtbCtaSup(). This entry point makes it possible to implement custom criteria to calculate the superior ledger account code based on the current account, both at the time of registration and during internal verification processes. Thus, it allows flexibility in the hierarchy of ledger accounts, adjusting to specific requirements of accounting structuring or internal regulations.

03. OTHER INFORMATION


cCod := ExecBlock("CTBCTASU",.F.,.F.,cCodigo)
User Function CTBCTASU()

    Local cContaAtual    := PARAMIB[1]
    Local cContSuperior  := "" // CUSTOMER VALIDATION TO CREATE THE ACCOUNT
 
	// Displays the code of the superior ledger account
    ConOut("Current Account: " + cContaAtual)
    ConOut("Superior Account: " + cContaSuperior)

Return cContSuperior


  • It should be noted that the use of the Entry Point (PE) and its impacts on the system are the customer's responsibility.
  • The examples used in this documentation are for demonstration purposes only; each customer must determine the behavior they wish to implement according to the scope of the entry point.

04. RELATED SUBJECTS