01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Industry:

Services

Module:

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

Function:

ATFA060/ATFA125

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46829

02. DESCRIPTION

Entry point AF060GAT acts as a trigger in the asset transfer routine, allowing the customization of target accounting data for the entities involved. It is used for adjusting target fields, such as Ledger Account, Cost Center, Value Class, and Accounting Item, in compliance with the specific rules of the organization. This entry point makes it easier to adapt the asset transfer process, ensuring that accounting data are correctly targeted depending on the needs of the business.

03. OTHER INFORMATION

Handling of EP in the system
aValue := Execblock("AF060GAT",.F.,.F., {cCampo,oModelFNS:GetValue(cCampo),aVetPE})
EP Example
User Function AF060GAT()

	Local cCampoA := Paramixb[1]  
	Local cCod    := Paramixb[2]
	Local aVal    :={}

	If cCampoA == 'N3_CUSTBEM' 

		AADD(aVal,{'N3_CCCORR',cCod})
		AADD(aVal,{'N3_CCDESP',cCod})
		AADD(aVal,{'N3_CCCDEP',cCod})
		AADD(aVal,{'N3_CCCDES',cCod})

	EndIf

Return aVal

Important

  • 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

  • Not Applicable.