01. GENERAL DATA

Product

TOTVS Backoffice

Product Line

Protheus Line

Segment

Services

Module

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

Function

CTBS011

Country

Brazil

Ticket

Internal

Requisite/Story/Issue

DSERCTR1-46748

02. DESCRIPTION

The Entry Point ECDCHVMOV is used to allow key handle during the process of exporting transaction from the CT2 table for the ECD (Digital Accounting Bookkeeping). It provides the client with the flexibility to adjust the export key according to specific needs, ensuring that the exported data complies with the company's accounting and fiscal criteria.

With ECDCHVMOV, it is possible to implement customized logics to define the export key, adapting the system's standard behavior and ensuring that the export is performed accurately and meets the business's particularities, thereby facilitating compliance with the legal and regulatory requirements of the ECD.

03. FURTHER INFORMATION


Entry Point (EP) manipulation in the system
If ExistBlock( "ECDCHVMOV" )
	cChave := ExecBlock( "ECDCHVMOV", .F., .F.)
EndIf
EP Example
#INCLUDE "PROTHEUS.ch"
#INCLUDE "rwmake.ch"

User Function ECDCHVMOV()

	Local cAliasCT2 := Alias()
	Local cTpSald := (cAliasCT2)->CT2_TPSALD
	Local cChavet := " "
	Local cLote := (cAliasCT2)->CT2_LOTE
	Local cFilMov := (cAliasCT2)->CT2_FILIAL
	Local cSbLote := (cAliasCT2)->CT2_SBLOTE

	If cFilMov == '01' .AND. cTpSald == '1'
		cChavet:= cLote + cSbLote
	EndIf

Return cChavet  

Important!

  • It should be noted that the use of the Entry Point (EP) 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