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 |
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.
If ExistBlock("AF050FIM")
Execblock("AF050FIM",.T.,.T., { dUltDepr })
EndIf
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