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