01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Industry:

Services

Module:

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

Function:

ATFA240

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46030

02. DESCRIPTION

This entry point offers the possibility of adding a custom filter to the fixed assets browser in the asset classification routine. You can use it to adjust the filtering conditions and to display the data based on such criteria as "Controlled Assets", thus refining your view of the fixed assets.

03. OTHER INFORMATION


IF ExistBlock("AF240BRT")
	cFilter :=ExecBlock("AF240BRT",.F.,.F.,cFilter)
	cFilter :=IIF(ValType(cFilter) == "C",cFilter,Nil)
ENDIF




// Implementation of function of entry point AF240BRT
User Function AF240BRT(cFilter)
 
    //Example of custom filter that displays only assets with Status 0 - Classification Pending
    Local cCustomFilter := " N1_STATUS = '0' "
     
    // Concatenate the current filter with the new custom filter
    If !Empty(cFilter)
        cFilter := cFilter + " .AND. " + cCustomFilter
    Else
        cFilter := cCustomFilter
    EndIf
 
Return cFilter  



  • 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