Páginas filhas
  • EP CT105POS - Validates Accounting Entry

CONTENT

  1. Overview
  2. Parameters
  3. Example


01. OVERVIEW

Entry Point that allows the inclusion of new accounting entry validations. It receives the variables lRet and lConfirma as input parameters, which indicate whether the entry is consistent (.T.) or not (.F.).


Note

This process is used for accounting entry movements.

02. PARAMETERS


Parameter

Type

Description

Required

PARAMIXB[1]

Logical

T. - Entry Ok.F. - Entry inconsistent


PARAMIXB[2]

Logical

.T. - Entry confirmation


03. EXAMPLE OF USE



Note

Source Program

CTBA105.PRW

Syntax

CT105POS - Return 

Validates Accounting Entry ( [ lRet ] ) --> lRet

Validates the processing confirmation ( [ lConfirma ] ) --> lConfirma

Return validation

Entry Point Example
User Function CT105POS()
Local lRet          := PARAMIXB[1]
Local lConfirma     := PARAMIXB[2]

alert("Entering the CT105POS....., the lConfirma entering the source code as: "+ cValToChar(lConfirma) )

If !MsgYesNo("Do you want to exit lConfirma  =  .T.  ? ", "Select....")
    lConfirma   := .F.
EndIf

Alert("Return result  lConfirma :  " + cValToChar(lConfirma) )

Return(lConfirma)



Call events of the Entry Point
lRet := ExecBlock("CT105POS",.f.,.f.,{lRet,lConfirma})