01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Segment:

Services

Module:

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

Function:

CTBXATU

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46748

02. DESCRIPTION

The entry point CTBVLDSLD is used to validate whether the basic balances will be updated during the saving of the Automatic Accounting Entries routine. It offers the client the possibility of defining criteria that determine whether the balance update should be performed, ensuring that the booking process complies with the company's policies and practices.

With CTBVLDSLD, it is possible to implement validation rules that ensure accounting balances are manipulated only when necessary, providing greater control over records and ensuring the accuracy of financial information.

03. OTHER INFORMATION


Entry Point (EP) manipulation in the system
If _lAtSldBase .and. lVldSld
	lRetSld := ExecBlock("CTBVldSld",.F.,.F., {_lAtSldCT7, _lAtSldCT3, _lAtSldCT4, _lAtSldCTI})
	If lRetSld
		_lAtSldBase := .F.
	EndIf
EndIf
EP Example
User Function CTBVldSld()

	Local lRet := .F.
	Local _lAtSldCT7 := paramixb[1]
	Local _lAtSldCT3 := paramixb[2]
	Local _lAtSldCT4 := paramixb[3]
	Local _lAtSldCTI := paramixb[4]

	//Customers Customization

	Alert("Entry Point Executed")

	If (_lAtSldCT7 .or. _lAtSldCT3 .or. _lAtSldCT4 .or. _lAtSldCTI)
		lRet := .T.
	EndIf

Return lRet

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 SUBJECTS

  • N/A