Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTPublished

A565PARC

ExecBlock("A565PARC", .F., .F.)

Replaces F565CMC7() in the FINA565 installment flow when MV_CMC7FIN = "S", taking over custom check processing before the grid refresh and value recalculation.

Conceptual documentationFINA565FinancialSettlementExecBlockEntry point
01 · OVERVIEW

Overview

A565PARC is called inside A565Cond() after payment terms have already been calculated and aCols has been built. When MV_CMC7FIN = "S", the routine prepares the CMC7 context with OpenCMC7() and then chooses between two mutually exclusive paths: if A565PARC exists, the Entry Point runs; otherwise F565CMC7() runs. The Entry Point therefore replaces the standard check-reading and processing subroutine rather than complementing it.

02 · SYNTAX

Syntax

ExecBlock("A565PARC", .F., .F.)

Return value

Nil. The analyzed call does not consume an Entry Point return value; its expected effect is on routine context, especially the installment/check structure that continues to ForceRefresh() and A565Valor(.F.).

03 · PRACTICAL EXAMPLE

Didactic CMC7 replacement skeleton

User Function A565PARC()
    // This Entry Point replaces F565CMC7() when MV_CMC7FIN = "S".
    // Payment terms and the initial installment structure have already been built.
    // The analyzed call does not provide explicit PARAMIXB arguments.

    // Implement the alternative source of check data here.
    // If aCols is changed, preserve the structure expected by FINA565 because
    // ForceRefresh() and A565Valor(.F.) run after this Entry Point.
Return
Expected result

The customization takes the place of F565CMC7() and returns control to A565Cond(), which refreshes the interface and recalculates values.

BEST PRACTICES
  • Evidence status: Conceptual documentation. This interpretation comes from the analyzed flow and has not yet been attested by the author through a practical test of the Entry Point.
  • Call condition: SuperGetMv("MV_CMC7FIN") == "S" and ExistBlock("A565PARC").
  • ExecBlock("A565PARC", .F., .F.) has no fourth argument, so there is no explicit PARAMIXB at this call site.
  • OpenCMC7() runs before the A565PARC/F565CMC7() decision; the Entry Point replaces F565CMC7(), not the previous CMC7 context preparation.
  • After the A565PARC/F565CMC7() branch, the routine calls oGet:ForceRefresh() and A565Valor(.F.).
COMMON PITFALLS
  • Do not describe A565PARC as calculating payment terms: Condicao() and the initial aCols build occur before the Entry Point.
  • Do not treat it as an additional event around standard processing: when A565PARC exists, F565CMC7() is not executed in this branch.
  • Do not assume context variables are identical across releases; this call provides no explicit PARAMIXB.
  • If the customization changes aCols, preserve the structure expected by the FINA565 grid and subsequent recalculation.

Related content

REFERENCES
  1. TOTVS. Pontos de Entrada - Linha Microsiga Protheus.
  2. TOTVS. SIGAFIN - FINA565 - Pontos de Entrada. Central de Atendimento.
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