Páginas filhas
  • AF251HCOMP E.P. to handle the display of tab complements in routine Acquisition by Transfer

CONTENTS

01. OVERVIEW

Entry Point AF251HCOMP was developed to handle the display of tab complements in routine Acquisition by Transfer in accordance with rules set by the customer.

02. PARAMETERS 

Parameter

Type

Description

Mandatory

PARAMBIX[1]

Array

Vector with asset data from tab Apportionment Totals

[1] = Total Type
[2] = Asset Type
[3] = Balance Type
[4] = Value
[5] = Apportioned
[6] = Position with logical variable for processing (do not use it)

Yes

03. RETURN

Return

Type

Description

Mandatory

lRet

Logical

Return a true or false for display the complements tab or not

Yes


04. EXAMPLE

  • Rule to display the tab for asset types 02 and 10


CTBA070FPE - Removing filter from MBrowse
user function AF251HCOMP()

Local aTotAtivos    := PARAMIXB[1]
Local nX            := 0 
Local lRet          := .F.

For nX:= 1 to Len(aTotAtivos)
    If aTotAtivos[nX][2] $ "02" .Or. aTotAtivos[nX][2] $ "10" 
        lRet := .T.
    ElseIf aTotAtivos[nX][2] <> "01" 
        lRet := .F.
        Exit
    EndIf
Next

return lRet 

 

  •       Screen of routine Acquisition by Transfer WITHOUT the tab Complements


             


  • Screen of routine Acquisition by Transfer with the tab Complements