Usina BRAdvPL Guide
Sign in
← All topics
ENTRY POINTUnder review

F241MPCC

User Function F241MPCC() as logical

Controls cancellation confirmation for a payment batch with withholding in another settlement.

F241MPCCFINA241PCCFWAlertYesNo
01 · OVERVIEW

Overview

In FINA241, controls the standard cancellation message when the payable has taxes withheld in another settlement. No parameters; logical return. (TOTVS, 2025, ref. 1) GitHub searches found no implementation. Below is a commented adaptation of the official example.

02 · SYNTAX

Syntax

User Function F241MPCC() as logical

Return value

Logical: indicates whether the standard confirmation is displayed. (TOTVS, 2025, ref. 1)

03 · PRACTICAL EXAMPLE

Adapted and commented official example

#INCLUDE "TOTVS.CH"

// Adapted from TOTVS, F241MPCC, usage example (ref. 1).
// This question selects whether to display the standard confirmation.
User Function F241MPCC() as logical
    Local lPERet := .T. as logical

    lPERet := FWAlertYesNo("Display the message about tax withheld in another settlement?", "F241MPCC")

Return lPERet
Expected result

The example opens its own question. The choice controls the standard message; it does not remove all dialogs.

BEST PRACTICES
  • Do not treat the return as cancellation authorization: the documentation describes message control.
  • Editorial test plan: test Yes and No, observing the example question and standard confirmation separately. Record the cancellation outcome too.
  • Compare scenarios with and without withholding in another settlement without assuming this entry point runs in every case.
  • Check release, patch and function availability before deployment. This research did not establish a minimum version.
  • Do not add PARAMIXB access or direct table writes without a demonstrated need in the caller.
  • Under review: code has not been compiled or run in Protheus; test environment behavior remains unverified.

Related content

REFERENCES
  1. TOTVS. F241MPCC – Cancelar baixa de título sem confirmação se compõe saldo de retenção de PCC. TDN. Atualização: 14/01/2025. Accessed on 2026-10-23.
Status
Under review
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