01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Industry:

Services

Module:

TOTVS Backoffice (Protheus Line) - Fixed Assets (SIGAATF)

Function:

ATFA251

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46748

02. DESCRIPTION

Entry Point AF251TIP is used for validating field N3_TIPO during the acquisition by transfer process. It allows the customer to set custom rules to ensure that the acquisition type specified is compliant with the company's policies and practices.

With the AF251TIP, you can validate the type of the transferred asset, ensuring that the acquisition operations are consistent and follow the set criteria. This allows greater control and precision in asset acquisitions by transfer, ensuring record integrity and compliance with the company's internal rules.

03. OTHER INFORMATION

aTiposC := ExecBlock('AF251TIP', .F., .F., { aTiposC } )
#INCLUDE "Protheus.ch"

User Function AF251TIP()

      Local aTiposC := ParamIxb[1]
      Local nX
      Default aTiposC := {"01"}

      //Display message with type found in array
      For nX := 1 to Len(aTiposC)
            If nX == 1
                  cTipo := aTiposC[nX]
            Else
                  cTipo += " / " + aTiposC[nX]
            EndIf
      Next nX

      Alert("Selected Asset Type: " + cTipo)

      //Add New Types
      If aScan(aTiposC,{aX aX == "21"}) == 0
            aAdd(aTiposC , "21" )
      EndIf

Return aTiposC
  • It is noteworthy that the customer is responsible for EP utilization and its impacts on the system.
  • The examples used in this documentation are for demonstration purposes only. Each customer must check what behavior they want to perform according to the scope of the entry point.

04. RELATED SUBJECTS