01. GENERAL DATA

Product:

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 CTBLANC is used to perform the recording of the accounting entry associated with the folder. It is triggered during the execution of the function responsible for recording the folder's accounting entry, allowing the customer to manipulate and customize the data that will be registered.

With CTBLANC, it is possible to implement specific logics that adapt the recording of accounting entries to the business needs, ensuring that the records are made consistently and are aligned with the company's accounting rules and operational practices.

03. OTHER INFORMATION


ExecBlock("CTBLANC",.F.,.F.,{dData,cLote,cSubLote,cDoc,@cLinha,cTipo,cMoeda,;
							 cHistPad,cDebito,cCredito,cCustoDeb,cCustoCrd,;
							 cItemDeb,cItemCrd,cClVlDeb,cClVlCrd,nValor,cTexto,;
							 cTpSald,cSeqLan,nOpc,aCols,cDCD,cDCC})
User Function CTBLANC 

	Local dData := PARAMIXB[1]
	Local cLote := PARAMIXB[2]
	Local cSubLote := PARAMIXB[3]
	Local cDoc := PARAMIXB[4]
	Local cLinha := PARAMIXB[5]
	Local cTipo := PARAMIXB[6]
	Local cMoeda := PARAMIXB[7]
	Local cHistPad := PARAMIXB[8]
	Local cDebito := PARAMIXB[9]
	Local cCredito := PARAMIXB[10]
	Local cCustoDeb := PARAMIXB[11]
	Local cCustoCrd := PARAMIXB[12]
	Local cItemDeb := PARAMIXB[13]
	Local cItemCrd := PARAMIXB[14]
	Local cClVlDeb := PARAMIXB[15]
	Local cClVlCrd := PARAMIXB[16]
	Local nValor := PARAMIXB[17]
	Local cTexto := PARAMIXB[18]
	Local cTpSald := PARAMIXB[19]
	Local cSeqLan := PARAMIXB[20]
	Local nOpc := PARAMIXB[21]
	Local aCols := PARAMIXB[22]
	Local cDCD := PARAMIXB[23]
	Local cDCC := PARAMIXB[24]

	MsgAlert("ENTRY POINT CALL: CTBLANC")

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