Product: | TOTVS Backoffice |
Product Line: | Protheus Line |
Industry: | Services |
Module: | TOTVS Backoffice (Protheus Line) - Fixed Assets (SIGAATF) |
Function: | FISXATF |
Country: | Brazil |
Ticket: | Internal |
Requisite/Story/Issue | DSERCTR1-46748 |
Entry point DEPREATF returns the depreciation of the fixed asset.
nBaseItem := ExecBlock("DEPREATF",.f.,.f.,{cAliasTMP,cAliasTMP, "F120"})
nVlrBCPIS :=nVlrBCCOF := ExecBlock("DEPREATF",.f.,.f.,{cAliasSN1,cAliasSN1, "F130"}) |
#Include 'Protheus.ch'
User Function DEPREATF()
Local nRetorno := 0
Local cArqTmp := ParamIXB[1]
Local cAliasTmp := ParamIXB[2]
Local cTipReg := ParamIXB[3]
If cTipReg == "F120"
Alert("Example of entry point DEPREATF for record F120")
nRetorno := 15000
ElseIf cTipReg == "F130"
Alert("Example of entry point DEPREATF for record F130")
nRetorno := 25000
Else
Alert("Example of entry point DEPREATF ")
nRetorno := 45000
EndIf
Return(nRetorno) |
|