Product: | TOTVS Backoffice |
Product Line: | Protheus Line |
Industry: | Services |
Module: | TOTVS Backoffice (Protheus Line) - Fixed Assets (SIGAATF) |
Function: | ATFA012 |
Country: | Brazil |
Ticket: | Internal |
Requisite/Story/Issue | DSERCTR1-46748 |
Entry point AF010TOK is responsible for validating the data entered before their recording in the asset register process.
This entry point is ideal for ensuring that the asset register meets customized validation standards before being finalized.
If lRet .AND. ExistBlock("AF010TOK")
lRet := ExecBlock("AF010TOK",.F.,.F.)
Endif
#include "rwmake.ch"
User function AF010TOK()
Local aArea := GetArea()
Local cMensagem := ""
Local lRet := .T.
Local cChapa := AllTrim(M->N1_CHAPA)
If !Empty(cChapa)
If Len(cChapa) <> 6
cMensagem := "Registration Number does not comply with the digit standard."
Help("ATFA010",1,"HELP","VALCHAPA",cMensagem,1,0)
lRet := .F.
Endif
Endif
RestArea(aArea)
SN1->(DbSetOrder(1))
Return lRet
Important