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.).


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



Source Program

CTBA105.PRW

Syntax

CT105POS - Return 

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

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

Return validation

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)



lRet := ExecBlock("CT105POS",.f.,.f.,{lRet,lConfirma})



<!-- esconder o menu --> 


<style>
div.theme-default .ia-splitter #main {
    margin-left: 0px;
}
.ia-fixed-sidebar, .ia-splitter-left {
    display: none;
}
#main {
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
}

.aui-header-primary .aui-nav,  .aui-page-panel {
    margin-left: 0px !important;
}
.aui-header-primary .aui-nav {
    margin-left: 0px !important;
}
</style>