...
Product | Produto: |
| ||||||||||||
| Linha de Produto: |
| |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Segmento: |
| |||||||||||||
Product Line: | Protheus Line | |||||||||||||
Segment: | Services | |||||||||||||
Module: | TOTVS Backoffice (Protheus Line) - Managerial Accounting | Módulo: |
ModulosCrossSegmentos | TOTVS Backoffice (Linha Protheus) - Contabilidade Gerencial (SIGACTB)
| ||||||||||
Function: | CTBXSEM | |||||||||||||
Country: | BrasilBrazil | |||||||||||||
Ticket: | InternoInternal | |||||||||||||
Requisite/ | StoryStory/Issue | DSERCTR1-46829 |
...
O ponto de entrada CTBPXDCQRY permite a customização da query utilizada na função ProxDoc() dentro da rotina CTBXFUN.PRX. Com este ponto de entrada, é possível ajustar a consulta para atender a critérios específicos na busca de documentos, proporcionando flexibilidade na seleção e ordenação dos registros conforme a necessidade do usuário.
...
The entry point CTBPXDCQRY allows for the customization of the query used in the ProxDoc() function within the CTBXFUN.PRX routine. With this entry point, it is possible to adjust the query to meet specific criteria when searching for documents, providing flexibility in the selection and ordering of records according to the user's needs.
| Bloco de código | ||||||
|---|---|---|---|---|---|---|
| ||||||
cQuery := Execblock( 'CTBPXDCQRY' , .F. , .F. , {cQuery} ) |
| Bloco de código | ||||||
|---|---|---|---|---|---|---|
| ||||||
User Function CTBPXDCQRY()
Local cQuery := ParamIxb[1]
cQuery := "SELECT Max(CTF_DOC) MAXDOC "
cQuery += "FROM CTF "+" CTF "
cQuery += "WHERE CTF_FILIAL='"+xFilial("CTF")+"' AND "
cQuery += "CTF_DATA = '"+DTOS(dDataLanc)+"' AND "
cQuery += "CTF_LOTE = '"+cLote+"' AND "
cQuery += "CTF_SBLOTE = '"+cSubLote+"' AND "
cQuery += "D_E_L_E_T_ <> '*' "
cQuery := ChangeQuery(cQuery)
Return cQuery |
| Aviso | ||
|---|---|---|
| ||
|