Páginas filhas
  • AF060GAT - Trigger in the asset transfer routine

Description

An entry point that will work as a trigger in the asset transfer routine, in the target fields of accounting data of entities (Ledger Account, Cost Center, Value Class, and Accounting Item).

Examples

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

Language

Portuguese(Brazil)

Versions

Microsiga_Protheus11

Operating Systems Supported

All

Compatible with the following Databases

All

Parameters

cCpoAtu = Current field cCodigo = Code of the accounting data.

Return

Array updated with the new information

Call events of the Entry Point

If ExistBlock("AF060GAT")

cCpoAtu := ReadVar() //The field to be updated

aValue := {} //Array

aValue := Execblock("AF060GAT",.F.,.F., { cCpoAtu, cCodigo, aVar } )

Variables

Local cCampoA:= Paramixb[1]
Local cCod:=Paramixb[2]
Local aVarivel:=Paramixb[3]
Local aVal:={}

Source Program

ATFA060.PRX

 
 

  • Sem rótulos