Product: | TOTVS Backoffice |
Product Line: | Protheus Line |
Industry: | Services |
Module: | TOTVS Backoffice (Protheus Line) - Fixed Assets (SIGAATF) |
Function: | ATFA010A |
Country: | Brazil |
Ticket: | Internal |
Requisite/Story/Issue | DSERCTR1-46748 |
Entry Point AF010EXC is activated soon after the selection of the Delete option and before the opening of the deletion screen, offering a validation layer before process activation. This entry point allows the customer to set specific rules to approve or to block the deletion of records.
If the entry point returns .T. (true), the deletion of the record is authorized and occurs as usual. If it returns .F. (false), the deletion process is blocked, keeping the record unchanged. This behavior allows the customer to set additional rules to control the deletion, ensuring data integrity and compliance with established business processes.
| Bloco de código | ||||||
|---|---|---|---|---|---|---|
| ||||||
If ExistBlock("AF010EXC")
lRet:= ExecBlock("AF010EXC",.F.,.F.)
EndIf |
| Bloco de código | ||||||
|---|---|---|---|---|---|---|
| ||||||
#INCLUDE "Protheus.ch"
User Function AF010EXC()
Local lOk := .T.
If lOk
Alert ("Deleting")
Else
lOk :=.F.
Alert ("Unable to delete!")
Endif
Return lOk |
| Aviso | ||
|---|---|---|
| ||
|