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 |
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.
aEmp := ExecBlock("CT220EMP",.f.,.f.,{aEmp})
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!