01. GENERAL DATA

Product:

Product Line:

Protheus Line

Segment:

Services

Module:

TOTVS Backoffice (Protheus Line) - Managerial Accounting (SIGACTB)

Function:

CTBC400

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46829

02. DESCRIPTION

The entry point CTB400FIL is used to apply custom filters to the display of accounting transactions. It allows adjusting the display criteria of the accounting entries during the query.

03. OTHER INFORMATION


If ExistBlock("CTB400FIL")								
	cFiltro := ExecBlock("CTB400FIL", .F., .F.)
Endif
#include "Protheus.ch"

User Function CTB400FIL()     

	Local cFiltro                   
	Local cLote        

	cLote := "131313"    	                                                       	     

	cFiltro := "CT2_LOTE = '" + cLote +"'"  //Filter – in SQL syntax.     

	msgalert( 'Only the batch entries will be displayed.' +  cLote )	

Return cFiltro


  • It should be noted that the use of the Entry Point (PE) and its impacts on the system are the customer's responsibility.
  • The examples used in this documentation are for demonstration purposes only; each customer must determine the behavior they wish to implement according to the scope of the entry point.

04. RELATED SUBJECTS