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 |
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.
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
Important