01. GENERAL DATA

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

02. DESCRIPTION

Use the entry point A012FNG in routine ATFA012 (Assets Register) to allow the custom field trigger of table FNG every time you enter an asset group. It is activated for each line of table SN3, created from the asset group, allowing the updating or adjustment of specific fields as needed.

With A012FNG, the client can define custom logic for the fields of table FNG, ensuring the records created in the asset register are complete and compliant with the company's business rules, making sure that all details are duly taken into account during the registration process.

03. OTHER INFORMATION


Handling of EP in the system
ExecBlock("A012FNG",.F.,.F.,{oAux:aHeader, oAux:aCols, oAux})
EP Example
User Function A012FNG()

	Local oModel := FWModelActive()
	Local oAux      := oModel:GetModel( 'SN3DETAIL' )
	//------------------------------------------------------------------------------------------------

	// EXAMPLE USING CUSTOM FIELDS: 'N3_VMXDEPR',

	// 'FNG_YPMXDP', 'N3_PERDEPR' ,FNG_YPERDP.

	//-----------------------------------------------------------------------------------------------
	oAux:LoadValue('N3_VMXDEPR' ,FNG->FNG_YPMXDP)
	oAux:LoadValue('N3_PERDEPR' ,FNG->FNG_YPERDP)

Return

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.