Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

01. GENERAL DATA

Product:

TOTVS Backoffice

Product Line:

Protheus Line

Industry:

Services

Module:

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

Function:

ATFA030

Country:

Brazil

Ticket:

Internal

Requisite/Story/Issue

DSERCTR1-46829

02. DESCRIPTION

You can use entry point AF030VAL to handle the values added to the Asset Posting (ATFA030) routine. It offers flexibility to make adjustments or validations in the values processed during the manual asset posting operations, allowing the customer to apply specific business rules.

03. OTHER INFORMATION

Bloco de código
languagecpp
themeRDark
titleHandling of EP in the system
nVlVend           := Iif(ExistBlock( "AF030VAL" ),ExecBlock("AF030VAL",.F.,.F.), 0)
Bloco de código
languagecpp
themeRDark
titleEP Example
User Function AF030VAL()

      Local nVlVend := 0
      Local aBxAtivo := {}

      Alert("Entry Point AF030VAL() executed.")

      AADD( aBxAtivo, { "N3_CBASE" , SN1->N1_CBASE } )
      AADD( aBxAtivo, { "CNOTA" , SN4->N4_NOTA } )
      AADD( aBxAtivo, { "CITEM" , SN1->N1_ITEM } )
      AADD( aBxAtivo, { "N3_TIPO" , SN3->N3_TIPO } )
      AADD( aBxAtivo, { "CSERIE" , SN4->N4_SERIE } )
      AADD( aBxAtivo, { "VLRBAIXA", SN3->N3_VORIG1 } )
      AADD( aBxAtivo, { "NQUANT" , SN1->N1_QUANTD } )
      AADD( aBxAtivo, { "AUTPERCBX" , 100 } )
      AADD( aBxAtivo, { "NVLVEND" , SN4->N4_VENDA } )

      nVlVend := aBxAtivo[9][2]

Return nVlVend
Aviso
titleImportant
  • 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.