01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Segment:

Services

Module:

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

Function:

CTBA220

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46030

02. DESCRIPTION

The entry point CT220EMP allows for the customization of the aEmp array, which is used in the selection of the companies involved in the general consolidation process. By implementing it, the user can dynamically adjust the list of companies to be considered, allowing for greater flexibility in controlling which companies will be included in the consolidation.

03. OTHER INFORMATION


Entry Point (EP) manipulation in the system
aEmp := ExecBlock("CT220EMP",.f.,.f.,{aEmp})
EP Example
User Function CT220EMP()

	Local aEmp := ParamIxb[1] //aEmp multidimensional array contains the companies/branches to be consolidated
	//position 1 - .t. or .f. indicates if it is checked or not (logical)
	//position 2 - company code
	//position 3 - description displayed in the list box (by default, it contains the expression "FF COM EE - BRANCH FF - COMP EE - BRANCH FF") 

	//Where: //FF-BRANCH CODE          EE - COMPANY CODE
	//position 4 - "E" or "C" - indicates the sharing mode of the CT2 table - Accounting Entries 
	//adds one more branch to the aEmp array to be consolidated

	aAdd(aEmp, {.T., "88", "01 EMP 88 - FIL 01 - EMP 88 - FIL 01", "E"})

Return(aEmp)

Important!

  • 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 ISSUES

  • It does not apply.