Product: |
TOTVS Backoffice
|
Product Line: | Protheus Line |
Segment: | Services |
Module: | TOTVS Backoffice (Protheus Line) - Managerial Accounting (SIGAFIS)
|
Function: | CTBA060 |
Country: | Brazil |
Ticket: | Internal |
Requisite/Story/Issue | DSERCTR1-46829 |
The entry point CTA60DEL is executed after the deletion of an accounting value class. It is triggered at the moment the routine responsible for the deletion of the accounting value class successfully completes the deletion, allowing for the execution of additional procedures after this process.
This entry point is useful for performing complementary actions, such as updating related records, validations, or any other processing that needs to occur after the deletion of the accounting value class.
If ExistBlock("CTA60DEL")
If ExecBlock("CTA60DEL",.F.,.F.,nOpc)
Return .F.
EndIf
EndIf
User Function CTA60DEL()
// Control variables
Local cAlias := "CTH" // Alias of the Accounting Value Class table
Local nReg := CTH->(Recno()) // Current record number of the class
Local nOpc := ARAMIXB[1] // Selected option number, generic example.
If CTH->CTH_CLASSE == "1" // Synthetic
If !Eof() .And. CTH->CTH_FILIAL == xFilial("CTH") .AND. Alltrim(M->CTH_CLVL) == ALLTRIM(CTH->CTH_CLSUP)
Help(" ",1,"CLVLSINT")
EndIf
EndIf
Return
Important!