Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTPublished

F040LOJA

F040LOJA() --> Array

F040LOJA runs in the Taxes, filters, and complements phase of FINA040, in the F040TotMes / F040RecalcMes / F040TImpBx source section.

Entry pointsFINA040SIGAFINAccounts ReceivableExecBlockTaxes, filters, and complements
01 · OVERVIEW

Overview

F040LOJA is an Entry Point identified directly in the analyzed FINA040 source flow. Its call is located in F040TotMes / F040RecalcMes / F040TImpBx, during the Taxes, filters, and complements phase. Confirm parameters and the expected return value against the release and patch used by the target environment.

02 · SYNTAX

Syntax

F040LOJA() --> Array

Parameters

PARAMIXB
ContextualOptional

When the ExecBlock call sends parameters, they are exposed according to this release context. Check the call site and validate the source used by the environment.

Return value

Array.

03 · PRACTICAL EXAMPLE

Safe structure for starting the analysis

#Include "TOTVS.ch"

User Function F040LOJA()
    Local uRet := Nil

    // Confirm PARAMIXB and the expected return type in the target release.
    // Keep only rules that belong to this exact FINA040 execution point.

Return uRet
Expected result

Minimum structure: adjust parameters and the return type only after checking the call site in the release used by the environment.

BEST PRACTICES
  • Preserve the work areas used by the customization.
  • Read PARAMIXB only after confirming its structure at the call site in the target release.
  • Keep the implementation short and record the release that was validated.
  • Test creation, edit, deletion, and automatic processing separately when applicable.
COMMON PITFALLS
  • Do not assume similarly named Entry Points share the same contract.
  • Do not change the return type expected by the calling flow.
  • Do not depend on private variables without validating the call context.

Related content

REFERENCES
  1. Official FINA040 documentation; ExecBlock call recorded in F040TotMes / F040RecalcMes / F040TImpBx.
  2. TOTVS. Finance Entry Points — P12.
Status
Published
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha