01. GENERAL DATA

Product

TOTVS Backoffice

Product Line

Protheus Line

Segment

Services

Module

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

Function

CTBA101

Country

Brazil

Ticket

Internal

Requisite/Story/Issue

DSERCTR1-46829

02. DESCRIPTION

The VDCTB101GR entry point is used to validate the parameters of an accounting entry before its inclusion. This entry point allows specific rules and additional checks to be applied, ensuring that all parameters meet the required conditions before the entry is finalized, providing an extra layer of validation and control in the accounting process.

03. FURTHER INFORMATION


Entry Point handling in the system
If ExistBlock( "VDCTB101GR" ) // opção de validação antes da gravação do lançamento
	lRet := ExecBlock( "VDCTB101GR" , .F. , .F. , {nOpc,dData,cLote,cSubLote,cDoc})
EndIf
EP Example
#Include 'Protheus.ch'

User Function VDCTB101GR

	Local nOpc     := PARAMIXB[1]
	Local dData    := PARAMIXB[2]
	Local cLote    := PARAMIXB[3]
	Local cSubLote := PARAMIXB[4]
	Local cDoc     := PARAMIXB[5]
	Local lRet     := .F.
	
	MsgAlert("ENTRY POINT CALL: VDCTB101GR")
	//CUSTOMER VALIDATION

Return lRet


Importante!

  • It should be noted that the use of the Entry Point (EP) 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

  • N/A