Product: | TOTVS Backoffice |
Product Line: | Protheus Line |
Industry: | Services |
Module: | TOTVS Backoffice (Protheus Line) - Fixed Assets (SIGAATF) |
Function: | ATFA060/ATFA125 |
Country: | Brazil |
Ticket: | Internal |
Requisite/Story/Issue | DSERCTR1-46829 |
Entry point AF060GAT acts as a trigger in the asset transfer routine, allowing the customization of target accounting data for the entities involved. It is used for adjusting target fields, such as Ledger Account, Cost Center, Value Class, and Accounting Item, in compliance with the specific rules of the organization. This entry point makes it easier to adapt the asset transfer process, ensuring that accounting data are correctly targeted depending on the needs of the business.
aValue := Execblock("AF060GAT",.F.,.F., {cCampo,oModelFNS:GetValue(cCampo),aVetPE}) |
User Function AF060GAT()
Local cCampoA := Paramixb[1]
Local cCod := Paramixb[2]
Local aVal :={}
If cCampoA == 'N3_CUSTBEM'
AADD(aVal,{'N3_CCCORR',cCod})
AADD(aVal,{'N3_CCDESP',cCod})
AADD(aVal,{'N3_CCCDEP',cCod})
AADD(aVal,{'N3_CCCDES',cCod})
EndIf
Return aVal |
|