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 |
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.
nValConv := ExecBlock( "CTB101CNV" , .F. , .F. , {cCriter,dData,cMoeda,nValor,lVBloq,cBloq})
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!