-
Notifications
You must be signed in to change notification settings - Fork 692
Open
Description
Why do you need this change?
In 4PS Construct we would like to run additional checks and modify General Journal Line before checking on "Applies-to Doc. No." and executing PaymentToleranceMgt.DelPmtTolApllnDocNo in "Applies-to Doc. No." - OnValidate.
Describe the request
Dear ALAppExtensions team,
On behalf of 4PS I would like to request integration event 'OnAppliesToDocNoOnValidateOnBeforeDelPmtTolApllnDocNo' to be added to trigger "Applies-to Doc. No." - OnValidate in Table 81 "Gen. Journal Line".
field(36; "Applies-to Doc. No."; Code[20])
{
trigger OnValidate()
var
CustLedgEntry: Record "Cust. Ledger Entry";
VendLedgEntry: Record "Vendor Ledger Entry";
TempGenJnlLine: Record "Gen. Journal Line" temporary;
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeValidateAppliesToDocNo(Rec, xRec, CurrFieldNo, SuppressCommit, IsHandled);
if IsHandled then
exit;
if SuppressCommit then
PaymentToleranceMgt.SetSuppressCommit(true);
if "Applies-to Doc. No." <> xRec."Applies-to Doc. No." then
ClearCustVendApplnEntry();
OnAppliesToDocNoOnValidateOnBeforeDelPmtTolApllnDocNo(Rec, SuppressCommit); //new
if ("Applies-to Doc. No." = '') and (xRec."Applies-to Doc. No." <> '') then begin
PaymentToleranceMgt.DelPmtTolApllnDocNo(Rec, xRec."Applies-to Doc. No.");
[IntegrationEvent(false, false)]
local procedure OnAppliesToDocNoOnValidateOnBeforeDelPmtTolApllnDocNo(var GenJnlLine: Record "Gen. Journal Line"; SuppressCommit: Boolean)
begin
//new
end;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels