Product: | |
Product Line: | Protheus Line |
Segment: | Technology |
Module: | TOTVS Backoffice (Protheus Line) - Managerial Accounting (SIGAFIS) |
Function: | CTBA105 |
Country: | Brazil |
Ticket: | Internal |
Requisite/Story/Issue | DSERCTR1-46829 |
The entry point CTB105OUTM is triggered at the end of the validation process for the add of an accounting document, covering both documents entered manually and those generated by the integration booking process.
This entry point allows for the execution of additional logic that must occur after the final document validation, offering flexibility to validate supplementary information in accordance with company requirements.
The entry point will only be executed if the standard validations of the CT105TOK() function are met, including the validation of the document lines.
Relevant Characteristics:
lRet := ExecBlock("CTB105OUTM",.F.,.F.,{dDataLanc,cLote,cSubLote,cDoc}) |
User Function CTB105OUTM()
Local dDataLanc := PARAMIXB[1]
Local cLote := PARAMIXB[2]
Local cSubLote := PARAMIXB[3]
Local cDoc := PARAMIXB[4]
Local lRet := .F.
Local cMensagem := ""
If dDataLanc != dDatabase
lRet := .F.
cMensagem := "An accounting document cannot be included "+CRLF
cMensagem += "with a date different "+CRLF
cMensagem += "from the system database date."
Help("CTBA102",1,"HELP","CTB_INCL",cMensagem,1,0)
EndIf
Return lRet |
|