01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Segment:

Services

Module:

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

Function:

CTBA101

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46829

02. DESCRIPTION

The entry point CTB101CNV is implemented in the CTBCONV function (within the CTBA101 routine) and allows for the customization of the currency conversion process. With it, it is possible to add specific rules and adjustments for currency conversion, adapting the functionality to the company's particular accounting needs. This entry point is ideal for companies that require more detailed control or a differentiated conversion logic in their accounting environment.

03. OTHER INFORMATION


Entry Point (EP) manipulation in the system
nValConv := ExecBlock( "CTB101CNV" , .F. , .F. , {cCriter,dData,cMoeda,nValor,lVBloq,cBloq})
EP Example
User Function  CTB101CNV()

	Local cCriter	:= paramixb[1] // Conversion Criterion
	Local dData	:= paramixb[2] // Entry Date	  
	Local cMoeda	:= paramixb[3] // Entry Currency	 
	Local nValor	:= paramixb[4] // Value for conversion.
	Local lBloq		:= paramixb[5] // Identifies whether to check the currency lock. 
	Local cBloq	:= paramixb[6] // Type of lock applied to the currency 

	If cCriter == "1"	
		nValor := 10
	ElseIf cCriter == "4"	
		nValor := 40
	Else	
		nValor := 100
	EndIf 

Return nValor


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