Product: |
TOTVS Backoffice
|
Product Line: | Protheus Line |
Segment: | Services |
Module: | TOTVS Backoffice (Protheus Line) - Managerial Accounting (SIGAFIS)
|
Function: | CTBA105 |
Country: | Brazil |
Ticket: | Internal |
Requisite/Story/Issue | DSERCTR1-46829 |
The entry point CT105QRY allows for the manipulation of the query string used in the accounting of the CTBA105 routine. This point is especially useful for adding custom fields to the aggregation clause or modifying the query to meet specific user requirements. This provides greater flexibility in setting up the accounting data, allowing for customized adjustments in the accounting process.
cQuery := ExecBlock("CT105QRY",.F.,.F.,{cQuery,lAglut})
#INCLUDE "Protheus.ch"
User Function CT105QRY()
cQuery := ParamIXB[1] // RECEIVES THE SYSTEM QUERY
lAglut := ParamIXB[2] // RECEIVES THE SYSTEM PARAMETER: IF IT AGGREGATES = .T. IF IT DOES NOT AGGREGATE = .F.
If lAglut
//ADDING THE CTK_INFOR FIELD ADDED VIA THE CONFIGURATOR TO THE CTK TABLE BY THE USER
cQuery := StrTran( cQuery, "FROM", ",CTK_INFOR FROM" )
cQuery := StrTran( cQuery, "ORDER BY", ",CTK_INFOR ORDER BY" )
EndIf
Return cQuery // RETURNS THE MODIFIED QUERY
Important!