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-46748

02. DESCRIPTION

You can use entry point AF060VAL to validate an asset when a corresponding record already exists in the target branch, when performing the Automatic Transfer. While running this entry point, the system stops displaying the default message "Asset already exists in the Target Branch. To transfer it, the item must be incremented keeping the base code. Continue?" and the entry point starts handling it directly.

With AF060VAL, the customer can define a specific logic to handle duplicated assets at the target branch, customizing the decision flow to align it to business needs. This feature ensures greater flexibility and control in the transfer process, so you can align rules with the specific requirements of the operation.

03. OTHER INFORMATION


Manipulação de PE no sistema
lRet := ExecBlock("AF060Val",.F.,.F.)
Exemplo de PE
#INCLUDE "Protheus.ch"

User Function AF060Val()

	Local lRet := .T.

	If MsgYesNo("Asset already exists in the Target Branch. To transfer it, the item must be incremented keeping the base code. Continue ?")
		  lRet := .T.
	Else
		   lRet := .F.
	EndIf

Return lRet

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.