01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Industry:

Services

Module:

TOTVS Backoffice (Protheus Line) - Fixed Assets (SIGAATF)

Function:

ATFA050

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46829

02. DESCRIPTION

Entry Point AF050FIM allows handling the date of last monthly calculation of depreciation while processing the depreciation and indexation calculation routine.

This feature allows adjusting the date in compliance with customized rules set by the customer, meeting specific processing needs.

03. OTHER INFORMATION

Handling of EP in the system
If ExistBlock("AF050FIM")       
    Execblock("AF050FIM",.T.,.T., { dUltDepr }) 
EndIf
Handling of EP in the system
User Function AF050FIM()

      Local dUltDepr := Paramixb[1] //date received by GetNewPar("MV_ULTDEPR", STOD("19800101"))
      Local cMsg:= "Entry point AF050FIM executed"
      Local dDataRet := "12/12/2014" //handle the date received by parameter

      dUltDepr := dDataRet

      Alert(cMsg)

Return dUltDepr

Important

  • It is noteworthy that the customer is responsible for EP utilization and its impacts on the system.
  • The examples used in this documentation are for demonstration purposes only. Each customer must check what behavior they want to perform according to the scope of the entry point.

04. RELATED SUBJECTS

  • Not Applicable.