01. GENERAL DATA

Product:

TOTVS Backoffice

Product line:

Protheus line

Segment:

Serviços

Module:

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

Function:

CTBA101

Country:

Brazil

Ticket:

Internal

Requirement/Story/Issue

DSERCTR1-46748

02. DESCRIPTION

The CT101CNV entry point is used to perform the conversion of values on the accounting entries screen. It is executed within the routine that processes the assembly of converted values for the GetDados related to conversions.

Purpose:

  • To customize or adjust the value conversion logic according to the customer's specific needs.
  • To allow for customized handling of values displayed on the accounting entries screen after the conversion rules have been applied.

Functionality:

  • The entry point is triggered during the execution of the routine that generates the converted values.
  • It is possible to implement additional calculations or modify the values before they are displayed in the interface.

Benefits:

  • Flexibility in the conversion process: Adapts conversions to the specific rules of each company.
  • Integration with customized systems: Allows the converted values to be synchronized with other rules or modules of the system.

This entry point is essential for companies that work with multiple currencies or that have customized rules for calculating and displaying converted values in their accounting entries.

03. OTHER INFORMATION


Entry Point (EP) manipulation in the system
nValConv := ExecBlock("CT101CNV",.F.,.F.,{nValor,cMoeda,cCriter,cDebito,cCredito,nValConv})
Example of EP
#Include 'Protheus.ch'

User Function CT101CNV

	Local nValor   := PARAMIXB[1]
	Local cMoeda   := PARAMIXB[2]
	Local cCriter  := PARAMIXB[3]
	Local cDebito  := PARAMIXB[4]
	Local cCredito := PARAMIXB[5]
	Local nValConv := PARAMIXB[6]
	Local nRet     := 0

	MsgAlert("CALL OF ENTRY POINT: CT101CNV")

Return  nRet

Importante!

  • 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 ISSUES

  • It does not apply.